diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3176-drm-amdgpu-all-vram-is-visible-for-APU.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3176-drm-amdgpu-all-vram-is-visible-for-APU.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3176-drm-amdgpu-all-vram-is-visible-for-APU.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3176-drm-amdgpu-all-vram-is-visible-for-APU.patch new file mode 100644 index 00000000..280d72ce --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3176-drm-amdgpu-all-vram-is-visible-for-APU.patch @@ -0,0 +1,37 @@ +From fea5541e391280ab9adbedb6037300fd19c67a61 Mon Sep 17 00:00:00 2001 +From: Chunming Zhou <david1.zhou@amd.com> +Date: Wed, 17 Jan 2018 16:51:16 +0800 +Subject: [PATCH 3176/4131] drm/amdgpu: all vram is visible for APU +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +missed in gmc9. + +Change-Id: I710044595454338edd770092100f13d6f46cb0fe +Signed-off-by: Chunming Zhou <david1.zhou@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +index 0169aad..1c2d357 100644 +--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c ++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +@@ -731,6 +731,12 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev) + adev->gmc.aper_base = pci_resource_start(adev->pdev, 0); + adev->gmc.aper_size = pci_resource_len(adev->pdev, 0); + ++#ifdef CONFIG_X86_64 ++ if (adev->flags & AMD_IS_APU) { ++ adev->mc.aper_base = gfxhub_v1_0_get_mc_fb_offset(adev); ++ adev->mc.aper_size = adev->mc.real_vram_size; ++ } ++#endif + /* In case the PCI BAR is larger than the actual amount of vram */ + adev->gmc.visible_vram_size = adev->gmc.aper_size; + if (adev->gmc.visible_vram_size > adev->gmc.real_vram_size) +-- +2.7.4 + |