drm/i915/display: Fix sel fetch plane offset calculation
authorJosé Roberto de Souza <jose.souza@intel.com>
Sun, 15 Aug 2021 01:43:45 +0000 (18:43 -0700)
committerJosé Roberto de Souza <jose.souza@intel.com>
Mon, 16 Aug 2021 17:31:17 +0000 (10:31 -0700)
commit7b24b79bf5f9492a63a09d5752af3c155f45f793
treec2bc6cbabc31f44a6c8b02fc4aee4e1af10f5457
parentd8959fb33890ba1956c142e83398e89812450ffc
drm/i915/display: Fix sel fetch plane offset calculation

skl_calc_main_surface_offset() is used to calculate an aligned plane
surface address considering the inner framebuffer x and y offset.
It can not be used by selective fetch functions becase there is no
PLANE_SEL_FETCH_SURF.
So the PLANE_SEL_FETCH_OFFSET.y should only be PLANE_OFFSET.y +
damaged_area_within_plane.y1.

This fixes glitches seen in fbcon caused by typing something in
the terminal.

BSpec: 55229
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210815014346.373945-1-jose.souza@intel.com
drivers/gpu/drm/i915/display/intel_psr.c