Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Redesign survivability mode
@ 2025-11-12 10:33 Riana Tauro
  2025-11-12 10:12 ` ✓ CI.KUnit: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 13+ messages in thread
From: Riana Tauro @ 2025-11-12 10:33 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, anshuman.gupta, lucas.demarchi, rodrigo.vivi,
	badal.nilawar

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


Riana Tauro (2):
  drm/xe/xe_survivability: Redesign survivability mode sysfs entries
  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    | 198 ++++++++++++++----
 .../gpu/drm/xe/xe_survivability_mode_types.h  |   7 +-
 3 files changed, 160 insertions(+), 47 deletions(-)

-- 
2.47.1


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

end of thread, other threads:[~2025-11-20 14:25 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12 10:33 [PATCH 0/2] Redesign survivability mode Riana Tauro
2025-11-12 10:12 ` ✓ CI.KUnit: success for " Patchwork
2025-11-12 10:33 ` [PATCH 1/2] drm/xe/xe_survivability: Redesign survivability mode sysfs entries Riana Tauro
2025-11-12 18:22   ` Rodrigo Vivi
2025-11-13  8:30     ` Riana Tauro
2025-11-12 10:33 ` [PATCH 2/2] drm/xe/xe_survivability: Add support for survivability mode v2 Riana Tauro
2025-11-12 18:20   ` Rodrigo Vivi
2025-11-13  8:26     ` Riana Tauro
2025-11-13 22:45       ` Rodrigo Vivi
2025-11-20  5:21         ` Riana Tauro
2025-11-20 14:25           ` Rodrigo Vivi
2025-11-12 10:49 ` ✓ Xe.CI.BAT: success for Redesign survivability mode Patchwork
2025-11-12 12:31 ` ✗ Xe.CI.Full: failure " Patchwork

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