While today all our DGFX platforms have LMTT, we already started
preparation to do not rely on this assumption. Add check for the
LMTT presence and return default page size as VRAM/LMEM alignment
if there is no LMTT.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260221152230.7071-4-michal.wajdeczko@intel.com
static u64 pf_get_lmem_alignment(struct xe_gt *gt)
{
- return xe_lmtt_page_size(>->tile->sriov.pf.lmtt);
+ return xe_device_has_lmtt(gt_to_xe(gt)) ?
+ xe_lmtt_page_size(>_to_tile(gt)->sriov.pf.lmtt) : XE_PAGE_SIZE;
}
static u64 pf_get_min_spare_lmem(struct xe_gt *gt)