Skip to contentSkip to conversation

drm/amdgpu: Cosmetic change for calling func amdgpu_gmc_vram_location

PATCH In review Zeng, Oak 2 participants 2 messages Mar 7, 2019 – Mar 8, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Zeng, Oak

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Cosmetic change for calling func amdgpu_gmc_vram_location

Use function parameter mc as the second parameter of amdgpu_gmc_vram_location, so codes look more consistent.

Change-Id Ib5b06d188ebc6e82eb0d4d2a57d995149bf5f7a5
---
 drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +-
 drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +1 -1
index 8a812e1..2edb7fc 100644
@@ -225,7 +225,7 @@ static void gmc_v6_0_vram_gtt_location(struct amdgpu_device *adev,
 	u64 base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
 	base <<= 24;
 
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
 	amdgpu_gmc_gart_location(adev, mc);
 }
 
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +1 -1
index f9f5bef..8a76bfe 100644
@@ -242,7 +242,7 @@ static void gmc_v7_0_vram_gtt_location(struct amdgpu_device *adev,
 	u64 base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
 	base <<= 24;
 
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
 	amdgpu_gmc_gart_location(adev, mc);
 }
 
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +1 -1
index 34d547c..2880a14 100644
@@ -433,7 +433,7 @@ static void gmc_v8_0_vram_gtt_location(struct amdgpu_device *adev,
 		base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
 	base <<= 24;
 
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
 	amdgpu_gmc_gart_location(adev, mc);
 }
 
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
index 84904bd..0252345 100644
@@ -1013,7 +1013,7 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev,
 		base = mmhub_v1_0_get_fb_location(adev);
 	/* add the xgmi offset of the physical node */
 	base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size;
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
 	amdgpu_gmc_gart_location(adev, mc);
 	if (!amdgpu_sriov_vf(adev))
 		amdgpu_gmc_agp_location(adev, mc);
Signature · 6 lines
2.7.4

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

A message that is not in the archive (sent off-list or not yet received): 1551999939-29349-1-git-send-email-Oak.Zeng-5C7GfCeVMHo@public.gmane.org

Reviewed-by
#2 lore raw

Am 08.03.19 um 00:05 schrieb Zeng, Oak:

Quoted 5 lines

Use function parameter mc as the second parameter of amdgpu_gmc_vram_location, so codes look more consistent.

Change-Id Ib5b06d188ebc6e82eb0d4d2a57d995149bf5f7a5
Quoted 51 lines
---
  drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c | 2 +-
  drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c | 2 +-
  drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c | 2 +-
  drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c | 2 +-
  4 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c +1 -1
index 8a812e1..2edb7fc 100644
@@ -225,7 +225,7 @@ static void gmc_v6_0_vram_gtt_location(struct amdgpu_device *adev,
  	u64 base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
  	base <<= 24;
 
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
  	amdgpu_gmc_gart_location(adev, mc);
  }
 
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c +1 -1
index f9f5bef..8a76bfe 100644
@@ -242,7 +242,7 @@ static void gmc_v7_0_vram_gtt_location(struct amdgpu_device *adev,
  	u64 base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
  	base <<= 24;
 
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
  	amdgpu_gmc_gart_location(adev, mc);
  }
 
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c +1 -1
index 34d547c..2880a14 100644
@@ -433,7 +433,7 @@ static void gmc_v8_0_vram_gtt_location(struct amdgpu_device *adev,
  		base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
  	base <<= 24;
 
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
  	amdgpu_gmc_gart_location(adev, mc);
  }
 
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +0 -0
index 84904bd..0252345 100644

drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev, · line 1019

Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c +1 -1
@@ -1013,7 +1013,7 @@ static void gmc_v9_0_vram_gtt_location(struct amdgpu_device *adev,
  		base = mmhub_v1_0_get_fb_location(adev);
  	/* add the xgmi offset of the physical node */
  	base += adev->gmc.xgmi.physical_node_id * adev->gmc.xgmi.node_segment_size;
-	amdgpu_gmc_vram_location(adev, &adev->gmc, base);
+	amdgpu_gmc_vram_location(adev, mc, base);
  	amdgpu_gmc_gart_location(adev, mc);
  	if (!amdgpu_sriov_vf(adev))
  		amdgpu_gmc_agp_location(adev, mc);

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