]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerImre Deak <imre.deak@intel.com>
Tue, 2 Nov 2021 16:07:34 +0000 (18:07 +0200)
commitd8c4bdd89a941b9eee21534d42fc2bd885987689
tree6a3ec0a8b8d7721ab4547787b082c9686cf44ee4
parent25a8305bb1177f8eafc3ce9379feb545dc884837
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: f74816f97d55 ("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
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/gt/intel_ggtt.c