drm/xe/bo: consider bo->flags in xe_bo_migrate()
authorMatthew Auld <matthew.auld@intel.com>
Mon, 19 Jun 2023 11:00:20 +0000 (12:00 +0100)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:00 +0000 (11:35 -0500)
commit513e82627931d0ac6b74b9c2595008b3573a5158
tree3cdcf68affcb821e14db4a83b11f97d6213fc47b
parent83ee6699b5964ff3b904a7064a61b453236296d6
drm/xe/bo: consider bo->flags in xe_bo_migrate()

For VRAM allocations the bo->flags can control some characteristics of
the underlying memory, like whether it needs to be contiguous, and in
the future whether it needs to be in the CPU visible portion. Rather use
add_vram() in xe_bo_migrate() which should take care of such things for
us.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.c