drm/amdgpu: flush the correct vmid tlb for specific pasid

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>
This commit is contained in:
Yifan Zhang 2023-10-12 15:27:39 +08:00 committed by Alex Deucher
parent 1a00cfab37
commit 6a1c31c7a8

View 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) {