drm/amdgpu: flush the correct vmid tlb for specific pasid
authorYifan Zhang <yifan1.zhang@amd.com>
Thu, 12 Oct 2023 07:27:39 +0000 (15:27 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Oct 2023 15:34:29 +0000 (11:34 -0400)
flush the correct vmid tlb for specific pasid on gmc 11.

Fixes: 041a5743883d ("drm/amdgpu: fix and cleanup gmc_v11_0_flush_gpu_tlb_pasid")
Signed-off-by: Yifan Zhang <yifan1.zhang@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/gmc_v11_0.c

index f4bb388..19eaada 100644 (file)
@@ -314,7 +314,7 @@ static void gmc_v11_0_flush_gpu_tlb_pasid(struct amdgpu_device *adev,
 
                valid = gmc_v11_0_get_vmid_pasid_mapping_info(adev, vmid,
                                                              &queried);
-               if (!valid || queried == pasid)
+               if (!valid || queried != pasid)
                        continue;
 
                if (all_hub) {