]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe: enforce GSMBASE for DG1 instead of BAR2
authorPhilippe Lecluse <philippe.lecluse@intel.com>
Thu, 12 Jan 2023 22:25:38 +0000 (17:25 -0500)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 12 Dec 2023 19:06:00 +0000 (14:06 -0500)
commit2c33b49a6e6f8e176735eaca9ec6170478e0a426
treeff064d40d2e0ea5d221b6d50a66779693a4fbd36
parentc343bacfad5db03c4156ff3a44e3a5547afb246f
drm/xe: enforce GSMBASE for DG1 instead of BAR2

On DG1, BAR2 is not reliable for reporting Vram size, need to use GSMBASE.
Simplify xe_mmio_total_vram_size to report vram size and usable size.

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