Skip to content

Commit ed6e4f0

Browse files
Lijo Lazaralexdeucher
authored andcommitted
drm/amdgpu: Use another offset for GC 9.4.3 remap
The legacy region at 0x7F000 maps to valid registers in GC 9.4.3 SOCs. Use 0x1A000 offset instead as MMIO register remap region. Signed-off-by: Lijo Lazar <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent a2ab248 commit ed6e4f0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/amdgpu/soc15.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,6 +1161,11 @@ static int soc15_common_early_init(void *handle)
11611161
AMD_PG_SUPPORT_VCN_DPG |
11621162
AMD_PG_SUPPORT_JPEG;
11631163
adev->external_rev_id = adev->rev_id + 0x46;
1164+
/* GC 9.4.3 uses MMIO register region hole at a different offset */
1165+
if (!amdgpu_sriov_vf(adev)) {
1166+
adev->rmmio_remap.reg_offset = 0x1A000;
1167+
adev->rmmio_remap.bus_addr = adev->rmmio_base + 0x1A000;
1168+
}
11641169
break;
11651170
default:
11661171
/* FIXME: not supported yet */

0 commit comments

Comments
 (0)