drm/amdgpu: add new unlocked flag for PTE updates
authorChristian König <christian.koenig@amd.com>
Tue, 7 Apr 2020 12:54:23 +0000 (14:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Apr 2020 20:20:30 +0000 (16:20 -0400)
commit9c466bcbda68d73c9ba26e8307b0dff11dd285d8
tree4f4765bb969023616471819d401cecc97324a350
parenteaad0c3aa978e7ed654e574691b56cc24d2d409a
drm/amdgpu: add new unlocked flag for PTE updates

For HMM support we need the ability to invalidate PTEs from
a MM callback where we can't lock the root PD.

Add a new flag to better support this instead of assuming
that all invalidation updates are unlocked.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_sdma.c