Received: from [140.186.70.92] (port=36779 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PeU6H-0006pq-Qc for qemu-devel@nongnu.org; Sun, 16 Jan 2011 10:01:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PeU6G-0002RF-Px for qemu-devel@nongnu.org; Sun, 16 Jan 2011 10:01:01 -0500 Received: from adelie.canonical.com ([91.189.90.139]:57616) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PeU6G-0002R8-Ka for qemu-devel@nongnu.org; Sun, 16 Jan 2011 10:01:00 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1PeU6F-00060p-F6 for ; Sun, 16 Jan 2011 15:00:59 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 6145B2E813B for ; Sun, 16 Jan 2011 15:00:59 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 16 Jan 2011 14:55:03 -0000 From: Aurelien Jarno Sender: bounces@canonical.com References: <20100510161859.22792.48943.malonedeb@potassium.ubuntu.com> Message-Id: <20110116145503.30859.50699.launchpad@palladium.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 578346] Re: ATA IDENTIFY DEVICE word 64 doesn't describe available PIO modes Reply-To: Bug 578346 <578346@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org ** Changed in: qemu Status: New =3D> Fix Committed -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/578346 Title: ATA IDENTIFY DEVICE word 64 doesn't describe available PIO modes Status in QEMU: Fix Committed Bug description: The IDENTIFY DEVICE data provided by Qemu ATA devices lacks good information in word 64. Word 64 describes PIO mode capabilities. NetBSD guests (perhaps dubiously) expect to find PIO modes 3 and/or 4 to be available before enabling Ultra DMA modes on the controller/device. This leads to NetBSD guests using PIO mode 0. NetBSD guests will accept values in the range of 0x00 through 0x1f (though at least one bit must be set for DMA to be considered) in word 64. Currently, ide_atapi_identify() sets this word to 0x3f in the USE_DMA_CDROM case and 0x01 otherwise. ide_identify() doesn't set this word at all. I recommend that these both be adjusted to 0x3, which parallels many real drives in the wild, as well as what a ATA8-ACS draft says SATA drives should have in word 64.