]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Set survivability mode before heci init
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 14 Mar 2025 13:54:26 +0000 (06:54 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 21 Mar 2025 18:48:22 +0000 (11:48 -0700)
commit14efa739ca70514e8b923a02b5bcb42511dd1ee8
treedc982756f258ba42b3f0c1331318c6ef0be72167
parent86b5e0dbba07438de91dd81095464c6c4aa7a372
drm/xe: Set survivability mode before heci init

Commit d40f275d96e8 ("drm/xe: Move survivability entirely to xe_pci")
tried to follow the logic: initialize everything needed and if
everything succeeds, set the flag that it's enabled. While it fixed some
corner cases of those calls failing, it was wrong for setting the flag
after the call to xe_heci_gsc_init(): that function does a different
initialization for survivability mode.

Fix that and add comments about this being done on purpose.

Suggested-by: Riana Tauro <riana.tauro@intel.com>
Fixes: d40f275d96e8 ("drm/xe: Move survivability entirely to xe_pci")
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250314-fix-survivability-v5-2-fdb3559ea965@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_survivability_mode.c