Files
linux/drivers/gpu/drm
Matthew Auld 86f69c2611 drm/xe: use backup object for pinned save/restore
Currently we move pinned objects, relying on the fact that the lpfn/fpfn
will force the placement to occupy the same pages when restoring.
However this then limits all such pinned objects to be contig
underneath. In addition it is likely a little fragile moving pinned
objects in the first place. Rather than moving such objects rather copy
the page contents to a secondary system memory object, that way the VRAM
pages never move and remain pinned. This also opens the door for
eventually having non-contig pinned objects that can also be
saved/restored using blitter.

v2:
 - Make sure to drop the fence ref.
 - Handle NULL bo->migrate.
v3:
 - Ensure we add the copy fence to the BOs, otherwise backup_obj can
   be freed before pipelined copy finishes.
v4:
  - Rebase on newly added apply-to-pinned infra.

Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1182
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Link: https://lore.kernel.org/r/20250403102440.266113-10-matthew.auld@intel.com
2025-04-04 11:41:00 +01:00
..
2025-02-18 07:43:43 +01:00
2025-02-05 10:10:51 -03:00
2025-03-08 02:16:49 +02:00
2025-01-24 09:41:01 +02:00
2025-03-05 17:08:59 +01:00
2025-02-12 09:55:50 -03:00
2025-02-09 20:36:51 +03:00
2025-01-23 14:42:21 +01:00
2025-01-08 01:39:58 +02:00
2025-02-13 12:15:43 -05:00
2025-03-12 20:53:47 -07:00