OpenCloudOS-Kernel/drivers/gpu/drm/amd
Felix Kuehling d1853f42b6 drm/amdkfd: GFP_NOIO 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 by using GFP_NOIO.

This commit fixes memory allocations done while holding the dqm->lock
which is needed in the MMU notifier (dqm->ops.evict_process_queues).

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
2018-03-23 15:32:31 -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 drm/amdkfd: GFP_NOIO while holding locks taken in MMU notifier 2018-03-23 15:32:31 -04: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