]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/xe/pf: Assert LMEM provisioning is done only on DGFX
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 7 Jun 2024 15:31:55 +0000 (17:31 +0200)
committerThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 13 Jun 2024 09:33:07 +0000 (11:33 +0200)
commitcd554e1e118a6aa1c919309cd28398b003f69c1f
tree4aca3a08f9b109a578b26da3dc9caa638955445c
parent7c877115da4196fa108dcfefd49f5a9b67b8d8ca
drm/xe/pf: Assert LMEM provisioning is done only on DGFX

The Local Memory (aka VRAM) is only available on DGFX platforms.
We shouldn't attempt to provision VFs with LMEM or attempt to
update the LMTT on non-DGFX platforms. Add missing asserts that
would enforce that and fix release code that could crash on iGFX
due to uninitialized LMTT.

Fixes: 0698ff57bf32 ("drm/xe/pf: Update the LMTT when freeing VF GT config")
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Piotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240607153155.1592-1-michal.wajdeczko@intel.com
(cherry picked from commit b321cb83a375bcc18cd0a4b62bdeaf6905cca769)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c