Skip to contentSkip to conversation

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

PATCH In review Yifan Zhang 2 participants 2 messages Oct 12, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

flush the correct vmid tlb for specific pasid on gmc 11.

---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +1 -1
index f4bb3886d1bc..19eaada35ede 100644
@@ -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) {
Signature · 1 line
2.37.3
maintainer
#1 lore raw

Am 12.10.23 um 09:41 schrieb Yifan Zhang:

Quoted 3 lines

flush the correct vmid tlb for specific pasid on gmc 11.

Good catch, Reviewed-by: Christian König <[email protected]>

Quoted 17 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +1 -1
index f4bb3886d1bc..19eaada35ede 100644
@@ -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) {