Skip to contentSkip to conversation

drm/amdgpu: fix build error in gmc_v9_0.c.

PATCH New Rex Zhu 1 participant 1 message Jan 18, 2018

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: fix build error in gmc_v9_0.c.

error: ‘struct amdgpu_device’ has no member named ‘mc’ adev->mc.aper_size = adev->mc.real_vram_size;

Change-Id I6ae5b6fb86c361500242d25c364223cf9e1cb004
---
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +2 -2
index cb96b68..9ec9110 100644
@@ -728,8 +728,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 */
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx