[Intel-xe] [PATCH v9 0/3] Notify userspace about uevent failure
Himal Prasad Ghimiray
himal.prasad.ghimiray at intel.com
Wed Jul 26 23:26:47 UTC 2023
series sends an uevent in case of gt reset failure.
since we have no mechanism to ensure gt reset failure from
hw perspective introducing the fault injection to validate the uevent.
https://gitlab.freedesktop.org/drm/xe/ci/-/commit/5ab4b369758a57b5a799b93c1d5b556c98d9d557
is enabling the config to ensure debugfs creations are succesful.
Tested-by: Himal Prasad Ghimiray <himal.prasad.ghimiray at intel.com>
Testcase: https://patchwork.freedesktop.org/series/121391/
udevadm monitor output from PVC:
KERNEL[445.821589] change
/devices/pci0000:89/0000:89:02.0/0000:8a:00.0/0000:8b:01.0/0000:8c:00.0
(pci)
ACTION=change
DEVPATH=/devices/pci0000:89/0000:89:02.0/0000:8a:00.0/0000:8b:01.0/0000:8c:00.0
SUBSYSTEM=pci
DEVICE_STATUS=NEEDS_RESET
TILE_ID=0
GT_ID=0
DRIVER=xe
PCI_CLASS=38000
PCI_ID=8086:0BD6
PCI_SUBSYS_ID=8086:0000
PCI_SLOT_NAME=0000:8c:00.0
MODALIAS=pci:v00008086d00000BD6sv00008086sd00000000bc03sc80i00
SEQNUM=8817
KERNEL[446.296995] change
/devices/pci0000:89/0000:89:02.0/0000:8a:00.0/0000:8b:01.0/0000:8c:00.0
(pci)
ACTION=change
DEVPATH=/devices/pci0000:89/0000:89:02.0/0000:8a:00.0/0000:8b:01.0/0000:8c:00.0
SUBSYSTEM=pci
DEVICE_STATUS=NEEDS_RESET
TILE_ID=1
GT_ID=1
DRIVER=xe
PCI_CLASS=38000
PCI_ID=8086:0BD6
PCI_SUBSYS_ID=8086:0000
PCI_SLOT_NAME=0000:8c:00.0
MODALIAS=pci:v00008086d00000BD6sv00008086sd00000000bc03sc80i00
SEQNUM=8818
Cc: Lucas De Marchi <lucas.demarchi at intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi at intel.com>
Himal Prasad Ghimiray (3):
fault-inject: Include linux/types.h by default.
drm/xe: Notify Userspace when gt reset fails
drm/xe: Introduce fault injection for gt reset
drivers/gpu/drm/xe/xe_debugfs.c | 10 ++++++++++
drivers/gpu/drm/xe/xe_gt.c | 27 ++++++++++++++++++++++++++-
drivers/gpu/drm/xe/xe_gt.h | 14 ++++++++++++++
include/linux/fault-inject.h | 3 ++-
include/uapi/drm/xe_drm.h | 10 ++++++++++
5 files changed, 62 insertions(+), 2 deletions(-)
--
2.25.1
More information about the Intel-xe
mailing list