drm/amdgpu: use physical_node_id to calculate aper_base
authorHawking Zhang <Hawking.Zhang@amd.com>
Tue, 17 Nov 2020 07:51:29 +0000 (15:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Mar 2021 02:55:20 +0000 (22:55 -0400)
commit3de60d961cec972afabe9208f51731659201a000
tree47f6da71962afe2648705175e954c68a88eceb3b
parent063a1e83413996063790cfa4d17690a4b86eaa8e
drm/amdgpu: use physical_node_id to calculate aper_base

Similar as xgmi connected gpu nodes, physical_node_id
* segment_size should be used to calculate the offset
of aper_base.

The asic type check is redundant. once physical_node_id
and segment_size are initialized, it should be count
on.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Kevin Wang <kevin1.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c