]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Split xe_migrate allocation from initialization
authorPiotr Piórkowski <piotr.piorkowski@intel.com>
Mon, 14 Jul 2025 18:48:17 +0000 (20:48 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 16 Jul 2025 19:12:49 +0000 (12:12 -0700)
commitd65ff1ec85355959e4ca452fba458687e4da583a
tree8a41f8e2fe224ab1d85a660b15a7db7477c7ff3e
parent7a20b4f558f4291161f71a5b7384262db9ccd6b0
drm/xe: Split xe_migrate allocation from initialization

Currently, xe_migrate_init handled both allocation and initialization,
Lets moves allocation to xe_tile_alloc via a new xe_migrate_alloc
function, and keep initialization in xe_migrate_init.
This will allow the migration pointers to be passed to other structures
before full initialization.
Also replaces devm_kzalloc with drmm_kzalloc for better
DRM-managed memory.

Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20250714184818.89201-5-piotr.piorkowski@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_migrate.c
drivers/gpu/drm/xe/xe_migrate.h
drivers/gpu/drm/xe/xe_tile.c