Commit 9d4f837a authored by Frank.Min's avatar Frank.Min Committed by Alex Deucher

drm/amdgpu: unity mc base address for arcturus

arcturus for sriov would use the unified mc base address
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarFrank.Min <Frank.Min@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 81c274c4
...@@ -924,12 +924,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, ...@@ -924,12 +924,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev,
struct amdgpu_gmc *mc) struct amdgpu_gmc *mc)
{ {
u64 base = 0; u64 base = 0;
if (!amdgpu_sriov_vf(adev)) {
if (adev->asic_type == CHIP_ARCTURUS) if (adev->asic_type == CHIP_ARCTURUS)
base = mmhub_v9_4_get_fb_location(adev); base = mmhub_v9_4_get_fb_location(adev);
else else if (!amdgpu_sriov_vf(adev))
base = mmhub_v1_0_get_fb_location(adev); base = mmhub_v1_0_get_fb_location(adev);
}
/* add the xgmi offset of the physical node */ /* add the xgmi offset of the physical node */
base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size;
amdgpu_gmc_vram_location(adev, mc, base); amdgpu_gmc_vram_location(adev, mc, base);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment