]> 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)
commit0959af20041d1c37868d6cab9117f2f0e6cc1e68
tree4f4765bb969023616471819d401cecc97324a350
parent1fda6d55f7c24484274e7a5ab9b19755828d2baa
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