Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/4] tests/intel/xe_fault_injection: Inject errors during xe_guc_ct_send_recv() xe_guc_mmio_send_recv()
@ 2025-02-07  7:28 Satyanarayana K V P
  2025-02-07  7:28 ` [PATCH i-g-t 1/4] lib/igt_sysfs: Add support for device unbinding Satyanarayana K V P
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Satyanarayana K V P @ 2025-02-07  7:28 UTC (permalink / raw)
  To: igt-dev; +Cc: Satyanarayana K V P

Use the kernel fault injection infrastructure to test error handling of xe
at probe time when error is injected for functions xe_guc_mmio_send_recv()
and xe_guc_ct_send_recv().

Error can be injected using:
igt@xe_fault_injection@probe-fail-guc-xe_guc_mmio_send_recv
igt@xe_fault_injection@probe-fail-guc-xe_guc_ct_send_recv

Introduce an environment variable IGT_FAULT_INJECT_ITERATION using which,
an error can be injected at specific function call. If the environment is
not exported, an error will be injected in every possible function call
starting from first up to the max number of iteration defined by
INJECT_ITERATIONS, currently hardcoded as 100.

Error will be injected only once for all init functions. This envronment
variable takes effect only for xe_guc_mmio_send_recv() & xe_guc_ct_send_recv()
functions as of now (can be expanded to other functions in future).

Satyanarayana K V P (4):
  lib/igt_sysfs: Add support for device unbinding
  tests/intel/xe_fault_injection: Make setup_injection_fault()
    programmable.
  tests/intel/xe_fault_injection: Add helper functions to inject fault
    with specific budget parameter.
  tests/intel/xe_fault_injection: Inject errors during
    xe_guc_ct_send_recv & xe_guc_mmio_send_recv.

 lib/igt_sysfs.c                  |   4 ++
 lib/igt_sysfs.h                  |   1 +
 tests/intel/xe_fault_injection.c | 101 ++++++++++++++++++++++++++++---
 3 files changed, 99 insertions(+), 7 deletions(-)

-- 
2.35.3


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

end of thread, other threads:[~2025-02-18 16:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-07  7:28 [PATCH i-g-t 0/4] tests/intel/xe_fault_injection: Inject errors during xe_guc_ct_send_recv() xe_guc_mmio_send_recv() Satyanarayana K V P
2025-02-07  7:28 ` [PATCH i-g-t 1/4] lib/igt_sysfs: Add support for device unbinding Satyanarayana K V P
2025-02-18 12:19   ` Francois Dugast
2025-02-07  7:29 ` [PATCH i-g-t 2/4] tests/intel/xe_fault_injection: Make setup_injection_fault() programmable Satyanarayana K V P
2025-02-18 12:46   ` Francois Dugast
2025-02-07  7:29 ` [PATCH i-g-t 3/4] tests/intel/xe_fault_injection: Add helper functions to inject fault with specific budget parameter Satyanarayana K V P
2025-02-18 13:04   ` Francois Dugast
2025-02-07  7:29 ` [PATCH i-g-t 4/4] tests/intel/xe_fault_injection: Inject errors during xe_guc_ct_send_recv & xe_guc_mmio_send_recv Satyanarayana K V P
2025-02-18 13:48   ` Francois Dugast
2025-02-18 14:06     ` Michal Wajdeczko
2025-02-18 16:40       ` Francois Dugast
2025-02-08  0:01 ` ✓ i915.CI.BAT: success for tests/intel/xe_fault_injection: Inject errors during xe_guc_ct_send_recv() xe_guc_mmio_send_recv() Patchwork
2025-02-08  0:42 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-08 15:59 ` ✗ i915.CI.Full: failure " Patchwork
2025-02-08 17:21 ` ✗ 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