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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Yifan Zhang <yifan1.zhang@xxxxxxx>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
index f4bb3886d1bc..19eaada35ede 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c
@@ -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) {
-- 
2.37.3




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux