OSDN Git Service

drm/amdgpu: Disable page faults while reading user wptrs
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 30 Aug 2019 04:10:34 +0000 (00:10 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:49:38 +0000 (17:49 -0500)
commitcd05c865108e089c4be99c0f939c72437fba2207
tree2ef6e7d817f94b11093471f69176c5b93173bcda
parent811bc15b49fe2dde87b9109b5eeea8ebe6420c79
drm/amdgpu: Disable page faults while reading user wptrs

These wptrs must be pinned and GPU accessible when this is called
from hqd_load functions. So they should never fault. This resolves
a circular lock dependency issue involving four locks including the
DQM lock and mmap_sem.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oak Zeng <Oak.Zeng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h