Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amd/include: adjust base offset of SMUIO and THM for Arcturus

Arcturus has different _BASE_IDX value in some HWIP_offset.h. To make source
files like smu_v11_0.c and soc15.c that include HWIP_offset.h of Vega20
reusable for Arcturus, align this base offset with Vega20.

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Le Ma and committed by
Alex Deucher
9d4d7236 3ff101b8

+2 -6
+2 -6
drivers/gpu/drm/amd/include/arct_ip_offset.h
··· 196 196 { { 0, 0, 0, 0, 0, 0 } }, 197 197 { { 0, 0, 0, 0, 0, 0 } }, 198 198 { { 0, 0, 0, 0, 0, 0 } } } }; 199 - static const struct IP_BASE SMUIO_BASE ={ { { { 0x00012080, 0x00016800, 0x00016A00, 0x00401000, 0x00440000, 0 } }, 200 - { { 0, 0, 0, 0, 0, 0 } }, 201 - { { 0, 0, 0, 0, 0, 0 } }, 199 + static const struct IP_BASE SMUIO_BASE ={ { { { 0x00016800, 0x00016A00, 0, 0, 0, 0 } }, 202 200 { { 0, 0, 0, 0, 0, 0 } }, 203 201 { { 0, 0, 0, 0, 0, 0 } }, 204 202 { { 0, 0, 0, 0, 0, 0 } }, 205 203 { { 0, 0, 0, 0, 0, 0 } }, 206 204 { { 0, 0, 0, 0, 0, 0 } } } }; 207 - static const struct IP_BASE THM_BASE ={ { { { 0x00012060, 0x00016600, 0x00400C00, 0, 0, 0 } }, 208 - { { 0, 0, 0, 0, 0, 0 } }, 209 - { { 0, 0, 0, 0, 0, 0 } }, 205 + static const struct IP_BASE THM_BASE ={ { { { 0x00016600, 0, 0, 0, 0, 0 } }, 210 206 { { 0, 0, 0, 0, 0, 0 } }, 211 207 { { 0, 0, 0, 0, 0, 0 } }, 212 208 { { 0, 0, 0, 0, 0, 0 } },