mirror of
https://github.com/torvalds/linux.git
synced 2026-05-01 04:52:32 -04:00
Enable boot survivability mode if pcode initialization fails and
if boot status indicates a failure. In this mode, drm card is not
exposed and driver probe returns success after loading the bare minimum
to allow firmware to be flashed via mei.
v2: abstract survivability mode variable
add BMG check inside function (Jani, Rodrigo)
v3: return -EBUSY during system suspend (Anshuman)
check survivability mode in pci probe only
on error
Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250128095632.1294722-3-riana.tauro@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
19 lines
465 B
C
19 lines
465 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;
|
|
|
|
void xe_survivability_mode_init(struct xe_device *xe);
|
|
void xe_survivability_mode_remove(struct xe_device *xe);
|
|
bool xe_survivability_mode_enabled(struct xe_device *xe);
|
|
bool xe_survivability_mode_required(struct xe_device *xe);
|
|
|
|
#endif /* _XE_SURVIVABILITY_MODE_H_ */
|