drm/xe/ggtt: fix alignment usage for DG2
authorMatthew Auld <matthew.auld@intel.com>
Thu, 26 Jan 2023 11:31:34 +0000 (11:31 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:27:44 +0000 (18:27 -0500)
commit5e53d1e806aeb2b05c85d24cd75f848631e8a121
treee3f181d3f16f09aa3aa8c2eccbedd71d36a834df
parentb1e52b65712969a74f0ba9ffbf67dde98ce33c2f
drm/xe/ggtt: fix alignment usage for DG2

Spec says we need to use 64K VRAM pages for GGTT on platforms like DG2.
In GGTT this just means aligning the GTT address to 64K and ensuring
that we have 16 consecutive entries each pointing to the respective 4K
entry. We already ensure we have 64K pages underneath, so it's just a
case of forcing the GTT alignment.

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
drivers/gpu/drm/xe/xe_ggtt_types.h