From: Gerd Hoffmann <kraxel@redhat.com>
To: "Jaroslav Jindrák" <dzejrou@gmail.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] xhci: move command stop and command abort flag check to the case when the crcr_low register is set
Date: Mon, 21 Aug 2017 14:23:40 +0200 [thread overview]
Message-ID: <1503318220.26016.15.camel@redhat.com> (raw)
In-Reply-To: <CAE-Qwfz-RqR_qiOPmv8XF9SO-+4nroai0tNhE_CboEge9ufy+w@mail.gmail.com>
On Tue, 2017-08-01 at 01:48 +0200, Jaroslav Jindrák wrote:
> Hello,
>
> I'd like to submit a patch to the xhci subsystem of QEMU. Currently,
> when the command stop or command abort flags in the crcr_low register
> are set, nothing happens. This is because the part of the code that
> tests those two flags (and performs command ring abort/stop) is in
> the crcr_high case. This error has a simple workaround - after
> writing to the crcr_low register with either of these two flags set,
> one can write the value of crcr_high to crcr_high, so I
> assume this fix does not have that big of a priority, but a driver
> that follows the specification strictly would misbehave in this kind
> of situation (stopping/aborting the command ring).
Specs says (section 5.1, Register Conventions):
<quote>
If the xHC supports 64-bit addressing (AC64 = ‘1’), then software
should write registers containing 64-bit address fields using only
Qword accesses. If a system is incapable of issuing Qword accesses,
then writes to the 64-bit address fields shall be performed using 2
Dword accesses; low Dword-first, high-Dword second.
</quote>
So I think the guest must write both crcr_low and crcr_high, and the
qemu behavior is correct.
Are there any guests which actually have problems?
cheers,
Gerd
next prev parent reply other threads:[~2017-08-21 12:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-31 23:48 [Qemu-devel] xhci: move command stop and command abort flag check to the case when the crcr_low register is set Jaroslav Jindrák
2017-08-21 12:23 ` Gerd Hoffmann [this message]
2017-08-21 18:31 ` Jaroslav Jindrák
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=1503318220.26016.15.camel@redhat.com \
--to=kraxel@redhat.com \
--cc=dzejrou@gmail.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 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).