Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Redesign survivability mode
@ 2025-12-08  8:45 Riana Tauro
  2025-12-08  8:45 ` [PATCH v3 1/2] drm/xe/xe_survivability: " Riana Tauro
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Riana Tauro @ 2025-12-08  8:45 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, anshuman.gupta, rodrigo.vivi, joshua.santosh.ranjan,
	shubham.kumar, badal.nilawar, raag.jadav

Redesign survivability mode to have only one value per file.

1) Retain the survivability_mode sysfs to indicate the type

        cat /sys/bus/pci/devices/0000\:03\:00.0/survivability_mode
        (Boot / Runtime)

2) Add survivability_info directory to expose boot breadcrumbs.
Entries in survivability mode sysfs are only visible when
boot breadcrumb registers are populated.

        /sys/bus/pci/devices/0000:03:00.0/survivability_info
        ├── aux_info0
        ├── aux_info1
        ├── aux_info2
        ├── aux_info3
        ├── aux_info4
        ├── capability_info
        ├── fdo_mode
        ├── postcode_trace
        └── postcode_trace_overflow

Capability info:

        Provides data about boot status and has bits that
        indicate the support for the other breadcrumbs

Postcode Trace / Postcode Trace Overflow :

        Each postcode is represented as an 8-bit value and represents
        a boot failure event. When a new failure event is logged by
PCODE
        the existing postcodes are shifted left. These entries provide a
        history of 8 postcodes.

Auxiliary Info:

        Some failures have additional debug information.

FDO Mode :
	v2 survivability breadcrumbs introduces a new mode called
	SPI Flash Descriptor Override mode (FDO). This is enabled by
	PCODE when MEI itself fails and firmware cannot be updated via
	MEI using igsc. This mode provides the ability to update
	the firmware directly via SPI driver.

	Xe KMD initializes the nvm aux driver if FDO mode is enabled.

	Userspace should check FDO mode entry in survivability sysfs
        before using the SPI driver to update firmware

Rev2: Fix review comments (Rodrigo)
Rev3: Fix review comments

Riana Tauro (2):
  drm/xe/xe_survivability: Redesign survivability mode
  drm/xe/xe_survivability: Add support for survivability mode v2

 drivers/gpu/drm/xe/xe_pcode_api.h             |   2 +
 drivers/gpu/drm/xe/xe_survivability_mode.c    | 264 ++++++++++++------
 .../gpu/drm/xe/xe_survivability_mode_types.h  |  28 +-
 3 files changed, 199 insertions(+), 95 deletions(-)

-- 
2.47.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-12-10  7:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-12-08  8:45 [PATCH v3 0/2] Redesign survivability mode Riana Tauro
2025-12-08  8:45 ` [PATCH v3 1/2] drm/xe/xe_survivability: " Riana Tauro
2025-12-09 22:18   ` Rodrigo Vivi
2025-12-10  7:57   ` Nathan Chancellor
2025-12-08  8:45 ` [PATCH v3 2/2] drm/xe/xe_survivability: Add support for survivability mode v2 Riana Tauro
2025-12-08 13:08 ` ✓ CI.KUnit: success for Redesign survivability mode (rev3) Patchwork
2025-12-08 14:09 ` ✓ Xe.CI.BAT: " Patchwork
2025-12-08 18:35 ` ✓ Xe.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox