drm/amdgpu: add helpers to access registers on different AIDs
authorLe Ma <le.ma@amd.com>
Tue, 27 Sep 2022 09:51:33 +0000 (17:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:48:05 +0000 (09:48 -0400)
commit2fa480d36eb302712e48dce4d2f6564b24426be3
treea843488acc37b368c69b8186f185b727f3c50bdb
parent7d158f52bfbf82279ea8f1c3dc7a3ab3065a76e4
drm/amdgpu: add helpers to access registers on different AIDs

SMN address which is larger than 32bit has different indications
through bit[34:32] on different AIDs.

v2: put smn addressing of different AIDs into asic specific place
v3: change to ext_id/ext_offset naming

Signed-off-by: Le Ma <le.ma@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/aqua_vanjaram_reg_init.c
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/amdgpu/soc15.h
drivers/gpu/drm/amd/amdgpu/soc15_common.h