drm/i915/adlp/fb: Prevent the mapping of redundant trailing padding NULL pages
authorImre Deak <imre.deak@intel.com>
Tue, 26 Oct 2021 22:51:00 +0000 (01:51 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 9 Nov 2021 15:02:48 +0000 (10:02 -0500)
commitade4a1fc5741a36b559dfbd4557dc3da1a4394af
tree3c2238bfbc209635311ca0b59ce6d5b9644e7df3
parent90ab96f3872eae816f4e07deaa77322a91237960
drm/i915/adlp/fb: Prevent the mapping of redundant trailing padding NULL pages

So far the remapped view size in GTT/DPT was padded to the next aligned
offset unnecessarily after the last color plane with an unaligned size.
Remove the unnecessary padding.

Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fixes: 3d1adc3d64cf ("drm/i915/adlp: Add support for remapping CCS FBs")
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211026225105.2783797-3-imre.deak@intel.com
(cherry picked from commit 6b6636e17649d75b4d0cc55d3dff9e44511a442a)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/gt/intel_ggtt.c