From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjOLq-0002uH-2W for qemu-devel@nongnu.org; Wed, 29 Oct 2014 04:11:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjOLk-0005mC-0L for qemu-devel@nongnu.org; Wed, 29 Oct 2014 04:11:30 -0400 Received: from cantor2.suse.de ([195.135.220.15]:56854 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjOLj-0005m5-Po for qemu-devel@nongnu.org; Wed, 29 Oct 2014 04:11:23 -0400 Message-ID: <5450A12A.9000801@suse.de> Date: Wed, 29 Oct 2014 09:11:22 +0100 From: Hannes Reinecke MIME-Version: 1.0 References: <1414569232-21357-1-git-send-email-hare@suse.de> <1414569232-21357-2-git-send-email-hare@suse.de> <87wq7je1sx.fsf@blackfin.pond.sub.org> In-Reply-To: <87wq7je1sx.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 01/17] ahci: Fix CD-ROM signature List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Alexander Graf , qemu-devel@nongnu.org, Nic Bellinger , Paolo Bonzini , John Snow , Andreas Faerber On 10/29/2014 09:07 AM, Markus Armbruster wrote: > Copying John Snow for additional AHCI expertise. >=20 > Hannes Reinecke writes: >=20 >> 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 >> --- >> 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 e223258..970eea8 100644 >> --- a/hw/ide/ahci.h >> +++ b/hw/ide/ahci.h >> @@ -161,7 +161,7 @@ >> #define AHCI_CMD_HDR_CMD_FIS_LEN 0x1f >> #define AHCI_CMD_HDR_PRDT_LEN 16 >> =20 >> -#define SATA_SIGNATURE_CDROM 0xeb140000 >> +#define SATA_SIGNATURE_CDROM 0xeb140101 >> #define SATA_SIGNATURE_DISK 0x00000101 >> =20 >> #define AHCI_GENERIC_HOST_CONTROL_REGS_MAX_ADDR 0x20 This is actually required by DUET/OVMF. It just does this check: (sig & 0xFFFF) =3D=3D 0x0101 and hence will run into a timeout when a CDROM is attached to ahci. It's even in the ATA spec ... Cheers, Hannes --=20 Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: J. Hawn, J. Guild, F. Imend=F6rffer, HRB 16746 (AG N=FCrnberg)