]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe/migrate: fix offset and len check
authorMatthew Auld <matthew.auld@intel.com>
Wed, 22 Oct 2025 16:38:30 +0000 (17:38 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 23 Oct 2025 09:48:33 +0000 (10:48 +0100)
commit3c767f762be973711421876d9e05e4dfd93f74ce
tree1c83333f41790fe43879e04bae6f5bb705be2898
parentf6c1345a851bbe51d49fc7bc2653da92bb8896f5
drm/xe/migrate: fix offset and len check

Restriction here is pitch of 4bytes to match pixel width (32b), and hw
restriction where src and dst must be aligned to 64bytes. If any of that
is not possible then we need a bounce buffer.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20251022163836.191405-2-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_migrate.c