linux_dsm_epyc7002/drivers/gpu/drm/amd
Felix Kuehling 6e08e0995b drm/amdgpu: Avoid reclaim while holding locks taken in MMU notifier
When an MMU notifier runs in memory reclaim context, it can deadlock
trying to take locks that are already held in the thread causing the
memory reclaim. The solution is to avoid memory reclaim while holding
locks that are taken in MMU notifiers.

This commit fixes kmalloc while holding rmn->lock by moving the call
outside the lock. The GFX MMU notifier also locks reservation objects.
I have no good solution for avoiding reclaim while holding reservation
objects. The HSA MMU notifier will not lock any reservation objects.

v2: Moved allocation outside lock instead of using GFP_NOIO

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2018-03-23 15:32:30 -04:00
..
acp drm/amdgpu: Remove wrapper layer of cgs irq handling 2018-03-21 14:36:58 -05:00
amdgpu drm/amdgpu: Avoid reclaim while holding locks taken in MMU notifier 2018-03-23 15:32:30 -04:00
amdkfd Remove Exynos specific framebuffer structure and 2018-04-23 08:53:41 +10:00
display exynos, i915, vc4, amdgpu fixes 2018-04-22 17:14:29 -07:00
include drm/amd/powerplay: Enable ACG SS feature 2018-04-03 13:08:43 -05:00
lib drm/amdgpu: add license to Makefiles 2017-12-07 11:51:10 -05:00
powerplay drm/amd/powerplay: header file interface to SMU update 2018-04-19 10:25:06 -05:00