Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-xe] [PATCH v9 0/3] Notify userspace about uevent failure
@ 2023-07-26 23:26 Himal Prasad Ghimiray
  2023-07-26 23:26 ` [Intel-xe] [PATCH v9 1/3] fault-inject: Include linux/types.h by default Himal Prasad Ghimiray
                   ` (9 more replies)
  0 siblings, 10 replies; 18+ messages in thread
From: Himal Prasad Ghimiray @ 2023-07-26 23:26 UTC (permalink / raw)
  To: intel-xe; +Cc: Lucas De Marchi, Rodrigo Vivi

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@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@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@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


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

end of thread, other threads:[~2023-08-01  8:05 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26 23:26 [Intel-xe] [PATCH v9 0/3] Notify userspace about uevent failure Himal Prasad Ghimiray
2023-07-26 23:26 ` [Intel-xe] [PATCH v9 1/3] fault-inject: Include linux/types.h by default Himal Prasad Ghimiray
2023-07-28 16:49   ` Rodrigo Vivi
2023-07-26 23:26 ` [Intel-xe] [PATCH v9 2/3] drm/xe: Notify Userspace when gt reset fails Himal Prasad Ghimiray
2023-07-26 23:26 ` [Intel-xe] [PATCH v9 3/3] drm/xe: Introduce fault injection for gt reset Himal Prasad Ghimiray
2023-07-31 14:30   ` Balasubramani Vivekanandan
2023-07-31 15:24     ` Ghimiray, Himal Prasad
2023-08-01  6:02       ` Balasubramani Vivekanandan
2023-08-01  6:45         ` Ghimiray, Himal Prasad
2023-08-01  8:03           ` Balasubramani Vivekanandan
2023-08-01  8:04             ` Ghimiray, Himal Prasad
2023-07-27  0:29 ` [Intel-xe] ✓ CI.Patch_applied: success for Notify userspace about uevent failure Patchwork
2023-07-27  0:29 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-07-27  0:30 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-07-27  0:34 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-07-27  0:35 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-07-27  0:36 ` [Intel-xe] ✗ CI.checksparse: warning " Patchwork
2023-07-27  1:10 ` [Intel-xe] ○ CI.BAT: info " Patchwork

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