diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3494-drm-amdgpu-unity-mc-base-address-for-arcturus.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3494-drm-amdgpu-unity-mc-base-address-for-arcturus.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3494-drm-amdgpu-unity-mc-base-address-for-arcturus.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3494-drm-amdgpu-unity-mc-base-address-for-arcturus.patch new file mode 100644 index 00000000..40f0b28e --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/3494-drm-amdgpu-unity-mc-base-address-for-arcturus.patch @@ -0,0 +1,42 @@ +From 5a77fa814feccb5282546b944ea415fd4feb7ad0 Mon Sep 17 00:00:00 2001 +From: "Frank.Min" <Frank.Min@amd.com> +Date: Wed, 21 Aug 2019 11:05:04 +0800 +Subject: [PATCH 3494/4256] drm/amdgpu: unity mc base address for arcturus +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +arcturus for sriov would use the unified mc base address + +Reviewed-by: Christian König <christian.koenig@amd.com> +Signed-off-by: Frank.Min <Frank.Min@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 12 ++++++------ + 1 file changed, 6 insertions(+), 6 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +index ec962ab50b1f..746aedb7fb99 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -916,12 +916,12 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, + struct amdgpu_gmc *mc) + { + u64 base = 0; +- if (!amdgpu_sriov_vf(adev)) { +- if (adev->asic_type == CHIP_ARCTURUS) +- base = mmhub_v9_4_get_fb_location(adev); +- else +- base = mmhub_v1_0_get_fb_location(adev); +- } ++ ++ if (adev->asic_type == CHIP_ARCTURUS) ++ base = mmhub_v9_4_get_fb_location(adev); ++ else if (!amdgpu_sriov_vf(adev)) ++ base = mmhub_v1_0_get_fb_location(adev); ++ + /* add the xgmi offset of the physical node */ + base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size; + amdgpu_gmc_vram_location(adev, mc, base); +-- +2.17.1 + |