From: Jouni Högander Date: Tue, 18 Jun 2024 05:30:18 +0000 (+0300) Subject: drm/i915/psr: Set SU area width as pipe src width X-Git-Tag: v6.10.3~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a749415d2058a9e34c1cc16e12e2ae16057525a5;p=thirdparty%2Fkernel%2Fstable.git drm/i915/psr: Set SU area width as pipe src width [ Upstream commit 97db7348640ececd60a0bfd85b6c0a3a0f81459a ] Currently SU area width is set as MAX_INT. This is causing problems. Instead set it as pipe src width. Fixes: 86b26b6aeac7 ("drm/i915/psr: Carry su area in crtc_state") Signed-off-by: Jouni Högander Reviewed-by: Mika Kahola Link: https://patchwork.freedesktop.org/patch/msgid/20240618053026.3268759-2-jouni.hogander@intel.com Signed-off-by: Sasha Levin --- diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c index 2b4512bd5b595..3c7da862222bf 100644 --- a/drivers/gpu/drm/i915/display/intel_psr.c +++ b/drivers/gpu/drm/i915/display/intel_psr.c @@ -2484,7 +2484,7 @@ int intel_psr2_sel_fetch_update(struct intel_atomic_state *state, crtc_state->psr2_su_area.x1 = 0; crtc_state->psr2_su_area.y1 = -1; - crtc_state->psr2_su_area.x2 = INT_MAX; + crtc_state->psr2_su_area.x2 = drm_rect_width(&crtc_state->pipe_src); crtc_state->psr2_su_area.y2 = -1; /*