aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3177-drm-amdgpu-Fix-build-error-in-gmc_v9_0.c.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3177-drm-amdgpu-Fix-build-error-in-gmc_v9_0.c.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3177-drm-amdgpu-Fix-build-error-in-gmc_v9_0.c.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3177-drm-amdgpu-Fix-build-error-in-gmc_v9_0.c.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3177-drm-amdgpu-Fix-build-error-in-gmc_v9_0.c.patch
new file mode 100644
index 00000000..6e476d4d
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3177-drm-amdgpu-Fix-build-error-in-gmc_v9_0.c.patch
@@ -0,0 +1,36 @@
+From e3ba5266574b49bfd33440bfa191c012b9a8e986 Mon Sep 17 00:00:00 2001
+From: Rex Zhu <Rex.Zhu@amd.com>
+Date: Thu, 18 Jan 2018 13:31:08 +0800
+Subject: [PATCH 3177/4131] drm/amdgpu: Fix build error in gmc_v9_0.c
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+error: ‘struct amdgpu_device’ has no member named ‘mc’
+adev->mc.aper_size = adev->mc.real_vram_size;
+
+Change-Id: I5b7b1c9389d74e5c122a8b7261c7224af15a5c51
+Reviewed-by: Jim Qu <Jim.Qu@amd.com>
+Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+index 1c2d357..f59f45b 100644
+--- a/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c
+@@ -733,8 +733,8 @@ static int gmc_v9_0_mc_init(struct amdgpu_device *adev)
+
+ #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;
++ adev->gmc.aper_base = gfxhub_v1_0_get_mc_fb_offset(adev);
++ adev->gmc.aper_size = adev->gmc.real_vram_size;
+ }
+ #endif
+ /* In case the PCI BAR is larger than the actual amount of vram */
+--
+2.7.4
+