mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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
This commit is contained in:
committed by
Michal Wajdeczko
parent
fc3a50c12e
commit
71163271dc
@@ -94,10 +94,6 @@ static int xe_tile_alloc(struct xe_tile *tile)
|
||||
return -ENOMEM;
|
||||
tile->mem.ggtt->tile = tile;
|
||||
|
||||
tile->mem.vram_mgr = drmm_kzalloc(drm, sizeof(*tile->mem.vram_mgr), GFP_KERNEL);
|
||||
if (!tile->mem.vram_mgr)
|
||||
return -ENOMEM;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -139,7 +135,7 @@ static int tile_ttm_mgr_init(struct xe_tile *tile)
|
||||
int err;
|
||||
|
||||
if (tile->mem.vram.usable_size) {
|
||||
err = xe_ttm_vram_mgr_init(tile, tile->mem.vram_mgr);
|
||||
err = xe_ttm_vram_mgr_init(tile, &tile->mem.vram.ttm);
|
||||
if (err)
|
||||
return err;
|
||||
xe->info.mem_region_mask |= BIT(tile->id) << 1;
|
||||
|
||||
Reference in New Issue
Block a user