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

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

drm/radeon/kms: make hibernate work on IGPs



This is the least invasive fix without migrating the radeon driver
to pm_ops from what I can see. We just always migrate VRAM objects
on IGPs for now and we can fix it up later to migrate depending
on STR vs STD.

Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 8ba5152a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -220,7 +220,8 @@ int radeon_bo_unpin(struct radeon_bo *bo)

int radeon_bo_evict_vram(struct radeon_device *rdev)
{
	if (rdev->flags & RADEON_IS_IGP) {
	/* late 2.6.33 fix IGP hibernate - we need pm ops to do this correct */
	if (0 && (rdev->flags & RADEON_IS_IGP)) {
		if (rdev->mc.igp_sideport_enabled == false)
			/* Useless to evict on IGP chips */
			return 0;