]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Restore system memory GGTT mappings
authorMatthew Brost <matthew.brost@intel.com>
Thu, 31 Oct 2024 18:22:57 +0000 (11:22 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 13 Nov 2024 15:58:22 +0000 (07:58 -0800)
commitdd886a63d6e2ce5c16e662c07547c067ad7d91f5
tree2b2e600a2e4e179df7f459eee3cd29a70a0b6a7d
parentce0d6970231903f43572a6998020fdc8b3a8f455
drm/xe: Restore system memory GGTT mappings

GGTT mappings reside on the device and this state is lost during suspend
/ d3cold thus this state must be restored resume regardless if the BO is
in system memory or VRAM.

v2:
 - Unnecessary parentheses around bo->placements[0] (Checkpatch)

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241031182257.2949579-1-matthew.brost@intel.com
(cherry picked from commit a19d1db9a3fa89fabd7c83544b84f393ee9b851f)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_bo.c
drivers/gpu/drm/xe/xe_bo_evict.c