intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/4] Preliminary support for separate VRAM region for kernel allocations on tiles
@ 2025-07-18  8:17 Piórkowski, Piotr
  2025-07-18  8:17 ` [PATCH v1 1/4] drm/xe: Add initial support for separate kernel VRAM region on the tile Piórkowski, Piotr
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Piórkowski, Piotr @ 2025-07-18  8:17 UTC (permalink / raw)
  To: intel-xe; +Cc: Piotr Piórkowski

From: Piotr Piórkowski <piotr.piorkowski@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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-08-13 16:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18  8:17 [PATCH v1 0/4] Preliminary support for separate VRAM region for kernel allocations on tiles Piórkowski, Piotr
2025-07-18  8:17 ` [PATCH v1 1/4] drm/xe: Add initial support for separate kernel VRAM region on the tile Piórkowski, Piotr
2025-08-13 16:53   ` Matthew Auld
2025-07-18  8:17 ` [PATCH v1 2/4] drm/xe: Introduce new BO flag XE_BO_FLAG_FORCE_USER_VRAM Piórkowski, Piotr
2025-08-13 16:38   ` Matthew Auld
2025-07-18  8:17 ` [PATCH v1 3/4] drm/xe: Force user context allocations in user VRAM Piórkowski, Piotr
2025-08-13 16:42   ` Matthew Auld
2025-07-18  8:17 ` [PATCH v1 4/4] drm/xe/pf: Force use user VRAM for LMEM provisioning Piórkowski, Piotr
2025-07-18  8:24 ` ✓ CI.KUnit: success for Preliminary support for separate VRAM region for kernel allocations on tiles Patchwork
2025-07-18  9:00 ` ✓ Xe.CI.BAT: " Patchwork
2025-07-21  8:15 ` ✗ Xe.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).