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

Commit 773c3fa3 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie
Browse files

drm/radeon/kms/pm: fix power state indexing on igp chips in dynpm mode

parent 3f53eb6f
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -130,10 +130,15 @@ void r600_pm_get_dynpm_state(struct radeon_device *rdev)
							break;
						}
					}
				} else
				} else {
					if (rdev->pm.current_power_state_index == 0)
						rdev->pm.requested_power_state_index =
							rdev->pm.num_power_states - 1;
					else
						rdev->pm.requested_power_state_index =
							rdev->pm.current_power_state_index - 1;
				}
			}
			rdev->pm.requested_clock_mode_index = 0;
			/* don't use the power state if crtcs are active and no display flag is set */
			if ((rdev->pm.active_crtc_count > 0) &&