diff options
| author | Philip Yang <[email protected]> | 2018-12-05 19:03:43 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2019-05-24 17:21:01 +0000 |
| commit | 89cd9d23e9a74d94f0db5bbbaf2ef1f6ede36ae5 (patch) | |
| tree | 9f046a94d4a043b1cf5beddcb1b0e27395156912 /drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | |
| parent | drm/amdgpu: use HMM callback to replace mmu notifier (diff) | |
| download | kernel-89cd9d23e9a74d94f0db5bbbaf2ef1f6ede36ae5.tar.gz kernel-89cd9d23e9a74d94f0db5bbbaf2ef1f6ede36ae5.zip | |
drm/amdkfd: avoid HMM change cause circular lock
There is circular lock between gfx and kfd path with HMM change:
lock(dqm) -> bo::reserve -> amdgpu_mn_lock
To avoid this, move init/unint_mqd() out of lock(dqm), to remove nested
locking between mmap_sem and bo::reserve. The locking order
is: bo::reserve -> amdgpu_mn_lock(p->mn)
Signed-off-by: Philip Yang <[email protected]>
Reviewed-by: Felix Kuehling <[email protected]>
Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c')
0 files changed, 0 insertions, 0 deletions
