[PATCH 0/2] Cleaning up code related to VRAM regions and its initialization - part 2
Piórkowski, Piotr
piotr.piorkowski at intel.com
Mon May 26 14:56:45 UTC 2025
From: Piotr Piórkowski <piotr.piorkowski at intel.com>
As a follow-up to the earlier VRAM region cleanups, this patch series
focuses on further improving the flexibility and clarity of
the Xe driver's VRAM management.
This series focuses on preparing the VRAM region handling code for future
platforms, where a more dynamic representation of device and tile VRAM
regions will be required. Static allocation of these structures is replaced
with dynamic allocation to increase flexibility and improve maintainability.
Additionally, the initialization logic for device-wide and tile-local VRAM
regions is unified, replacing the previously separate code paths. This
simplification improves code clarity and facilitates future extensions
involving additional VRAM region types.
Cc: Matthew Auld <matthew.auld at intel.com>
Cc: Stuart Summers <stuart.summers at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Piotr Piórkowski (2):
drm/xe: Use dynamic allocation for tile and device VRAM region
structures
drm/xe: Unify the initialization of VRAM regions
drivers/gpu/drm/xe/display/xe_fb_pin.c | 2 +-
drivers/gpu/drm/xe/display/xe_plane_initial.c | 2 +-
drivers/gpu/drm/xe/xe_assert.h | 2 +-
drivers/gpu/drm/xe/xe_device.c | 23 +++
drivers/gpu/drm/xe/xe_device_types.h | 14 +-
drivers/gpu/drm/xe/xe_gt_pagefault.c | 4 +-
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 2 +-
drivers/gpu/drm/xe/xe_migrate.c | 18 +-
drivers/gpu/drm/xe/xe_pci.c | 6 +
drivers/gpu/drm/xe/xe_query.c | 4 +-
drivers/gpu/drm/xe/xe_svm.c | 17 +-
drivers/gpu/drm/xe/xe_tile.c | 49 +++--
drivers/gpu/drm/xe/xe_tile.h | 2 +
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 6 +-
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 18 +-
drivers/gpu/drm/xe/xe_ttm_vram_mgr.h | 3 +-
drivers/gpu/drm/xe/xe_vram.c | 179 ++++++++++++------
drivers/gpu/drm/xe/xe_vram.h | 5 +
18 files changed, 236 insertions(+), 120 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list