OSDN Git Service

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)
commit765385ec00a94382b509c75867e2a40fa599a26d
tree5ef806368afec1be3ec3d53908787e92eb34b5ca
parent7a3ae1e249c2241ed520b0dec08b7b877b427a44
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