drm/amdgpu: Cosmetic change for calling func amdgpu_gmc_vram_location
authorOak Zeng <Oak.Zeng@amd.com>
Thu, 7 Mar 2019 23:00:20 +0000 (17:00 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:50 +0000 (15:36 -0500)
Use function parameter mc as the second parameter of amdgpu_gmc_vram_location,
so codes look more consistent.

Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
Reviewed-by: Christian Konig <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c

index 8a812e11a50b4f6c18aca4a0b98842488d964143..2edb7fc8439882056b139fa6b5f9b0f906760af4 100644 (file)
@@ -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);
 }
 
index f9f5bef64feb5c59c0885a95b9b2d5b67d4eba3b..8a76bfef16ede340dbb652a08983ee49b637e5dc 100644 (file)
@@ -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);
 }
 
index 34d547cae135b1eb4412f4515772b5b7f0fa3332..2880a145450a745097308e97a9119d60d0eae853 100644 (file)
@@ -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);
 }
 
index d91274037c9fc3ebb671a974b6edf379c035dc8b..1d095f890b2fd531f34b0521aa33309c93792c00 100644 (file)
@@ -759,7 +759,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);