qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH-for-9.2 v3 0/3] hw/ssi/pnv_spi: Remove PnvXferBuffer and get_seq_index()
@ 2024-09-18 16:50 Chalapathi V
  2024-09-18 16:50 ` [PATCH v3 1/3] MAINTAINERS: Cover PowerPC SPI model in PowerNV section Chalapathi V
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Chalapathi V @ 2024-09-18 16:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-ppc, fbarrat, npiggin, clg, calebs, chalapathi.v,
	chalapathi.v, saif.abrar, dantan, milesg, philmd, alistair

Hello,

v3:
1. Update the PowerNV maintainer section to include hw/ssi/pnv_spi*
2. Use of PnvXferBuffer results in a additonal process overhead due to
frequent dynamic allocations and hence use an existing Fifo8 buffer.
3. 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.

Tested:
passed make check and make check-avocado

Supersedes: <20240807202804.56038-1-philmd@linaro.org>

Philippe Mathieu-Daudé (1):
  MAINTAINERS: Cover PowerPC SPI model in PowerNV section

Chalapathi V (2):
  hw/ssi/pnv_spi: Replace PnvXferBuffer with Fifo8 structure
  hw/ssi/pnv_spi: Use local var seq_index instead of get_seq_index().

 MAINTAINERS              |   2 +
 include/hw/ssi/pnv_spi.h |   3 +
 hw/ssi/pnv_spi.c         | 228 +++++++++++++++------------------------
 3 files changed, 89 insertions(+), 144 deletions(-)

-- 
2.39.5



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

end of thread, other threads:[~2024-10-08 17:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-18 16:50 [PATCH-for-9.2 v3 0/3] hw/ssi/pnv_spi: Remove PnvXferBuffer and get_seq_index() Chalapathi V
2024-09-18 16:50 ` [PATCH v3 1/3] MAINTAINERS: Cover PowerPC SPI model in PowerNV section Chalapathi V
2024-10-08  7:44   ` Nicholas Piggin
2024-10-08 17:32     ` Chalapathi V
2024-09-18 16:50 ` [PATCH v3 2/3] hw/ssi/pnv_spi: Replace PnvXferBuffer with Fifo8 structure Chalapathi V
2024-10-08  7:59   ` Nicholas Piggin
2024-10-08 17:18     ` Chalapathi V
2024-09-18 16:50 ` [PATCH v3 3/3] hw/ssi/pnv_spi: Use local var seq_index instead of get_seq_index() Chalapathi V
2024-10-08  8:13   ` Nicholas Piggin
2024-10-08 17:34     ` Chalapathi V
2024-10-08  7:43 ` [PATCH-for-9.2 v3 0/3] hw/ssi/pnv_spi: Remove PnvXferBuffer and get_seq_index() Nicholas Piggin
2024-10-08 12:44   ` Cédric Le Goater
2024-10-08 17:40     ` Chalapathi V

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).