From 7e96cc0b0663f0cecf06ec73748c129da3a40e61 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 20 Jul 2023 08:55:08 +0000 Subject: [PATCH] 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 --- sys/dev/pci/drm/i915/display/intel_psr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.20.1