[PATCH i-g-t 0/2] xe_fault_injection: Improve probe fault injection handling
Marcin Bernatowicz
marcin.bernatowicz at linux.intel.com
Thu Apr 17 13:13:10 UTC 2025
This patch series improves fault injection test coverage in the
xe_fault_injection test by decoupling error checking from the fault
injection helper and making tests aware of Virtual Function (VF) contexts.
Patch 1 modifies the `inject_fault_probe()` helper to return the result
of the probe instead of asserting internally. This change allows callers
to determine whether an assertion is needed, and enables more flexible
handling of fault injection scenarios.
Patch 2 updates the "inject-fault-probe-function*" tests to be VF-aware.
Some functions listed for probe fault injection are only expected to fail
on Physical Functions (PF), and may not be invoked at all on VFs. These
functions are now marked with a `pf_only` flag and handled appropriately
at runtime based on device type.
Together, these changes enable more accurate and robust testing of fault
injection across both PF and VF environments, avoiding false failures on
VF.
Cc: Francois Dugast <francois.dugast at intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p at intel.com>
Marcin Bernatowicz (2):
tests/intel/xe_fault_injection: Return probe result from
inject_fault_probe
tests/intel/xe_fault_injection: Make inject-fault-probe-function*
tests VF-aware
tests/intel/xe_fault_injection.c | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)
--
2.31.1
More information about the igt-dev
mailing list