From: Kevin Wolf <kwolf@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: pbonzini@redhat.com, stefanha@redhat.com, hare@suse.de,
qemu-block@nongnu.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [Qemu-block] [PATCH 1/2] ahci: Fix CD-ROM signature
Date: Wed, 8 Jul 2015 11:26:23 +0200 [thread overview]
Message-ID: <20150708092623.GA4117@noname.redhat.com> (raw)
In-Reply-To: <559C0A06.3000402@redhat.com>
Am 07.07.2015 um 19:19 hat John Snow geschrieben:
>
>
> On 07/06/2015 05:49 PM, John Snow wrote:
> > From: Hannes Reinecke <hare@suse.de>
> >
> > The CD-ROM signature is 0xeb140101, not 0xeb140000.
> > Without this change OVMF/Duet runs into a timeout trying
> > to detect a SATA cdrom.
> >
> > Signed-off-by: Hannes Reinecke <hare@suse.de>
> > Signed-off-by: John Snow <jsnow@redhat.com>
> > ---
> > hw/ide/ahci.h | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/hw/ide/ahci.h b/hw/ide/ahci.h
> > index 9f5b4d2..68d5074 100644
> > --- a/hw/ide/ahci.h
> > +++ b/hw/ide/ahci.h
> > @@ -166,7 +166,7 @@
> > #define AHCI_CMD_HDR_CMD_FIS_LEN 0x1f
> > #define AHCI_CMD_HDR_PRDT_LEN 16
> >
> > -#define SATA_SIGNATURE_CDROM 0xeb140000
> > +#define SATA_SIGNATURE_CDROM 0xeb140101
> > #define SATA_SIGNATURE_DISK 0x00000101
> >
> > #define AHCI_GENERIC_HOST_CONTROL_REGS_MAX_ADDR 0x20
> >
>
> FWIW for review purposes, this is based on ATA8 AC3, Table 184 "Device
> Signatures for Normal Output" and is very straightforward.
It is. The only thing that confuses me about this is that I thought it
had been fixed for a while already. My AHCI driver has a comment "Broken
value in qemu < 2.2" at the workaround, and I seem to remember that I
didn't need it for a newer qemu version indeed. Strange. Or perhaps I
only fixed it locally and then forgot to send the patch?
Anyway, the fix is obviously correct:
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
next prev parent reply other threads:[~2015-07-08 9:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-06 21:49 [Qemu-devel] [PATCH 0/2] ahci: Fix CD-ROM signature John Snow
2015-07-06 21:49 ` [Qemu-devel] [PATCH 1/2] " John Snow
2015-07-07 17:19 ` John Snow
2015-07-08 9:26 ` Kevin Wolf [this message]
2015-07-06 21:49 ` [Qemu-devel] [PATCH 2/2] ahci: fix signature generation John Snow
2015-07-07 8:49 ` Stefan Hajnoczi
2015-07-07 17:15 ` John Snow
2015-07-08 12:56 ` Stefan Hajnoczi
2015-07-08 15:18 ` 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=20150708092623.GA4117@noname.redhat.com \
--to=kwolf@redhat.com \
--cc=hare@suse.de \
--cc=jsnow@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.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).