From: Le Ma <[email protected]>

There's no LUT register for second mmhub to convert pasid since it has no ATC.

Signed-off-by: Le Ma <[email protected]>
Reviewed-by: Feifei Xu <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c 
b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
index d6aa290d567c..11968fbe0d60 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
@@ -488,6 +488,10 @@ static void gmc_v9_0_emit_pasid_mapping(struct amdgpu_ring 
*ring, unsigned vmid,
        struct amdgpu_device *adev = ring->adev;
        uint32_t reg;
 
+       /* Do nothing because there's no lut register for mmhub1. */
+       if (ring->funcs->vmhub == AMDGPU_MMHUB_1)
+               return;
+
        if (ring->funcs->vmhub == AMDGPU_GFXHUB_0)
                reg = SOC15_REG_OFFSET(OSSSYS, 0, mmIH_VMID_0_LUT) + vmid;
        else
-- 
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to