[PATCH 0/2] Add configfs support for survivability mode
Riana Tauro
riana.tauro at intel.com
Fri Mar 7 14:24:43 UTC 2025
This RFC series proposes to expose attributes via xe configfs
subsystem. survivability mode attribute is added here that allows
the user to configure the device to enter survivability mode.
This is done by
echo "domain:bus:dev.fn" > /sys/bus/pci/drivers/xe/unbind
echo "domain:bus:dev.fn" > sys/kernel/config/xe/survivability_mode
echo "domain:bus:dev.fn" > /sys/bus/pci/drivers/xe/bind
This is an alternative to introducing module param that causes
all the connected and supported cards to enter survivability mode.
Manually entering survivability mode is useful when pcode does not
report failure and for validation
Riana Tauro (2):
drm/xe: Add configfs to enable survivability mode
drm/xe: Enable configfs support for survivability mode
drivers/gpu/drm/xe/Makefile | 1 +
drivers/gpu/drm/xe/xe_configfs.c | 117 +++++++++++++++++++++
drivers/gpu/drm/xe/xe_configfs.h | 16 +++
drivers/gpu/drm/xe/xe_module.c | 5 +
drivers/gpu/drm/xe/xe_module.h | 1 +
drivers/gpu/drm/xe/xe_pci.c | 8 +-
drivers/gpu/drm/xe/xe_survivability_mode.c | 21 +++-
7 files changed, 163 insertions(+), 6 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_configfs.c
create mode 100644 drivers/gpu/drm/xe/xe_configfs.h
--
2.47.1
More information about the Intel-xe
mailing list