xe_fault_injection: Improve probe fault injection handling
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tests/intel/xe_fault_injection: Return probe result from inject_fault_probetests/ | +7 | 0 replies | |
| 2/2 | tests/intel/xe_fault_injection: Make inject-fault-probe-function* tests VF-awaretests/ | +16 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.
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