|
28 | 28 | * This is implemented by loading the driver with bare minimum (no drm card) to allow the firmware |
29 | 29 | * to be flashed through mei and collect telemetry. The driver's probe flow is modified |
30 | 30 | * such that it enters survivability mode when pcode initialization is incomplete and boot status |
31 | | - * denotes a failure. The driver then populates the survivability_mode PCI sysfs indicating |
32 | | - * survivability mode and provides additional information required for debug |
| 31 | + * denotes a failure. |
33 | 32 | * |
34 | | - * KMD exposes below admin-only readable sysfs in survivability mode |
| 33 | + * Survivability mode can also be entered manually using the survivability mode attribute available |
| 34 | + * through configfs which is beneficial in several usecases. It can be used to address scenarios |
| 35 | + * where pcode does not detect failure or for validation purposes. It can also be used in |
| 36 | + * In-Field-Repair (IFR) to repair a single card without impacting the other cards in a node. |
35 | 37 | * |
36 | | - * device/survivability_mode: The presence of this file indicates that the card is in survivability |
37 | | - * mode. Also, provides additional information on why the driver entered |
38 | | - * survivability mode. |
| 38 | + * Use below command enable survivability mode manually:: |
39 | 39 | * |
40 | | - * Capability Information - Provides boot status |
41 | | - * Postcode Information - Provides information about the failure |
42 | | - * Overflow Information - Provides history of previous failures |
43 | | - * Auxiliary Information - Certain failures may have information in |
44 | | - * addition to postcode information |
| 40 | + * # echo 1 > /sys/kernel/config/xe/0000:03:00.0/survivability_mode |
| 41 | + * |
| 42 | + * Refer :ref:`xe_configfs` for more details on how to use configfs |
| 43 | + * |
| 44 | + * Survivability mode is indicated by the below admin-only readable sysfs which provides additional |
| 45 | + * debug information:: |
| 46 | + * |
| 47 | + * /sys/bus/pci/devices/<device>/surivability_mode |
| 48 | + * |
| 49 | + * Capability Information: |
| 50 | + * Provides boot status |
| 51 | + * Postcode Information: |
| 52 | + * Provides information about the failure |
| 53 | + * Overflow Information |
| 54 | + * Provides history of previous failures |
| 55 | + * Auxiliary Information |
| 56 | + * Certain failures may have information in addition to postcode information |
45 | 57 | */ |
46 | 58 |
|
47 | 59 | static u32 aux_history_offset(u32 reg_value) |
|
0 commit comments