drm/xe: Move VRAM manager to struct xe_vram_region
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Mon, 10 Feb 2025 08:15:11 +0000 (09:15 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 10 Feb 2025 12:08:59 +0000 (13:08 +0100)
commit71163271dc227f8dd0d9446b8897a141c2eae957
treec095dc436dbcf8d56e84648cca995268642f17c1
parentfc3a50c12ebd33c77b7e4a1e4f154a44315d3169
drm/xe: Move VRAM manager to struct xe_vram_region

VRAM manager is related directly to struct xe_vram_region so it
should be inside this structure.
Let's move the VRAM to struct xe_vram_region.

v2:
 - remove xe_vram_region pointer from xe_ttm_vram_mgr
 - stop use dynamic alloaction for xe_ttm_vram_mgr in xe_vram_region
 - rename struct xe_ttm_vram_mgr vram_mgr to ttm
v3:
 - fix "'ttm' not described in 'xe_vram_region'"

Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250210081511.906452-3-piotr.piorkowski@intel.com
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_gt_sriov_pf_config.c
drivers/gpu/drm/xe/xe_tile.c
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
drivers/gpu/drm/xe/xe_ttm_vram_mgr_types.h