All of lore.kernel.org
 help / color / mirror / Atom feed
From: Helge Deller <deller@kernel.org>
To: qemu-devel@nongnu.org
Cc: "Keith Monahan" <keith@techtravels.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@oss.qualcomm.com>,
	"Fam Zheng" <fam@euphon.net>, "Helge Deller" <deller@gmx.de>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"BALATON Zoltan" <balaton@eik.bme.hu>,
	"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>
Subject: [PATCH 13/14] hw/scsi/ncr53c710: Document the SIGP latch deviation
Date: Mon, 23 Nov 2026 18:21:50 +0100	[thread overview]
Message-ID: <20261123172151.7605-14-deller@kernel.org> (raw)
In-Reply-To: <20261123172151.7605-1-deller@kernel.org>

From: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>

Comment only, no functional change.  The data manual describes SIGP
(ISTAT bit 5) as a read/write flag that stays set until reset by the
CPU, either through ISTAT or by reading CTEST2.  The emulation drops
the bit at once when it is set while the engine is halted and
remembers the kick in sigp_pending_resume instead.  Note the
deviation at the code.  The reason is not documented in the history.

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/ncr53c710.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/hw/scsi/ncr53c710.c b/hw/scsi/ncr53c710.c
index b7fc97b93b..a77705eeda 100644
--- a/hw/scsi/ncr53c710.c
+++ b/hw/scsi/ncr53c710.c
@@ -1525,6 +1525,14 @@ static void lsi_reg_writeb(NCR710State *s, int offset, uint8_t val)
              * Reselect consumption would, without disturbing the pending
              * completion.  Remember the kick so the next command is selected
              * once the engine parks again at Wait Reselect.
+             *
+             * This deviates from the data manual, which describes SIGP as a
+             * read/write flag that stays set until the CPU resets it, either
+             * via ISTAT or by reading CTEST2: here a halted engine drops the
+             * bit at once, so a read of ISTAT or CTEST2 no longer sees it.
+             * The reason is not documented beyond the commit that added
+             * sigp_pending_resume (6bf09c62fa), which only says that a kick
+             * on a stopped engine is held and replayed once the engine parks.
              */
             s->istat &= ~LSI_ISTAT0_SIGP;
             s->sigp_pending_resume = true;
-- 
2.54.0



  parent reply	other threads:[~2026-11-23 17:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-23 17:21 [PATCH 00/14] nc53c710 rewrite Helge Deller
2026-11-23 17:21 ` [PATCH 01/14] hw/scsi/ncr53c710: Cancel the in-flight request on soft reset Helge Deller
2026-11-23 17:21 ` [PATCH 02/14] hw/scsi/ncr53c710: Do not load SBCL from DBC after a SCRIPTS phase move Helge Deller
2026-11-23 17:21 ` [PATCH 03/14] hw/scsi/scsi-disk: Add quirk_mode_page_no_flexible_disk, use it on the 715 Helge Deller
2026-11-23 17:21 ` [PATCH 04/14] hw/scsi/lasi_ncr710: Limit max_target and max_lun to 7 Helge Deller
2026-11-23 17:21 ` [PATCH 05/14] hw/scsi/ncr53c710: Keep DCNTL.EA and DMODE.FC1 across an ISTAT.RST reset Helge Deller
2026-11-23 17:21 ` [PATCH 06/14] hw/scsi: Move shared LSI/NCR definitions to lsi_scsi.h Helge Deller
2026-11-23 17:21 ` [PATCH 07/14] hw/scsi/ncr53c710: Rewrite the 53C710 SCRIPTS engine Helge Deller
2026-11-23 17:21 ` [PATCH 08/14] hw/scsi/ncr53c710: Deliver completions from bottom halves Helge Deller
2026-11-23 17:21 ` [PATCH 09/14] hw/scsi/ncr53c710: Drain asynchronous transfers in the register write Helge Deller
2026-11-23 17:21 ` [PATCH 10/14] hw/scsi/ncr53c710: Append SAVE DATA POINTERS after MESSAGE REJECT for HP-UX Helge Deller
2026-11-23 17:21 ` [PATCH 11/14] hw/scsi/ncr53c710: Guard SCRIPTS reentrancy and cancel requests on soft reset Helge Deller
2026-11-23 17:21 ` [PATCH 12/14] hw/scsi/lasi_ncr710: Map the full LASI SCSI module page Helge Deller
2026-11-23 17:21 ` Helge Deller [this message]
2026-11-23 17:21 ` [PATCH 14/14] hw/scsi/ncr53c710: Bump the migration version Helge Deller

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=20261123172151.7605-14-deller@kernel.org \
    --to=deller@kernel.org \
    --cc=balaton@eik.bme.hu \
    --cc=deller@gmx.de \
    --cc=fam@euphon.net \
    --cc=keith@techtravels.org \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=pbonzini@redhat.com \
    --cc=philmd@oss.qualcomm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.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.