mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-28 16:23:30 +00:00

Enable survivability mode if supported and configfs attribute is set. Enabling survivability mode manually is useful in cases where pcode does not detect failure, validation and for IFR (in-field-repair). To set configfs survivability mode attribute for a device echo 1 > /sys/kernel/config/xe/0000:03:00.0/survivability_mode The card enters survivability mode if supported v2: add a log if survivability mode is enabled for unsupported platforms (Rodrigo) Signed-off-by: Riana Tauro <riana.tauro@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://lore.kernel.org/r/20250407051414.1651616-4-riana.tauro@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
18 lines
416 B
C
18 lines
416 B
C
/* SPDX-License-Identifier: MIT */
|
|
/*
|
|
* Copyright © 2025 Intel Corporation
|
|
*/
|
|
|
|
#ifndef _XE_SURVIVABILITY_MODE_H_
|
|
#define _XE_SURVIVABILITY_MODE_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct xe_device;
|
|
|
|
int xe_survivability_mode_enable(struct xe_device *xe);
|
|
bool xe_survivability_mode_is_enabled(struct xe_device *xe);
|
|
bool xe_survivability_mode_is_requested(struct xe_device *xe);
|
|
|
|
#endif /* _XE_SURVIVABILITY_MODE_H_ */
|