Skip to content

hw/ssi/pnv_spi: Remove PnvXferBuffer and other improvements

Chalapathi V qemu-devel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 0 repliesNew
  2. v54 patches 11 repliesSuperseded
  3. v42 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v33 patches9 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/ssi/pnv_spi: Replace PnvXferBuffer with Fifo8 structurehw/ssi/pnv_spi.c include/hw/ssi/pnv_spi.h+108 -1590 replies
2/4hw/ssi/pnv_spi: Use local var seq_index instead of get_seq_index().hw/ssi/pnv_spi.c+52 -450 replies
3/4hw/ssi/pnv_spi: Make bus names distinct for each controllers of a sockethw/ppc/pnv.c hw/ssi/pnv_spi.c include/hw/ssi/pnv_spi.h +1 more+8 -40 replies
4/4hw/ssi/pnv_spi: Put a limit to RDR match failureshw/ssi/pnv_spi.c include/hw/ssi/pnv_spi.h+11 -00 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchNicholas Piggin
1/4
2/4R-b
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/4] hw/ssi/pnv_spi: Remove PnvXferBuffer and other improvements

Hello,

In this revision comments from patch V5 are addressed.

Updates in V6:
1. Improve error logging when there is an overflow or underflow of Fifo8 structure
2. Add comments about local variable seq_index.
3. Update the bus name to chipX.spi.<busnum>, X = 0..<num_sockets>
4. keep fail_count in PnvSpi so that each instance of spi has its own count.

Updates in V5:
1. Use of PnvXferBuffer results in a additional process overhead due to frequent dynamic allocations and hence use an existing Fifo8 buffer.
2. Use a local variable seq_index and use it with in while loop instead of repeatedly calling get_seq_index() and make sure s->seq_op doesn't overrun when seq_index is incremented.
3. Unique bus names are created for each controller in a socket so that responders are attached to correct SPI controllers via CLI.
4. Enforce a limit on number RDR match failures so that SPI controller doesn't get caught in an infinite execution loop querying the responder for RDR match.

Tested:
passed make check and make check-avocado

Chalapathi V (4):
hw/ssi/pnv_spi: Replace PnvXferBuffer with Fifo8 structure hw/ssi/pnv_spi: Use local var seq_index instead of get_seq_index(). hw/ssi/pnv_spi: Make bus names distinct for each controllers of a
socket
hw/ssi/pnv_spi: Put a limit to RDR match failures

 include/hw/ssi/pnv_spi.h           |   7 +-
 hw/ppc/pnv.c                       |   2 +
 hw/ssi/pnv_spi.c                   | 366 +++++++++++++----------------
 tests/qtest/pnv-spi-seeprom-test.c |   2 +-
 4 files changed, 174 insertions(+), 203 deletions(-)
Signature · 1 line
2.39.5