From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Ben Greear <greearb@candelatech.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: How to disable DMA for compact-flash disk?
Date: Fri, 14 Aug 2009 22:10:38 +0100 [thread overview]
Message-ID: <20090814221038.19e868a0@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <4A85CDCF.3060802@candelatech.com>
> This worked fine, but now I'm having some more issues. Using libata is 1/2
> as fast as using IDE mode. I *think* the problem might be that libsata
> may not be using 32-bit PIO mode, but I'm not certain of that. It seems
> that ide mode uses PIO2 v/s PIO4 for libsata too.
As of 2.6.29 libata doesn't use 32bit PIO (it shouldn't make a difference
for most chipsets but it does for some). 2.6.30 does for some and you can
turn it on for others if you want to test by inheriting
ata_bmdma32_port_ops instead of ata_bmdma_port_ops
> hdb: Ridata CF, CFA DISK drive
> hdb: host max PIO5 wanted PIO255(auto-tune) selected PIO2
> hdb: host max PIO5 wanted PIO255(auto-tune) selected PIO2
Very odd it picked PIO2, but the numbers you quote for hdparm doesn't
sound like PIO2 so its hard to guess.
> ata1.01: configured for PIO4
So libata picked a faster rate (PIO4 is the fastest the controller is
properly specced for according to my docs - it probably can do PIO5 (CF
specific))
> /dev/sda1:
> Timing cached reads: 280 MB in 2.00 seconds = 139.98 MB/sec
> Timing buffered disk reads: 10 MB in 3.69 seconds = 2.71 MB/sec
Would be very interested to know if bmdma32_port_ops gives you the speed.
next prev parent reply other threads:[~2009-08-14 21:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 18:51 Ben Greear
2009-08-11 19:12 ` Alan Cox
2009-08-14 20:49 ` Ben Greear
2009-08-14 21:10 ` Alan Cox [this message]
2009-08-14 21:18 ` Ben Greear
2009-08-14 21:32 ` Alan Cox
2009-08-14 21:37 ` Ben Greear
2009-08-14 21:51 ` Ben Greear
2009-08-11 20:24 ` Krzysztof Halasa
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=20090814221038.19e868a0@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=greearb@candelatech.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®