drm/i915: Use correct huge page manager for MTL
authorJonathan Cavitt <jonathan.cavitt@intel.com>
Wed, 26 Apr 2023 21:28:49 +0000 (23:28 +0200)
committerAndrzej Hajda <andrzej.hajda@intel.com>
Fri, 28 Apr 2023 11:20:05 +0000 (13:20 +0200)
commiteee44c2903e5222632536f86ad5cf0ff9bbfc61b
tree74120a5c53f7b1305610e905e323eb8cf6cd2340
parentd59ce1ff8e6830fab60b688f33a89ef48c94b5d8
drm/i915: Use correct huge page manager for MTL

MTL currently uses gen8_ppgtt_insert_huge when managing huge pages.
This is because MTL reports as not supporting 64K pages, or more
accurately, the system that reports whether a platform has 64K pages
reports false for MTL.  This is only half correct, as the 64K page support
reporting system only cares about 64K page support for LMEM, which MTL
doesn't have.

MTL should be using xehpsdv_ppgtt_insert_huge.  However, simply changing
over to using that manager doesn't resolve the issue because MTL is
expecting the virtual address space for the page table to be flushed after
initialization, so we must also add a flush statement there.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Andrzej Hajda <andrzej.hajda@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230425-hugepage-migrate-v8-2-7868d54eaa27@intel.com
drivers/gpu/drm/i915/gt/gen8_ppgtt.c