[PATCH i-g-t v2 0/5] tests/intel/xe_fault_injection: Inject errors during xe_guc_ct_send_recv() xe_guc_mmio_send_recv()

Satyanarayana K V P satyanarayana.k.v.p at intel.com
Wed Feb 19 07:34:40 UTC 2025


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 at xe_fault_injection@probe-fail-guc-xe_guc_mmio_send_recv
igt at 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 (5):
  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.
  tests/intel/xe_fault_injection: Do not assert if the captured error is
    not same as injected error.

 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



More information about the igt-dev mailing list