Check for mmhub0 rather than mmhub1.  Looks like a copy
paste typo.

Fixes: d0c989a0aad3 ("drm/amd/amdgpu : Use the MES INV_TLBS API for tlb 
invalidation on gfx12_1")
Cc: Shaoyun Liu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
index 855cd29cbffaa..54a5e64f53b3b 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v12_1.c
@@ -396,7 +396,7 @@ static void gmc_v12_1_flush_gpu_tlb_pasid(struct 
amdgpu_device *adev,
 
                if (all_hub) {
                        /* invalidate mm_hub */
-                       if (test_bit(AMDGPU_MMHUB1(0), adev->vmhubs_mask)) {
+                       if (test_bit(AMDGPU_MMHUB0(0), adev->vmhubs_mask)) {
                                input.hub_id = AMDGPU_MMHUB0(0);
                                
adev->mes.funcs->invalidate_tlbs_pasid(&adev->mes, &input);
                        }
-- 
2.55.0

Reply via email to