Skip to content

Commit 39d4275

Browse files
committed
drm/radeon/pm: adjust display configuration after powerstate
set_power_state defaults to no displays, so we need to update the display configuration after setting up the powerstate on the first call. In most cases this is not an issue since ends up getting called multiple times at any given modeset and the proper order is achieved in the display changed handling at the top of the function. Reviewed-by: Christian König <christian.koenig@amd.com> Acked-by: Jordan Lazare <Jordan.Lazare@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 8e7cedc commit 39d4275

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/radeon/radeon_pm.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,8 +1079,6 @@ static void radeon_dpm_change_power_state_locked(struct radeon_device *rdev)
10791079

10801080
/* update display watermarks based on new power state */
10811081
radeon_bandwidth_update(rdev);
1082-
/* update displays */
1083-
radeon_dpm_display_configuration_changed(rdev);
10841082

10851083
rdev->pm.dpm.current_active_crtcs = rdev->pm.dpm.new_active_crtcs;
10861084
rdev->pm.dpm.current_active_crtc_count = rdev->pm.dpm.new_active_crtc_count;
@@ -1101,6 +1099,9 @@ static void radeon_dpm_change_power_state_locked(struct radeon_device *rdev)
11011099

11021100
radeon_dpm_post_set_power_state(rdev);
11031101

1102+
/* update displays */
1103+
radeon_dpm_display_configuration_changed(rdev);
1104+
11041105
if (rdev->asic->dpm.force_performance_level) {
11051106
if (rdev->pm.dpm.thermal_active) {
11061107
enum radeon_dpm_forced_level level = rdev->pm.dpm.forced_level;

0 commit comments

Comments
 (0)