drm/i915/fb: Factor out functions to remap contiguous FB obj pages
authorImre Deak <imre.deak@intel.com>
Tue, 26 Oct 2021 22:51:01 +0000 (01:51 +0300)
committerImre Deak <imre.deak@intel.com>
Tue, 2 Nov 2021 16:07:40 +0000 (18:07 +0200)
commitdd5ba4ff4e924b14cb3c91335636baa6bacaf817
treee7f04878cae71fd7f9164f9304f28dd4a884603c
parent6b6636e17649d75b4d0cc55d3dff9e44511a442a
drm/i915/fb: Factor out functions to remap contiguous FB obj pages

Factor out functions needed to map contiguous FB obj pages to a GTT/DPT
VMA view in the next patch.

While at it s/4096/I915_GTT_PAGE_SIZE/ in add_padding_pages().

No functional changes.

v2: s/4096/I915_GTT_PAGE_SIZE/ (Matthew)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211026225105.2783797-4-imre.deak@intel.com
drivers/gpu/drm/i915/gt/intel_ggtt.c