Skip to content

Commit 5311892

Browse files
hogandertursulin
authored andcommitted
drm/i915/psr: Use hw.adjusted mode when calculating io/fast wake times
Encoder compute config is changing hw.adjusted mode. Uapi.adjusted mode doesn't get updated before psr compute config gets called. This causes io and fast wake line calculation using adjusted mode containing values before encoder adjustments. Fix this by using hw.adjusted mode instead of uapi.adjusted mode. Cc: Stanislav Lisovskiy <[email protected]> Signed-off-by: Jouni Högander <[email protected]> Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8475 Fixes: cb42e8e ("drm/i915/psr: Use calculated io and fast wake lines") Reviewed-by: Mika Kahola <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit ef0af9d) Signed-off-by: Tvrtko Ursulin <[email protected]>
1 parent 86b5303 commit 5311892

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/display/intel_psr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,9 +933,9 @@ static bool _compute_psr2_wake_times(struct intel_dp *intel_dp,
933933
}
934934

935935
io_wake_lines = intel_usecs_to_scanlines(
936-
&crtc_state->uapi.adjusted_mode, io_wake_time);
936+
&crtc_state->hw.adjusted_mode, io_wake_time);
937937
fast_wake_lines = intel_usecs_to_scanlines(
938-
&crtc_state->uapi.adjusted_mode, fast_wake_time);
938+
&crtc_state->hw.adjusted_mode, fast_wake_time);
939939

940940
if (io_wake_lines > max_wake_lines ||
941941
fast_wake_lines > max_wake_lines)

0 commit comments

Comments
 (0)