From: jsg Date: Thu, 20 Jul 2023 08:55:08 +0000 (+0000) Subject: drm/i915/psr: Use hw.adjusted mode when calculating io/fast wake times X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7e96cc0b0663f0cecf06ec73748c129da3a40e61;p=openbsd drm/i915/psr: Use hw.adjusted mode when calculating io/fast wake times From Jouni Hogander 61070305d5207742027d2e46a0d72f81959125b8 in linux-6.1.y/6.1.39 5311892a0ad1d301aafd53ca0154091b3eb407ea in mainline linux --- diff --git a/sys/dev/pci/drm/i915/display/intel_psr.c b/sys/dev/pci/drm/i915/display/intel_psr.c index b02f5b213d1..f1e3845b9a0 100644 --- a/sys/dev/pci/drm/i915/display/intel_psr.c +++ b/sys/dev/pci/drm/i915/display/intel_psr.c @@ -857,9 +857,9 @@ static bool _compute_psr2_wake_times(struct intel_dp *intel_dp, } io_wake_lines = intel_usecs_to_scanlines( - &crtc_state->uapi.adjusted_mode, io_wake_time); + &crtc_state->hw.adjusted_mode, io_wake_time); fast_wake_lines = intel_usecs_to_scanlines( - &crtc_state->uapi.adjusted_mode, fast_wake_time); + &crtc_state->hw.adjusted_mode, fast_wake_time); if (io_wake_lines > max_wake_lines || fast_wake_lines > max_wake_lines)