All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] i2c: gpio: fault-injector: add two new injectors
@ 2019-02-19 16:39 Wolfram Sang
  2019-02-19 16:39 ` [PATCH v2 1/2] i2c: gpio: fault-injector: add 'lose_arbitration' injector Wolfram Sang
  2019-02-19 16:39 ` [PATCH v2 2/2] i2c: gpio: fault-injector: add 'inject_panic' injector Wolfram Sang
  0 siblings, 2 replies; 5+ messages in thread
From: Wolfram Sang @ 2019-02-19 16:39 UTC (permalink / raw)
  To: linux-i2c; +Cc: linux-renesas-soc, Geert Uytterhoeven, Wolfram Sang

After sending out the 'lose_arbitration' injector as RFC, here is now a patch
series with that injector updated and another one added.

The first one successfully triggers an ARBITRATION_LOST interrupt on my Renesas
Lager board (R-Car H2). The other one leaves SCL low on the same board because
of the Kernel panic, so reboot handlers need to handle that. But more
interestingly, it causes a deadlock because it needs this I2C adapter to
trigger a reboot via the PMIC. This is a good testcase for the soon to be
developed master_xfer_atomic callback for the I2C core.

Changes since V1:

* fixed a typo in the docs and used UTF8 for µs there
* limit user-supplied delay to 100ms
* don't overwrite existing errorcode if gpiod_direction_output() suceeds

No error propagation when we receive a signal. This is all handled seperately
in other layers as further tests have shown.

Wolfram Sang (2):
  i2c: gpio: fault-injector: add 'lose_arbitration' injector
  i2c: gpio: fault-injector: add 'inject_panic' injector

 Documentation/i2c/gpio-fault-injection |  51 ++++++++++++++++
 drivers/i2c/busses/i2c-gpio.c          | 103 +++++++++++++++++++++++++++++++++
 2 files changed, 154 insertions(+)

-- 
2.11.0


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

end of thread, other threads:[~2019-02-23  9:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-19 16:39 [PATCH v2 0/2] i2c: gpio: fault-injector: add two new injectors Wolfram Sang
2019-02-19 16:39 ` [PATCH v2 1/2] i2c: gpio: fault-injector: add 'lose_arbitration' injector Wolfram Sang
2019-02-23  9:36   ` Wolfram Sang
2019-02-19 16:39 ` [PATCH v2 2/2] i2c: gpio: fault-injector: add 'inject_panic' injector Wolfram Sang
2019-02-23  9:37   ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.