Skip to content

xe_fault_injection: Improve probe fault injection handling

Marcin Bernatowicz igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/intel/xe_fault_injection: Return probe result from inject_fault_probetests/intel/xe_fault_injection.c+7 -40 replies
2/2tests/intel/xe_fault_injection: Make inject-fault-probe-function* tests VF-awaretests/intel/xe_fault_injection.c+16 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH i-g-t 0/2] xe_fault_injection: Improve probe fault injection handling

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 <[email protected]>
Cc Satyanarayana K V P <[email protected]>

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(-)
Signature · 1 line
2.31.1