Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17332925 authored by Dave Airlie's avatar Dave Airlie Committed by Dave Airlie
Browse files

drm/radeon/kms: setup MC/VRAM the same way for suspend/resume



we should align the GTT after VRAM no matter what, as we can
come back from resume and put in a different place and bad things happen.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 985fe845
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -152,7 +152,9 @@ int radeon_mc_setup(struct radeon_device *rdev)
		}
	} else {
		rdev->mc.vram_location = 0;
		rdev->mc.gtt_location = rdev->mc.mc_vram_size;
		tmp = rdev->mc.mc_vram_size;
		tmp = (tmp + rdev->mc.gtt_size - 1) & ~(rdev->mc.gtt_size - 1);
		rdev->mc.gtt_location = tmp;
	}
	DRM_INFO("radeon: VRAM %uM\n", rdev->mc.real_vram_size >> 20);
	DRM_INFO("radeon: VRAM from 0x%08X to 0x%08X\n",