From: Niklas Cassel <cassel@kernel.org>
To: John Snow <jsnow@redhat.com>, "Denis V. Lunev" <den@openvz.org>
Cc: Damien Le Moal <dlemoal@kernel.org>,
Niklas Cassel <cassel@kernel.org>,
qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: [PATCH 04/13] hw/ide/ahci: complete unsupported NCQ commands
Date: Fri, 27 Nov 2026 20:12:39 +0100 [thread overview]
Message-ID: <20261127191250.3298004-5-cassel@kernel.org> (raw)
In-Reply-To: <20261127191250.3298004-1-cassel@kernel.org>
execute_ncq_command() aborts an NCQ command that it does not implement
(e.g. SEND FPDMA QUEUED) with ncq_err(), but does not call ncq_finish().
This means that no Set Device Bits FIS is sent, so the command never
completes. Linux will eventually notice a timeout and reset the port,
however, the the proper thing to do is to send a SDB FIS after calling
ncq_err() such that the host gets an IRQ.
Fixes: 72a065dbb13d ("ahci: add is_ncq predicate helper")
Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
hw/ide/ahci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c
index e3ae46e869..e14b298ea6 100644
--- a/hw/ide/ahci.c
+++ b/hw/ide/ahci.c
@@ -1127,6 +1127,7 @@ static void execute_ncq_command(NCQTransferState *ncq_tfs)
trace_execute_ncq_command_unsup(ad->hba, port,
ncq_tfs->tag, ncq_tfs->cmd);
ncq_err(ncq_tfs);
+ ncq_finish(ncq_tfs);
}
}
--
2.56.1
next prev parent reply other threads:[~2026-11-27 19:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 19:12 [PATCH 00/13] hw/ide: add missing features required for SATA Niklas Cassel
2026-11-27 19:12 ` [PATCH 01/13] hw/ide: report the SMART state in IDENTIFY DEVICE Niklas Cassel
2026-11-30 5:10 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 02/13] hw/ide/ahci: stop processing commands after a fatal error Niklas Cassel
2026-11-30 5:13 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 03/13] hw/ide/ahci: clear a stale error status when an NCQ command is queued Niklas Cassel
2026-11-30 5:15 ` Damien Le Moal
2026-11-27 19:12 ` Niklas Cassel [this message]
2026-11-30 5:16 ` [PATCH 04/13] hw/ide/ahci: complete unsupported NCQ commands Damien Le Moal
2026-11-27 19:12 ` [PATCH 05/13] hw/ide: add General Purpose Logging (GPL) feature set support Niklas Cassel
2026-11-30 5:20 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 06/13] hw/ide: add the IDENTIFY DEVICE data log Niklas Cassel
2026-11-30 5:23 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 07/13] hw/ide/ahci: add RECEIVE FPDMA QUEUED support Niklas Cassel
2026-11-30 5:25 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 08/13] hw/ide: add Sense Data Reporting feature set support Niklas Cassel
2026-11-30 5:30 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 09/13] hw/ide: implement the NCQ Command Error log (10h) Niklas Cassel
2026-11-30 5:34 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 10/13] tests/qtest/libqos: skip some checks for commands expected to fail Niklas Cassel
2026-11-27 19:12 ` [PATCH 11/13] hw/ide: report out-of-range accesses as ILLEGAL REQUEST Niklas Cassel
2026-11-30 5:35 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 12/13] hw/ide/ahci: check the LBA range of NCQ commands Niklas Cassel
2026-11-30 5:36 ` Damien Le Moal
2026-11-27 19:12 ` [PATCH 13/13] hw/ide: report ACS-6 compliance behind AHCI Niklas Cassel
2026-11-30 5:37 ` Damien Le Moal
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=20261127191250.3298004-5-cassel@kernel.org \
--to=cassel@kernel.org \
--cc=den@openvz.org \
--cc=dlemoal@kernel.org \
--cc=jsnow@redhat.com \
--cc=qemu-block@nongnu.org \
--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.