Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CSgv2-0005r2-FT for qemu-devel@nongnu.org; Fri, 12 Nov 2004 14:17:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CSgv1-0005qD-Iu for qemu-devel@nongnu.org; Fri, 12 Nov 2004 14:17:11 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CSgv1-0005q3-Dt for qemu-devel@nongnu.org; Fri, 12 Nov 2004 14:17:11 -0500 Received: from [192.76.135.70] (helo=kurt.tools.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CSgm9-0005Ra-G3 for qemu-devel@nongnu.org; Fri, 12 Nov 2004 14:08:01 -0500 Received: from leo.tools.intra (leo.tools.intra [172.20.0.71]) by kurt.tools.de (8.12.11/8.12.11) with ESMTP id iACJ7xSk028321 for ; Fri, 12 Nov 2004 20:07:59 +0100 (MET) Received: from tiger2.tools.intra (tiger2.tools.intra [IPv6:2::20:208:c7ff:feaa:83b8]) by leo.tools.intra (8.13.1+Sun/8.13.1) with SMTP id iACJ7xqx028492 for ; Fri, 12 Nov 2004 20:07:59 +0100 (CET) Message-Id: <200411121907.iACJ7xqx028492@leo.tools.intra> Date: Fri, 12 Nov 2004 20:07:59 +0100 (CET) From: Juergen Keil Subject: Re: [Qemu-devel] enabling bus-master IDE driver MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: V6wNK7mFL8z58q6OS5BGLw== Reply-To: Juergen Keil , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org > > + put_le16(p + 63, 0x07 /*| 0x4 << 8*/); /* Multiword DMA supported/selected */ ... > > + put_le16(p + 88, 0x3f | 0x20 << 8); /* UltraDMA modes supported/selected */ > This is interesting.. > > I carefully applied these changes to my ide.c and retried: > > Host: Linux 2.6 (Fedora Core 2) > Guest: XP corp. > It now says "Current Transfer Mode: Multi-Word DMA Mode 2". > I'm not real sure how I test to see if disk access is faster, > or by how much, but this appears to be progress for XP. Windows 2000 isn't that verbose - it simply prints "DMA mode". Interesting that XP has enabled "Multi-Word DMA Mode 2". Setting word 63 to a value of 0x07 should announce the support for multiword dma modes 0..2. And no multiword dma mode is selected. The commented out "0x4 << 8" part would enable multiword dma mode 2. I've commented it out becuase qemu's hdd is supposed to support ultra dma modes. I did change the value for word 88 - the ultra dma modes. CVS HEAD sets it to ultra dma modes 0..4 supported, and ultra dma mode 5 selected. I'm not sure, but it sounds wrong to select a dma mode that is not supported by the drive. CVS HEAD: put_le16(p + 88, 0x1f | (1 << 13)); I've changed it to ultra dma modes 0..5 supported, and ultra dma mode 5 selected: put_le16(p + 88, 0x3f | 0x20 << 8); Maybe windows checks the ata/atapi version field in word 80? qemu's hdd only supports ata/atapi-1 and ata/atapi-2. Ultra dma might not exist in the ata/atapi-2 standard.