From: Michal Wajdeczko Date: Sat, 21 Feb 2026 15:22:28 +0000 (+0100) Subject: drm/xe/pf: Use explicit VRAM BO flag for VRAM provisioning X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=57a5422d72c293b8e48da8b4b5c76a0d5f84c79e;p=thirdparty%2Flinux.git drm/xe/pf: Use explicit VRAM BO flag for VRAM provisioning When we are about to provision VRAM/LMEM for VF, there is no point in using semi-automatic flag that supports fallback to the SMEM. Signed-off-by: Michal Wajdeczko Reviewed-by: Matthew Brost Link: https://patch.msgid.link/20260221152230.7071-2-michal.wajdeczko@intel.com --- diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c index cba20eb6b36b2..6383763d02abf 100644 --- a/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c +++ b/drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c @@ -1652,7 +1652,7 @@ static int pf_provision_vf_lmem(struct xe_gt *gt, unsigned int vfid, u64 size) bo = xe_bo_create_pin_range_novm(xe, tile, ALIGN(size, PAGE_SIZE), 0, ~0ull, ttm_bo_type_kernel, - XE_BO_FLAG_VRAM_IF_DGFX(tile) | + XE_BO_FLAG_VRAM(tile->mem.vram) | XE_BO_FLAG_NEEDS_2M | XE_BO_FLAG_PINNED | XE_BO_FLAG_PINNED_LATE_RESTORE |