]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: heavy-weight flush TLB after unmap
authorPhilip Yang <Philip.Yang@amd.com>
Thu, 13 May 2021 16:30:48 +0000 (12:30 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:37:50 +0000 (22:37 -0400)
commit67a1fdb9a7bd4a8b6b660cd11a83301e2eb06de8
tree5ef806368afec1be3ec3d53908787e92eb34b5ca
parent86a6b729007f2b16b2ad99df49223dd9b8dcf1de
drm/amdkfd: heavy-weight flush TLB after unmap

Need do a heavy-weight TLB flush to make sure we have no more dirty data
in the cache for the unmapped pages.

Define enum TLB_FLUSH_TYPE, add flush_type parameter to
amdgpu_amdkfd_flush_gpu_tlb_pasid.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdkfd/kfd_process.c
drivers/gpu/drm/amd/amdkfd/kfd_svm.c