From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CQhYU-0005hS-0r for qemu-devel@nongnu.org; Sun, 07 Nov 2004 02:33:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CQhYT-0005hC-Fu for qemu-devel@nongnu.org; Sun, 07 Nov 2004 02:33:41 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CQhYT-0005h2-D0 for qemu-devel@nongnu.org; Sun, 07 Nov 2004 02:33:41 -0500 Received: from [66.124.73.250] (helo=marvin.brittainweb.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CQhPu-0001rd-S6 for qemu-devel@nongnu.org; Sun, 07 Nov 2004 02:24:51 -0500 Received: from [10.1.2.102] ([10.1.1.2]) by marvin.brittainweb.org (8.12.8/8.12.8) with ESMTP id iA77MF1W010952 for ; Sat, 6 Nov 2004 23:22:15 -0800 Message-ID: <418DCAE6.9080803@brittainweb.org> Date: Sat, 06 Nov 2004 23:12:38 -0800 From: Jason Brittain MIME-Version: 1.0 Subject: Re: [Qemu-devel] enabling bus-master IDE driver References: <1099661520.418b80d07e377@imp5-q.free.fr> <1099666965.418b9615bb36d@imp5-q.free.fr> <418C2E7D.2040609@brittainweb.org> <418D48E2.60805@optusnet.com.au> <418D4C17.7070006@optusnet.com.au> <1099784807.418d62678be4a@imp5-q.free.fr> In-Reply-To: <1099784807.418d62678be4a@imp5-q.free.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: 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 zitu wrote: > Quoting James Boddington : > >>James Boddington wrote: >> >>>I found 2000 is using pio as well. >> >>I'll change that. It is with 2000 + sp4. I am getting pio on the primary >>ide and dma on the secondary ide channel. > > on xp, it's PIO for both. DMA if available only on primary (hdd). > > For linux guest, as root, hdparm -d0/-d1 doesn't work. > > But with the DMA patch, you should see DMA is on with the following: > 'hdparm /dev/hda' > It's also visible in /proc/ide/hda/settings :) Looks like mine (with the patch) shows DMA is off: /dev/hda: multcount = 16 (on) IO_support = 0 (default 16-bit) unmaskirq = 0 (off) using_dma = 0 (off) keepsettings = 0 (off) readonly = 0 (off) readahead = 256 (on) geometry = 33288/16/63, sectors = 33554432, start = 0 And, I can set the IO_support to 1 with hdparm -c1 /dev/hda, but, as you say, I can't set using_dma to 1 with hdparm -d1 /dev/hda. So, looks like it's off, and I can't turn it on. Should the IO_support = 1 help any with disk performance? It doesn't appear to. -- Jason Brittain