summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-11-16 19:36:10 +0100
committerAlex Deucher <alexander.deucher@amd.com>2017-12-06 12:47:58 -0500
commit3d647c8f930190f728c997c3ac3d987f992420ed (patch)
tree153150f40014206e92c8fc7988cb24349029aa57 /drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
parent4f42a2dd3d7ef106e6bd3e2ad61c55333150d896 (diff)
downloadlinux-stable-3d647c8f930190f728c997c3ac3d987f992420ed.tar.gz
linux-stable-3d647c8f930190f728c997c3ac3d987f992420ed.tar.bz2
linux-stable-3d647c8f930190f728c997c3ac3d987f992420ed.zip
drm/amdgpu: remove VRAM size reduction v2
Remove some outdated comments and all code which tries to reduce the VRAM size mapped into the MC. This is superfluous and misleading since we never actually program the size. v2: handle gmc_v6_0.c as well Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
index 9c672ece9f18..1e7f52f109b5 100644
--- a/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c
@@ -222,11 +222,6 @@ static void gmc_v6_0_vram_gtt_location(struct amdgpu_device *adev,
u64 base = RREG32(mmMC_VM_FB_LOCATION) & 0xFFFF;
base <<= 24;
- if (mc->mc_vram_size > 0xFFC0000000ULL) {
- dev_warn(adev->dev, "limiting VRAM\n");
- mc->real_vram_size = 0xFFC0000000ULL;
- mc->mc_vram_size = 0xFFC0000000ULL;
- }
amdgpu_vram_location(adev, &adev->mc, base);
amdgpu_gart_location(adev, mc);
}