From: Niklas Cassel <Niklas.Cassel@wdc.com>
To: John Snow <jsnow@redhat.com>
Cc: Niklas Cassel <nks@flawful.org>,
"qemu-block@nongnu.org" <qemu-block@nongnu.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
Damien Le Moal <dlemoal@kernel.org>
Subject: Re: [PATCH v2 5/8] hw/ide/ahci: PxCI should not get cleared when ERR_STAT is set
Date: Wed, 7 Jun 2023 16:32:21 +0000 [thread overview]
Message-ID: <ZICxEuyDU5K+2GB8@x1-carbon> (raw)
In-Reply-To: <ZICpza8boQt4v/Yr@x1-carbon>
On Wed, Jun 07, 2023 at 06:01:17PM +0200, Niklas Cassel wrote:
> On Mon, Jun 05, 2023 at 08:19:43PM -0400, John Snow wrote:
> > On Thu, Jun 1, 2023 at 9:46 AM Niklas Cassel <nks@flawful.org> wrote:
> > >
> > > From: Niklas Cassel <niklas.cassel@wdc.com>
> > >
> > > For NCQ, PxCI is cleared on command queued successfully.
> > > For non-NCQ, PxCI is cleared on command completed successfully.
> > > Successfully means ERR_STAT, BUSY and DRQ are all cleared.
> > >
> > > A command that has ERR_STAT set, does not get to clear PxCI.
> > > See AHCI 1.3.1, section 5.3.8, states RegFIS:Entry and RegFIS:ClearCI,
> > > and 5.3.16.5 ERR:FatalTaskfile.
> > >
> > > In the case of non-NCQ commands, not clearing PxCI is needed in order
> > > for host software to be able to see which command slot that failed.
> > >
> > > Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
> >
> > This patch causes the ahci test suite to hang. You might just need to
> > update the AHCI test suite.
> >
> > "make check" will hang on the ahci-test as of this patch.
>
> Argh :)
>
> Is there any simple way to run only the ahci test suite?
To answer my own question:
QTEST_QEMU_BINARY=./build/qemu-system-x86_64 QTEST_QEMU_IMG=./build/qemu-img gtester -k --verbose -m=quick build/tests/qtest/ahci-test -o test_log.xml
Kind regards,
Niklas
next prev parent reply other threads:[~2023-06-07 16:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-01 13:44 [PATCH v2 0/8] misc AHCI cleanups Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 1/8] hw/ide/ahci: remove stray backslash Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 2/8] hw/ide/core: set ERR_STAT in unsupported command completion Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 3/8] hw/ide/ahci: write D2H FIS on when processing NCQ command Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 4/8] hw/ide/ahci: simplify and document PxCI handling Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 5/8] hw/ide/ahci: PxCI should not get cleared when ERR_STAT is set Niklas Cassel
2023-06-06 0:19 ` John Snow
2023-06-07 16:01 ` Niklas Cassel
2023-06-07 16:32 ` Niklas Cassel [this message]
2023-06-01 13:44 ` [PATCH v2 6/8] hw/ide/ahci: PxSACT and PxCI is cleared when PxCMD.ST is cleared Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 7/8] hw/ide/ahci: fix ahci_write_fis_sdb() Niklas Cassel
2023-06-01 13:44 ` [PATCH v2 8/8] hw/ide/ahci: fix broken SError handling Niklas Cassel
2023-06-01 19:17 ` [PATCH v2 0/8] misc AHCI cleanups John Snow
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=ZICxEuyDU5K+2GB8@x1-carbon \
--to=niklas.cassel@wdc.com \
--cc=dlemoal@kernel.org \
--cc=jsnow@redhat.com \
--cc=nks@flawful.org \
--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 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).