]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/i915/psr: Repeat Selective Update area alignment
authorJouni Högander <jouni.hogander@intel.com>
Wed, 4 Mar 2026 11:30:08 +0000 (13:30 +0200)
committerJouni Högander <jouni.hogander@intel.com>
Mon, 9 Mar 2026 05:23:55 +0000 (07:23 +0200)
commit681e12440d8b110350a5709101169f319e10ccbb
tree497f42acac0e27371af9fc1b0bf68b711e351fc9
parentc15d0056fb74d6a2efd7bb1d382305fbd8a93cd2
drm/i915/psr: Repeat Selective Update area alignment

Currently we are aligning Selective Update area to cover cursor fully if
needed only once. It may happen that cursor is in Selective Update area
after pipe alignment and after that covering cursor plane only
partially. Fix this by looping alignment as long as alignment isn't needed
anymore.

v2:
  - do not unecessarily loop if cursor was already fully covered
  - rename aligned as su_area_changed

Fixes: 1bff93b8bc27 ("drm/i915/psr: Extend SU area to cover cursor fully if needed")
Cc: <stable@vger.kernel.org> # v6.9+
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Ankit Nautiyal <ankit.k.nautiyal@intel.com>
Link: https://patch.msgid.link/20260304113011.626542-2-jouni.hogander@intel.com
drivers/gpu/drm/i915/display/intel_psr.c