diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3604-drm-amd-amdgpu-Correct-VRAM-width-for-APUs-with-GMC9.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3604-drm-amd-amdgpu-Correct-VRAM-width-for-APUs-with-GMC9.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3604-drm-amd-amdgpu-Correct-VRAM-width-for-APUs-with-GMC9.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3604-drm-amd-amdgpu-Correct-VRAM-width-for-APUs-with-GMC9.patch new file mode 100644 index 00000000..2bb2633e --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3604-drm-amd-amdgpu-Correct-VRAM-width-for-APUs-with-GMC9.patch @@ -0,0 +1,31 @@ +From 0cb6f052780175001c9356bdf47f094f07dda7d0 Mon Sep 17 00:00:00 2001 +From: Tom St Denis <tom.stdenis@amd.com> +Date: Mon, 26 Feb 2018 09:09:26 -0500 +Subject: [PATCH 3604/4131] drm/amd/amdgpu: Correct VRAM width for APUs with + GMC9 + +DDR4 has a 64-bit width not 128-bits. It was reporting +twice the width. Tested with my Ryzen 2400G. + +Signed-off-by: Tom St Denis <tom.stdenis@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Kalyan Alle <kalyan.alle@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +index a842d6c..90f6afb 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -720,6 +720,7 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev) + if (amdgpu_emu_mode != 1) + adev->gmc.vram_width = amdgpu_atomfirmware_get_vram_width(adev); + if (!adev->gmc.vram_width) { ++ + /* hbm memory channel size */ + if (adev->flags & AMD_IS_APU) + chansize = 64; +-- +2.7.4 + |