mirror of
https://github.com/torvalds/linux.git
synced 2026-11-12 20:54:48 +01:00
drm/xe/survivability: Report 'Boot Mode enabled' status using SIGID
Report 'Boot Mode' status or failure using various xe_log() helpers. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Riana Tauro <riana.tauro@intel.com> Cc: Aravind Iddamsetty <aravind.iddamsetty@intel.com> Cc: Mallesh Koujalagi <mallesh.koujalagi@intel.com> Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Link: https://patch.msgid.link/20260814171801.13347-24-michal.wajdeczko@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
3cc5107bd6
commit
a0e2160a01
|
|
@ -338,14 +338,13 @@ static int create_survivability_sysfs(struct pci_dev *pdev)
|
|||
|
||||
static int enable_boot_survivability_mode(struct pci_dev *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct xe_device *xe = pdev_to_xe_device(pdev);
|
||||
struct xe_survivability *survivability = &xe->survivability;
|
||||
int ret = 0;
|
||||
int ret;
|
||||
|
||||
ret = create_survivability_sysfs(pdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
goto failed;
|
||||
|
||||
/* Make sure xe_heci_gsc_init() and xe_i2c_probe() are aware of survivability */
|
||||
survivability->mode = true;
|
||||
|
|
@ -357,19 +356,22 @@ static int enable_boot_survivability_mode(struct pci_dev *pdev)
|
|||
if (survivability->fdo_mode) {
|
||||
ret = xe_nvm_init(xe);
|
||||
if (ret)
|
||||
goto err;
|
||||
goto failed;
|
||||
}
|
||||
|
||||
ret = xe_i2c_probe(xe);
|
||||
if (ret)
|
||||
goto err;
|
||||
goto failed;
|
||||
|
||||
dev_err(dev, "In Survivability Mode\n");
|
||||
if (check_boot_failure(xe))
|
||||
xe_log_err_fatal(pdev, SURVIVABILITY, 0, "Boot Mode enabled!\n");
|
||||
else
|
||||
xe_log_info(pdev, SURVIVABILITY, "Boot Mode enabled!\n");
|
||||
|
||||
return 0;
|
||||
|
||||
err:
|
||||
dev_err(dev, "Failed to enable Survivability Mode\n");
|
||||
failed:
|
||||
xe_log_err_fatal(pdev, SURVIVABILITY, ret, "Failed to enable Boot Mode!\n");
|
||||
survivability->mode = false;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user