drm/i915/psr: Use hw.adjusted mode when calculating io/fast wake times
authorjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:55:08 +0000 (08:55 +0000)
committerjsg <jsg@openbsd.org>
Thu, 20 Jul 2023 08:55:08 +0000 (08:55 +0000)
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

index b02f5b2..f1e3845 100644 (file)
@@ -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)