]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitae1a56e506b97fd40f4ece944b65e716959e0d3e
tree0515fe95024207e1230f478deb7e7ab52103e19e
parent8941e01ec7aacebebb97f72ff4f07959995dd0cf
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