]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Use dynamic allocation for tile and device VRAM region structures
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Mon, 14 Jul 2025 18:48:15 +0000 (20:48 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 16 Jul 2025 19:08:31 +0000 (12:08 -0700)
commitf92cfd72d9a650f90260c54accd840c6500c4c3a
tree3988cb68c91ff4ad4c7169fba340ff49ddb97fcc
parent922ae875230be91c7f05f2aa90d176b6693e2601
drm/xe: Use dynamic allocation for tile and device VRAM region structures

In future platforms, we will need to represent the device and tile
VRAM regions in a more dynamic way, so let's abandon the static
allocation of these structures and start use a dynamic allocation.

v2:
 - Add a helpers for accessing fields of the xe_vram_region structure
v3:
- Add missing EXPORT_SYMBOL_IF_KUNIT for
  xe_vram_region_actual_physical_size

Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Stuart Summers <stuart.summers@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Acked-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250714184818.89201-3-piotr.piorkowski@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
16 files changed:
drivers/gpu/drm/xe/display/xe_fb_pin.c
drivers/gpu/drm/xe/display/xe_plane_initial.c
drivers/gpu/drm/xe/xe_assert.h
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
drivers/gpu/drm/xe/xe_migrate.c
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_query.c
drivers/gpu/drm/xe/xe_svm.c
drivers/gpu/drm/xe/xe_tile.c
drivers/gpu/drm/xe/xe_tile.h
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
drivers/gpu/drm/xe/xe_vram.c
drivers/gpu/drm/xe/xe_vram.h