]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix a circular lock dependency
authorFelix Kuehling <Felix.Kuehling@amd.com>
Wed, 24 Apr 2019 03:32:56 +0000 (23:32 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:21:03 +0000 (12:21 -0500)
commit4aa3a14a9f32976566bc1361b883dd2907082fef
tree817ee45996815473350973851ff2f0239b68d53a
parent60f4d817e23d49e4d72b2d2afd5b5e12b45ad25a
drm/amdkfd: Fix a circular lock dependency

Fix a circular lock dependency exposed under userptr memory pressure.
The DQM lock is the only one taken inside the MMU notifier. We need
to make sure that no reclaim is done under this lock, and that
no other locks are taken under which reclaim is possible.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Philip Yang <Philip.Yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c