* fault injection: query if a fault has been injected?
@ 2025-11-27 12:47 Jani Nikula
2025-11-30 12:07 ` Akinobu Mita
0 siblings, 1 reply; 2+ messages in thread
From: Jani Nikula @ 2025-11-27 12:47 UTC (permalink / raw)
To: Akinobu Mita; +Cc: linux-kernel, Juha-Pekka Heikkila
Hi Akinobu -
The i915 driver has its own fault injection mechanism that we're in the
process of migrating to the kernel generic fault injection.
One feature we have is being able to check if a fault has been injected
in the driver. We could then tone down certain error/warning messages to
debug messages. The point being, CI could more trivially ignore the
expected failures, while still failing on errors and warnings that are
unrelated to the injected fault.
Is there anything like that in the generic fault injection mechanism? Or
do we have to figure all of this out in user space?
BR,
Jani.
--
Jani Nikula, Intel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: fault injection: query if a fault has been injected?
2025-11-27 12:47 fault injection: query if a fault has been injected? Jani Nikula
@ 2025-11-30 12:07 ` Akinobu Mita
0 siblings, 0 replies; 2+ messages in thread
From: Akinobu Mita @ 2025-11-30 12:07 UTC (permalink / raw)
To: Jani Nikula; +Cc: linux-kernel, Juha-Pekka Heikkila
2025年11月27日(木) 21:49 Jani Nikula <jani.nikula@intel.com>:
>
>
> Hi Akinobu -
>
> The i915 driver has its own fault injection mechanism that we're in the
> process of migrating to the kernel generic fault injection.
>
> One feature we have is being able to check if a fault has been injected
> in the driver. We could then tone down certain error/warning messages to
> debug messages. The point being, CI could more trivially ignore the
> expected failures, while still failing on errors and warnings that are
> unrelated to the injected fault.
>
> Is there anything like that in the generic fault injection mechanism? Or
> do we have to figure all of this out in user space?
I took a quick look at the i915 driver's fault injection.
The fail-nth function may be useful for implementing inject_probe_failure.
The section "Systematic faults using fail-nth" in
Documentation/fault-injection/fault-injection.rst explains this.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-11-30 12:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-27 12:47 fault injection: query if a fault has been injected? Jani Nikula
2025-11-30 12:07 ` Akinobu Mita
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®