summaryrefslogtreecommitdiff
path: root/rust/helpers/pci.c
diff options
context:
space:
mode:
authorMatthew Auld <matthew.auld@intel.com>2025-10-22 17:38:33 +0100
committerMatthew Auld <matthew.auld@intel.com>2025-10-23 10:48:37 +0100
commit1413329456aaf5d209ab9c73ae710fb88785ef78 (patch)
tree84c44f64226bf2586fbc82a6d6a48007c606c74b /rust/helpers/pci.c
parentfb188d8b00fc221fcc744109dfa29b9945c91913 (diff)
drm/xe/migrate: fix batch buffer sizing
In xe_migrate_vram() the copy can straddle page boundaries, so the len might look like a single page, but actually accounting for the offset within the page we will need to emit more than one PTE. Otherwise in some cases the batch buffer will be undersized leading to warnings later. We already have npages so use that instead. 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-5-matthew.auld@intel.com
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions