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

Commit ea1495a6 authored by Dave Airlie's avatar Dave Airlie
Browse files

drm/radeon/kms: fix rc410 suspend/resume.



This fixes suspend/resume on my rc410 motherboard, it restores
the memory controller setup before posting the GPU, since it seems
to need the MC_FB_LOCATION setup correctly.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent fc7f7119
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -418,6 +418,8 @@ int rs400_resume(struct radeon_device *rdev)
	rs400_gart_disable(rdev);
	/* Resume clock before doing reset */
	r300_clock_startup(rdev);
	/* setup MC before calling post tables */
	rs400_mc_program(rdev);
	/* Reset gpu before posting otherwise ATOM will enter infinite loop */
	if (radeon_gpu_reset(rdev)) {
		dev_warn(rdev->dev, "GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n",