qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] hw/i2c: smbus: Reset fixes
@ 2024-01-10 21:26 Joe Komlodi
  2024-01-10 21:26 ` [PATCH 1/4] hw/i2c: core: Add reset Joe Komlodi
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Joe Komlodi @ 2024-01-10 21:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: venture, komlodi, cminyard

Hi all,

This series adds some resets for SMBus and for the I2C core. Along with
it, we make SMBus slave error printing a little more helpful.

These reset issues were very infrequent, they would maybe occur in 1 out
of hundreds of resets in our testing, but the way they happen is pretty
straightforward.
Basically as long as a reset happens in the middle of a transaction, the
state of the old transaction would still partially be there after the
reset. Once a new transaction comes in, the partial stale state can
cause the new transaction to incorrectly fail.

Thanks,
Joe

Joe Komlodi (4):
  hw/i2c: core: Add reset
  hw/i2c/smbus_slave: Add object path on error prints
  hw/i2c: smbus_slave: Reset state on reset
  hw/i2c: smbus: mux: Reset SMBusDevice state on reset

 hw/i2c/core.c                | 30 +++++++++++++++++++++++++-----
 hw/i2c/i2c_mux_pca954x.c     |  5 +++++
 hw/i2c/smbus_slave.c         | 20 ++++++++++++++++++--
 include/hw/i2c/i2c.h         |  6 +++++-
 include/hw/i2c/smbus_slave.h |  1 +
 5 files changed, 54 insertions(+), 8 deletions(-)

-- 
2.43.0.472.g3155946c3a-goog



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

end of thread, other threads:[~2024-01-24 17:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-10 21:26 [PATCH 0/4] hw/i2c: smbus: Reset fixes Joe Komlodi
2024-01-10 21:26 ` [PATCH 1/4] hw/i2c: core: Add reset Joe Komlodi
2024-01-10 21:26 ` [PATCH 2/4] hw/i2c/smbus_slave: Add object path on error prints Joe Komlodi
2024-01-10 21:26 ` [PATCH 3/4] hw/i2c: smbus_slave: Reset state on reset Joe Komlodi
2024-01-10 21:26 ` [PATCH 4/4] hw/i2c: smbus: mux: Reset SMBusDevice " Joe Komlodi
2024-01-10 21:32 ` [PATCH 0/4] hw/i2c: smbus: Reset fixes Joe Komlodi
2024-01-11 14:03 ` Corey Minyard
2024-01-24 17:39   ` Joe Komlodi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).