On 30-10-2026 22:47, Alan Previn wrote:
When user requests to enter survivabilty via configfs, or if
check_boot_failure is hit inside xe_survivability_mode_is_requested,
no indication is published. This patch adds some awareness in dmesg.
v3 : Limit message to xe_survivability_mode_is_requested. (Riana)
v2 : Remove / modify messages to reflect underlying behavior. (Sashiko)
Signed-off-by: Alan Previn <[email protected]>
---
drivers/gpu/drm/xe/xe_survivability_mode.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_survivability_mode.c
b/drivers/gpu/drm/xe/xe_survivability_mode.c
index d73cdad0b3a9..344b402eb728 100644
--- a/drivers/gpu/drm/xe/xe_survivability_mode.c
+++ b/drivers/gpu/drm/xe/xe_survivability_mode.c
@@ -413,13 +413,19 @@ bool xe_survivability_mode_is_requested(struct xe_device
*xe)
survivability_mode = xe_configfs_get_survivability_mode(pdev);
/* Enable survivability mode if set via configfs */
- if (survivability_mode)
+ if (survivability_mode) {
+ xe_log_info(xe, SURVIVABILITY, "Boot mode requested.");
return true;
+ }
data = xe_mmio_read32(mmio, PCODE_SCRATCH(0));
survivability->boot_status = REG_FIELD_GET(BOOT_STATUS, data);
- return check_boot_failure(xe);
+ if (check_boot_failure(xe)) {
+ xe_log_err_fatal(pdev, SURVIVABILITY, 0, "Boot Mode
enabled!\n");
+ return true;
+ }
+ return false;
}
Can we also remove logs from enable_boot_survivability_mode to avoid
redundant logs.
Thanks
Riana
/**
base-commit: d8a353e238652bec29fd452babdaae0044d30b9b