drm/xe: Support copying of data between system memory bos
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Wed, 24 May 2023 16:52:29 +0000 (16:52 +0000)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Tue, 19 Dec 2023 23:34:04 +0000 (18:34 -0500)
commit3690a01ba926e3f1314d805d1af500fcf3edef7e
treed616d2dc6097df1e3b20f544c18be1be16293b24
parent9922bb40e2ef98c17fb142d22843c0c70ba35e5b
drm/xe: Support copying of data between system memory bos

Modify the xe_migrate_copy() function somewhat to explicitly allow
copying of data between two buffer objects including system memory
buffer objects. Update the migrate test accordingly.

v2:
- Check that buffer object sizes match when copying (Matthew Auld)

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/tests/xe_migrate.c
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_migrate.c
drivers/gpu/drm/xe/xe_migrate.h