From: Philip Yang Date: Thu, 15 Apr 2021 14:08:58 +0000 (-0400) Subject: drm/amdkfd: flush TLB after updating GPU page table X-Git-Tag: v5.14-rc1~41^2~24^2~84 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1704ac8e439e3dcf97431e268bd64fde1874d807;p=linux-block.git drm/amdkfd: flush TLB after updating GPU page table To workaround the situation that vm retry fault keep coming after page table update. We are investigating the root cause, but once this issue happens, application will stuck and sometimes have to reboot to recover. Signed-off-by: Philip Yang Reviewed-by: Felix Kuehling Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c index d9111fea724b..a165e51c4a1c 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c @@ -1225,6 +1225,9 @@ static int svm_range_map_to_gpus(struct svm_range *prange, break; } } + + amdgpu_amdkfd_flush_gpu_tlb_pasid((struct kgd_dev *)adev, + p->pasid); } return r;