[PATCH v1 0/2] Cleaning up code related to VRAM regions and its initialization - part 1
Piórkowski, Piotr
piotr.piorkowski at intel.com
Fri Jan 31 10:09:11 UTC 2025
From: Piotr Piórkowski <piotr.piorkowski at intel.com>
I would like to reorganize the code in the Xe driver regarding VRAM regions,
in order to allow in the future easier extension with more VRAM regions and
other than per tile ways to manage allocations in VRAM.
I would like to start with such simple changes as renaming the structure
xe_mem_region to xe_vram_region, to stop pretending that we use it for
something other than VRAM regions, and in the next patch move to this
structure, the field responsible for the TTM manager - this will allow us
to keep the things needed to manage allocations in VRAM in one place.
In future patches, I would like to make some changes in the initialization
of VRAM regions, and allow for dynamic allocation of these regions
depending on whether or not we need them in a particular case. Finally,
I would like to introduce the possibility of a separate VRAM region which
would be dedicated only for kernel structures, which may be necessary in
the case of SRIOV for future platforms.
Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>
Cc: Matthew Auld <matthew.auld at intel.com>
Cc: Farah Kassabri <farah.kassabri at intel.com>
Piotr Piórkowski (2):
drm/xe: Rename struct xe_mem_region to struct xe_vram_region
drm/xe: Move VRAM manager to struct xe_vram_region
drivers/gpu/drm/xe/xe_bo.c | 12 ++++++------
drivers/gpu/drm/xe/xe_device_types.h | 13 ++++++-------
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c | 2 +-
drivers/gpu/drm/xe/xe_tile.c | 6 +++---
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 2 +-
drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h | 4 ++--
6 files changed, 19 insertions(+), 20 deletions(-)
--
2.34.1
More information about the Intel-xe
mailing list