Skip to contentSkip to conversation

drm/amdgpu: quick fix since gmc rename

PATCH In review Chunming Zhou 2 participants 2 messages Jan 18, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: quick fix since gmc rename

Change-Id Ie6a4a4219d92ac1ad28a7c341cb7d73930f9386d
---
 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 591df869b52b..14d6f10ea715 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
2.14.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by
#2 lore raw
In reply to a message not in the archive

Am 18.01.2018 um 08:13 schrieb Chunming Zhou:

Quoted 2 lines
Change-Id Ie6a4a4219d92ac1ad28a7c341cb7d73930f9386d
Quoted 9 lines
---
  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 +0 -0
index 591df869b52b..14d6f10ea715 100644

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static int gmc_v9_0_mc_init(struct amdgpu_device *adev) · line 735

Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +2 -2
@@ -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 */

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