]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit264549389b7c46a87ad4f2d9840423fff95627ab
tree4f4765bb969023616471819d401cecc97324a350
parentbdd6ca84799124389be1313800090a35ad3dde2a
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