drm/i915/gtt: ignore min_page_size for paging structures
authorMatthew Auld <matthew.auld@intel.com>
Fri, 25 Jun 2021 10:38:24 +0000 (11:38 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 30 Jun 2021 12:24:29 +0000 (13:24 +0100)
commit32334c9b1fd78ad661582c55b15d263a5d6d157d
treed2d602191350ffec62ca4e9dfee487bb650a73fa
parentd22632c83b948e4f7a3d4202a884be2409098cc2
drm/i915/gtt: ignore min_page_size for paging structures

The min_page_size is only needed for pages inserted into the GTT, and
for our paging structures we only need at most 4K bytes, so simply
ignore the min_page_size restrictions here, otherwise we might see some
severe overallocation on some devices.

v2(Thomas): add some commentary

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210625103824.558481-2-matthew.auld@intel.com
drivers/gpu/drm/i915/gt/intel_gtt.c