OSDN Git Service

drm/amdgpu: use node_id and node_size to calcualte dram_base_address
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 4 May 2020 14:30:05 +0000 (22:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 8 May 2020 18:32:10 +0000 (14:32 -0400)
commit890900fe77b1321078c6d2e038e4150f06c16698
tree0515fe95024207e1230f478deb7e7ab52103e19e
parent999a69e2758ff51911fbec039c633cacc909dee0
drm/amdgpu: use node_id and node_size to calcualte dram_base_address

physical_node_id * node_segment_size should be the
dram_base_address for current gpu node in xgmi config

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: John Clements <john.clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_df.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/df_v3_6.c