[PATCH v1 0/4] Preliminary support for separate VRAM region for kernel allocations on tiles
Piórkowski, Piotr
piotr.piorkowski at intel.com
Fri Jul 18 08:17:48 UTC 2025
From: Piotr Piórkowski <piotr.piorkowski at intel.com>
Until now, all VRAM BO allocations, whether from userspace or the kernel,
were placed in the same VRAM region assigned to a tile. However, in some
scenarios, it may be necessary to separate these allocations and place
kernel BOs in a dedicated VRAM region.
This series introduces initial support for such separation by allowing
an additional VRAM region for kernel BOs to be assigned to tiles. In this
implementation, such BOs are identified by the ttm_bo_type_kernel flag.
To maintain flexibility, this series introduces a new BO flag:
XE_BO_FLAG_FORCE_USER_VRAM. It forces BO allocations into the
general-purpose VRAM region, overriding the new default behavior.
This override currently applies to BOs associated with user contexts
and BOs used for VF memory.
To preserve backward compatibility on platforms that do not have a
dedicated kernel VRAM region, the kernel_vram pointer will fall back
to the general-purpose VRAM region.
Piotr Piórkowski (4):
drm/xe: Add initial support for separate kernel VRAM region on the
tile
drm/xe: Introduce new BO flag XE_BO_FLAG_FORCE_USER_VRAM
drm/xe: Force user context allocations in user VRAM
drm/xe/pf: Force use user VRAM for LMEM provisioning
drivers/gpu/drm/xe/xe_bo.c | 88 ++++++++++++++++------
drivers/gpu/drm/xe/xe_bo.h | 7 +-
drivers/gpu/drm/xe/xe_device_types.h | 10 ++-
drivers/gpu/drm/xe/xe_exec_queue.c | 7 +-
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 3 +-
drivers/gpu/drm/xe/xe_lrc.c | 3 +
drivers/gpu/drm/xe/xe_lrc.h | 5 +-
drivers/gpu/drm/xe/xe_pt.c | 2 +-
drivers/gpu/drm/xe/xe_tile.c | 8 ++
drivers/gpu/drm/xe/xe_tile.h | 5 ++
drivers/gpu/drm/xe/xe_vram.c | 6 +-
11 files changed, 110 insertions(+), 34 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list