From: Niklas Cassel <nks@flawful.org>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>,
QEMU Developers <qemu-devel@nongnu.org>,
qemu-arm <qemu-arm@nongnu.org>, John Snow <jsnow@redhat.com>,
qemu-block@nongnu.org, Damien Le Moal <dlemoal@kernel.org>,
Leif Lindholm <quic_llindhol@quicinc.com>,
Ard Biesheuvel <ardb+tianocore@kernel.org>
Subject: Re: FreeBSD 13.2 installer does not see AHCI devices on aarch64/sbsa-ref and x86-64/q35
Date: Tue, 3 Oct 2023 22:41:44 +0200 [thread overview]
Message-ID: <ZRx8iLkWE5fwLOpE@x1-carbon> (raw)
In-Reply-To: <a6cc110d-132e-b3f3-0b64-368bcb5c31a9@tls.msk.ru>
On Tue, Oct 03, 2023 at 08:11:39PM +0300, Michael Tokarev wrote:
> 26.09.2023 15:05, Niklas Cassel:
> > Hello Marcin,
> >
> > I will have a look at this.
>
> Hi Marcin, Hi Niklas!
>
> Niklas, I remember asking you if the whole thing is okay for the -stable,
> and you was a bit unsure about it :) Regardless, I picked the changes
> up for -stable. I don't think it was anyone's fault though, - after all,
> I guess, without the change being in -stable, we'd know about this issue
> in some distant future instead of now :)
>
> I'm planning to release 8.1.2 soon, with freeze being at Oct-14. It'd
> be really great if we can include a fix for this both in master and in
> 8.1.2 (8.1.2 should have a long-awaited fix for a quite serious long-
> standing issue in 8.1).
>
> Were you able to take a look at what's going on here? I wish I were
> able to help here but I know right to nothing about ahci emulation..
I was away on a conference all last week, so I didn't have much time to
look at this yet. I will debug the problem this week.
From at quick look at Marcin logs:
ahcich0: Poll timeout on slot 1 port 0
ahcich0: is 00000000 cs 00000002 ss 00000000 rs 00000002 tfd 170 serr 00000000 cmd 0000c017
This log seems to come from:
http://fxr.watson.org/fxr/source/dev/ahci/ahci.c?v=FREEBSD-13-STABLE#L1795
Looking at the print "cs 00000002" means PxCI: 0x2.
So PxCI is never cleared.
I will need to run FreeBSD so I can see which command it is that never gets
PxCI cleared.
NCQ commands will always clear PxCI in process_ncq_command().
Non-NCQ commands will always clear PxCI in ahci_clear_cmd_issue().
From a quick glance, the only time we do not clear PxCI is if we receive
a FIS that we do not handle (trace_handle_cmd_unhandled_fis()).
Will try to see exactly which FIS FreeBSD is sending tomorrow.
(Perhaps we should simply clear PxCI for these FISes that we do not handle...
Or at least make sure that we set ERR_STAT in PxTFD.)
Kind regards,
Niklas
next prev parent reply other threads:[~2023-10-03 20:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 11:23 FreeBSD 13.2 installer does not see AHCI devices on aarch64/sbsa-ref and x86-64/q35 Marcin Juszkiewicz
2023-09-26 12:05 ` Niklas Cassel
2023-09-26 16:35 ` John Snow
2023-10-03 17:07 ` John Snow
2023-10-03 17:11 ` Michael Tokarev
2023-10-03 20:41 ` Niklas Cassel [this message]
2023-11-02 10:16 ` Marcin Juszkiewicz
2023-11-02 10:19 ` Michael Tokarev
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=ZRx8iLkWE5fwLOpE@x1-carbon \
--to=nks@flawful.org \
--cc=ardb+tianocore@kernel.org \
--cc=dlemoal@kernel.org \
--cc=jsnow@redhat.com \
--cc=marcin.juszkiewicz@linaro.org \
--cc=mjt@tls.msk.ru \
--cc=qemu-arm@nongnu.org \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=quic_llindhol@quicinc.com \
/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).