]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amdgpu: Fix RRMT for gfx v12_1
authorMichael Chen <michael.chen@amd.com>
Tue, 6 Jan 2026 07:22:57 +0000 (15:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 17 Mar 2026 14:30:15 +0000 (10:30 -0400)
Correct NORMALIZE_XCC_REG_OFFSET to 0xFFFF
because reg offset is in DW. Also set mode 3
temporarily for out of XCD access for MMHUB
TLB flush. Will need to figure out how to
differentiate between AID and MID access later.

Signed-off-by: Michael Chen <michael.chen@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mes_v12_1.c

index 2b3dbc3190ce6a2855d52401c5ac36efa2f13e55..ca8cacd34573608544f7be6b24330846afd1d022 100644 (file)
@@ -512,7 +512,7 @@ static void mes_v12_1_get_rrmt(uint32_t reg, uint32_t xcc_id,
                rrmt_opt->mode = (xcc_id == rrmt_opt->xcd_die_id) ?
                         MES_RRMT_MODE_LOCAL_XCD : MES_RRMT_MODE_REMOTE_XCD;
        } else {
-               rrmt_opt->mode = MES_RRMT_MODE_LOCAL_REMOTE_AID;
+               rrmt_opt->mode = MES_RRMT_MODE_REMOTE_MID;
        }
 }