drm/amdgpu: parse base address from new ip discovery with 64bit ip base address
authorLe Ma <le.ma@amd.com>
Tue, 27 Sep 2022 09:26:27 +0000 (17:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:47:59 +0000 (09:47 -0400)
commit7d158f52bfbf82279ea8f1c3dc7a3ab3065a76e4
tree334142fa7eee839bc6208c157814490c12d33697
parentaabb478421f5ca2be0f1343d02873394e935c582
drm/amdgpu: parse base address from new ip discovery with 64bit ip base address

Truncate the 64bit base address from ip discovery and only store lower 32bit
ip base in reg_offset[].

Bits > 32 follows ASIC specific format, thus just discard them and handle it
within specific ASIC.

By this way reg_offset[] and related helpers can stay unchanged.

v2: make comments more generic

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_discovery.c