Commit b48140f4 authored by Piotr Piórkowski's avatar Piotr Piórkowski Committed by Michal Wajdeczko
Browse files

drm/xe/pf: Force use user VRAM for LMEM provisioning



The LMEM assigned to VFs should be allocated from the general-purpose
VRAM pool, not from the kernel-reserved region.
Let's force the use of general-purpose VRAM for BOs intended for VFs.

Signed-off-by: default avatarPiotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20251003162619.1984236-5-piotr.piorkowski@intel.com
parent 3f6cd669
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1484,7 +1484,8 @@ static int pf_provision_vf_lmem(struct xe_gt *gt, unsigned int vfid, u64 size)
					 XE_BO_FLAG_VRAM_IF_DGFX(tile) |
					 XE_BO_FLAG_NEEDS_2M |
					 XE_BO_FLAG_PINNED |
					 XE_BO_FLAG_PINNED_LATE_RESTORE);
					 XE_BO_FLAG_PINNED_LATE_RESTORE |
					 XE_BO_FLAG_FORCE_USER_VRAM);
	if (IS_ERR(bo))
		return PTR_ERR(bo);