From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
"Keith Monahan" <keith@techtravels.org>,
"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
"Helge Deller" <deller@gmx.de>,
"BALATON Zoltan" <balaton@eik.bme.hu>
Subject: [PULL for 11.2 12/14] hw/scsi/lasi_ncr710: Map the full LASI SCSI module page
Date: Wed, 25 Nov 2026 03:49:49 +0100 [thread overview]
Message-ID: <20261125024951.10428-13-deller@kernel.org> (raw)
In-Reply-To: <20261125024951.10428-1-deller@kernel.org>
From: Keith Monahan <keith@techtravels.org>
0x100..0x1ff goes to the chip core as before. The rest of the module
page reads as 0: HP-UX reads a board strap at 0xd85 (bit 0x20:
differential bus, 25 MHz clock); 0 is single ended, 50 MHz.
0x10..0xff and 0x200..0xfff are unmapped module space. Writes to all
of them are ignored.
Signed-off-by: Keith Monahan <keith@techtravels.org>
AI-used-for: Patch series decomposition (commit splitting and ordering)
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Helge Deller <deller@gmx.de>
---
hw/scsi/lasi_ncr710.c | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/hw/scsi/lasi_ncr710.c b/hw/scsi/lasi_ncr710.c
index cbb04017ce..c8a28cd987 100644
--- a/hw/scsi/lasi_ncr710.c
+++ b/hw/scsi/lasi_ncr710.c
@@ -45,7 +45,8 @@ static uint64_t lasi_ncr710_reg_read(void *opaque, hwaddr addr,
return val;
}
- if (addr >= 0x100) {
+ /* 0x100..0x1ff goes to the chip core. */
+ if (addr >= 0x100 && addr + size <= 0x200) {
hwaddr ncr_addr = addr - 0x100;
if (size == 1) {
/*
@@ -68,6 +69,11 @@ static uint64_t lasi_ncr710_reg_read(void *opaque, hwaddr addr,
trace_lasi_ncr710_reg_forward_read(addr, val);
} else {
+ /*
+ * The rest of the module page reads as 0. HP-UX reads a board strap
+ * at 0xd85 (bit 0x20: differential bus, 25 MHz clock); 0 is single
+ * ended, 50 MHz.
+ */
val = 0;
trace_lasi_ncr710_reg_read(addr, val, size);
}
@@ -83,13 +89,14 @@ static void lasi_ncr710_reg_write(void *opaque, hwaddr addr,
/*
* 0x00..0x0f is the read only LASI module header (ID/SVERSION/HVERSION);
- * writes to it are ignored.
+ * 0x10..0xff and 0x200..0xfff are unmapped module space. Writes to all
+ * of them are ignored.
*/
if (addr <= 0x0f) {
return;
}
- if (addr >= 0x100) {
+ if (addr >= 0x100 && addr + size <= 0x200) {
hwaddr ncr_addr = addr - 0x100;
if (size == 1) {
@@ -191,7 +198,7 @@ static void lasi_ncr710_realize(DeviceState *dev, Error **errp)
(uint64_t)s->ncr710.scripts_timer);
memory_region_init_io(&s->mmio, OBJECT(dev), &lasi_ncr710_mmio_ops, s,
- "lasi-ncr710", 0x200);
+ "lasi-ncr710", 0x1000);
sysbus_init_mmio(sbd, &s->mmio);
}
--
2.54.0
next prev parent reply other threads:[~2026-11-25 2:52 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 2:49 [PULL for 11.2 00/14] ncr53c710 driver rewrite Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 01/14] hw/scsi/ncr53c710: Cancel the in-flight request on soft reset Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 02/14] hw/scsi/ncr53c710: Do not load SBCL from DBC after a SCRIPTS phase move Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 03/14] hw/scsi/scsi-disk: Add quirk_mode_page_no_flexible_disk, use it on the 715 Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 04/14] hw/scsi/lasi_ncr710: Limit max_target and max_lun to 7 Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 05/14] hw/scsi/ncr53c710: Keep DCNTL.EA and DMODE.FC1 across an ISTAT.RST reset Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 06/14] hw/scsi: Move shared LSI/NCR definitions to lsi_scsi.h Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 07/14] hw/scsi/ncr53c710: Rewrite the 53C710 SCRIPTS engine Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 08/14] hw/scsi/ncr53c710: Deliver completions from bottom halves Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 09/14] hw/scsi/ncr53c710: Drain asynchronous transfers in the register write Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 10/14] hw/scsi/ncr53c710: Append SAVE DATA POINTERS after MESSAGE REJECT for HP-UX Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 11/14] hw/scsi/ncr53c710: Guard SCRIPTS reentrancy and cancel requests on soft reset Helge Deller
2026-11-25 2:49 ` Helge Deller [this message]
2026-11-25 2:49 ` [PULL for 11.2 13/14] hw/scsi/ncr53c710: Document the SIGP latch deviation Helge Deller
2026-11-25 2:49 ` [PULL for 11.2 14/14] hw/scsi/ncr53c710: Bump the migration version Helge Deller
2026-11-25 20:54 ` [PULL for 11.2 00/14] ncr53c710 driver rewrite Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261125024951.10428-13-deller@kernel.org \
--to=deller@kernel.org \
--cc=balaton@eik.bme.hu \
--cc=deller@gmx.de \
--cc=keith@techtravels.org \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=philmd@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.