drm/i915/gtt: add xehpsdv_ppgtt_insert_entry
authorMatthew Auld <matthew.auld@intel.com>
Fri, 18 Feb 2022 18:47:47 +0000 (00:17 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sun, 20 Feb 2022 06:26:46 +0000 (22:26 -0800)
commit6f84aa1cd47cc0feb38da76999626051491316d7
tree7ac9a434fd9a55f5ed4cfbe89b192b133810fba9
parent2cff4b9ed6171c61cc50c38b25534f7c3d30db3c
drm/i915/gtt: add xehpsdv_ppgtt_insert_entry

If this is LMEM then we get a 32 entry PT, with each PTE pointing to
some 64K block of memory, otherwise it's just the usual 512 entry PT.
This very much assumes the caller knows what they are doing.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220218184752.7524-11-ramalingam.c@intel.com
drivers/gpu/drm/i915/gt/gen8_ppgtt.c