Skip to content

nc53c710 rewrite

Helge Deller qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 0 repliesNew

Since v5 from the cover letter

Incorporated feedback from BALATON Zoltan <[email protected]>, specifically:
- added his r-b tag
- use dma_addr_t in lsi_do_dma() as in lsi53c895a driver
- rephrased commit message in patch 11, text from Keith Monahan
- stick to version 2 in vmstate struct

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14hw/scsi/ncr53c710: Cancel the in-flight request on soft resethw/scsi/ncr53c710.c+4 -00 replies
2/14hw/scsi/ncr53c710: Do not load SBCL from DBC after a SCRIPTS phase movehw/scsi/ncr53c710.c+0 -10 replies
3/14hw/scsi/scsi-disk: Add quirk_mode_page_no_flexible_disk, use it on the 715hw/hppa/machine.c hw/scsi/scsi-disk.c include/hw/scsi/scsi.h+24 -00 replies
4/14hw/scsi/lasi_ncr710: Limit max_target and max_lun to 7hw/scsi/lasi_ncr710.c+2 -20 replies
5/14hw/scsi/ncr53c710: Keep DCNTL.EA and DMODE.FC1 across an ISTAT.RST resethw/scsi/lasi_ncr710.c hw/scsi/ncr53c710.c hw/scsi/ncr53c710.h+16 -20 replies
6/14hw/scsi: Move shared LSI/NCR definitions to lsi_scsi.hMAINTAINERS hw/scsi/lsi53c895a.c hw/scsi/lsi_scsi.h+106 -780 replies
7/14hw/scsi/ncr53c710: Rewrite the 53C710 SCRIPTS enginehw/scsi/lasi_ncr710.c hw/scsi/lasi_ncr710.h hw/scsi/ncr53c710.c +2 more+1125 -21460 replies
8/14hw/scsi/ncr53c710: Deliver completions from bottom halveshw/scsi/ncr53c710.c hw/scsi/ncr53c710.h+90 -100 replies
9/14hw/scsi/ncr53c710: Drain asynchronous transfers in the register writehw/scsi/ncr53c710.c hw/scsi/trace-events+30 -00 replies
10/14hw/scsi/ncr53c710: Append SAVE DATA POINTERS after MESSAGE REJECT for HP-UXhw/scsi/ncr53c710.c+10 -10 replies
11/14hw/scsi/ncr53c710: Guard SCRIPTS reentrancy and cancel requests on soft resethw/scsi/ncr53c710.c hw/scsi/ncr53c710.h+44 -20 replies
12/14hw/scsi/lasi_ncr710: Map the full LASI SCSI module pagehw/scsi/lasi_ncr710.c+11 -40 replies
13/14hw/scsi/ncr53c710: Document the SIGP latch deviationhw/scsi/ncr53c710.c+8 -00 replies
14/14hw/scsi/ncr53c710: Bump the migration versionhw/scsi/lasi_ncr710.c hw/scsi/ncr53c710.c+4 -40 replies

Reviews trailers per patch

1 of 14 patches has a Reviewed-by or Acked-by.

PatchBALATON Zoltan
1/14
2/14
3/14
4/14
5/14
6/14R-b
7/14
8/14
9/14
10/14
11/14
12/14
13/14
14/14

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

Read the v1 thread

Cover letter [PATCH 00/14] nc53c710 rewrite

From: Helge Deller <[email protected]>

Fifth attempt to replace the existing 53c710 driver by a new driver based on the code of the lsi53c895a.c 🙂

Since v5:
Incorporated feedback from BALATON Zoltan <[email protected]>, specifically:
- added his r-b tag
- use dma_addr_t in lsi_do_dma() as in lsi53c895a driver
- rephrased commit message in patch 11, text from Keith Monahan
- stick to version 2 in vmstate struct

Since v4:
Used LLM to decompose v3 as logical / atomic changes when possible (didn't work well with the rewrite patch).

Fixes extracted first so could be merged for v11.2 (patches 1 to 5). The rest is the rewrite, so up to the maintainers (Helge, Mark) and is probably OK as hobbyist-only code.

Since v3:
- header split, Suggested-by tag (Zoltan)
- I couldn't figure the "hw/misc/lasi.c" change so dropped the comment about it.
- Dropped "move to COMMAND on CLEAR ACK after MESSAGE REJECT"
- Split rewrite patch as separated commits:
- base engine
- asynchronous completions
- synchronous drain
- HP-UX MESSAGE REJECT quirk
- reentrancy guard and reset-time request cancel

hw/scsi/ncr53c710.c is derived from hw/scsi/lsi53c895a.c which is LGPL, the rewrite is now declared GPL-2.0-or-later. hw/scsi/lsi_scsi.h, which is moved verbatim from lsi53c895a.c, keeps the original terms: its header says "This code is licensed under the LGPL." with SPDX-License-Identifier: LGPL-2.1-or-later.

Keith Monahan (9):
hw/scsi/scsi-disk: Add quirk_mode_page_no_flexible_disk, use it on the

    715

hw/scsi: Move shared LSI/NCR definitions to lsi_scsi.h hw/scsi/ncr53c710: Rewrite the 53C710 SCRIPTS engine hw/scsi/ncr53c710: Deliver completions from bottom halves hw/scsi/ncr53c710: Drain asynchronous transfers in the register write hw/scsi/ncr53c710: Append SAVE DATA POINTERS after MESSAGE REJECT for
HP-UX
hw/scsi/ncr53c710: Guard SCRIPTS reentrancy and cancel requests on
soft reset
hw/scsi/lasi_ncr710: Map the full LASI SCSI module page hw/scsi/ncr53c710: Bump the migration version

Philippe Mathieu-Daudé (5):
hw/scsi/ncr53c710: Cancel the in-flight request on soft reset hw/scsi/ncr53c710: Do not load SBCL from DBC after a SCRIPTS phase
move
hw/scsi/lasi_ncr710: Limit max_target and max_lun to 7 hw/scsi/ncr53c710: Keep DCNTL.EA and DMODE.FC1 across an ISTAT.RST
reset
hw/scsi/ncr53c710: Document the SIGP latch deviation

 MAINTAINERS            |    1 +
 hw/hppa/machine.c      |   10 +
 hw/scsi/lasi_ncr710.c  |  135 +-
 hw/scsi/lasi_ncr710.h  |   28 +-
 hw/scsi/lsi53c895a.c   |   79 +-
 hw/scsi/lsi_scsi.h     |  104 ++
 hw/scsi/ncr53c710.c    | 2957 +++++++++++++++-------------------------
 hw/scsi/ncr53c710.h    |  287 ++--
 hw/scsi/scsi-disk.c    |   13 +
 hw/scsi/trace-events   |   43 +-
 include/hw/scsi/scsi.h |    1 +
 11 files changed, 1441 insertions(+), 2217 deletions(-)
 create mode 100644 hw/scsi/lsi_scsi.h
Signature · 1 line
2.54.0