drm/xe/ggtt: fix GGTT scratch usage for DG2
authorMatthew Auld <matthew.auld@intel.com>
Mon, 16 Jan 2023 10:46:21 +0000 (10:46 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:27:45 +0000 (18:27 -0500)
commitc5151fa80060a869c0308067e758a271c217ff61
treeceecb345207877e48f8684be041ac5f7dcbdefca
parent5e53d1e806aeb2b05c85d24cd75f848631e8a121
drm/xe/ggtt: fix GGTT scratch usage for DG2

Scratch page is in VRAM, and therefore requires 64K GTT layout. In GGTT
world this just means having 16 consecutive entries, with 64K GTT
alignment for the GTT address of the first entry (also matching physical
alignment). However to keep things simple just dump it into system
memory, like we already do for ppGTT.  While we are here, also give it
known default value.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_ggtt.c