Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/2] xe_fault_injection: Improve probe fault injection handling
@ 2025-04-17 13:13 Marcin Bernatowicz
  2025-04-17 13:13 ` [PATCH i-g-t 1/2] tests/intel/xe_fault_injection: Return probe result from inject_fault_probe Marcin Bernatowicz
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Marcin Bernatowicz @ 2025-04-17 13:13 UTC (permalink / raw)
  To: igt-dev; +Cc: Marcin Bernatowicz, Francois Dugast, Satyanarayana K V P

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@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@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


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

end of thread, other threads:[~2025-04-25 10:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-17 13:13 [PATCH i-g-t 0/2] xe_fault_injection: Improve probe fault injection handling Marcin Bernatowicz
2025-04-17 13:13 ` [PATCH i-g-t 1/2] tests/intel/xe_fault_injection: Return probe result from inject_fault_probe Marcin Bernatowicz
2025-04-17 13:13 ` [PATCH i-g-t 2/2] tests/intel/xe_fault_injection: Make inject-fault-probe-function* tests VF-aware Marcin Bernatowicz
2025-04-17 14:51 ` ✗ Xe.CI.BAT: failure for xe_fault_injection: Improve probe fault injection handling Patchwork
2025-04-25 10:05   ` Bernatowicz, Marcin
2025-04-17 14:58 ` ✓ i915.CI.BAT: success " Patchwork
2025-04-18  2:57 ` ✗ i915.CI.Full: failure " Patchwork
2025-04-18  7:08 ` ✗ Xe.CI.Full: " Patchwork
2025-04-25 10:07   ` Bernatowicz, Marcin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox