public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Clark <Stephen.Clark@seclark.us>
To: Tejun Heo <htejun@gmail.com>
Cc: "Arjan van de Ven" <arjan@infradead.org>,
	"\"\\\"J.A.\\\" Magallón\"" <jamagallon@ono.com>,
	"Björn Steinbrink" <B.Steinbrink@gmx.de>,
	"Mark Lord" <lkml@rtr.ca>,
	linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Abysmal PATA IDE performance
Date: Thu, 09 Nov 2006 18:52:24 -0500	[thread overview]
Message-ID: <4553BF38.60700@seclark.us> (raw)
In-Reply-To: <4553B31E.3070407@gmail.com>

Tejun Heo wrote:

>Stephen Clark wrote:
>[--snip--]
>  
>
>>ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xFFA0 irq 14
>>scsi0 : ata_piix
>>Synaptics Touchpad, model: 1, fw: 6.1, id: 0xa3a0b3, caps: 0xa04713/0x10008
>>input: SynPS/2 Synaptics TouchPad as /class/input/input1
>>ATA: abnormal status 0x7F on port 0x1F7
>>ata2: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xFFA8 irq 15
>>scsi1 : ata_piix
>>ata2.00: ATA-6, max UDMA/100, 117210240 sectors: LBA48
>>ata2.00: ata2: dev 0 multi count 16
>>usb 2-2: new low speed USB device using uhci_hcd and address 3
>>ata2.01: ATAPI, max UDMA/33
>>ata2.00: configured for UDMA/33 <==== why isn't this 66 or 100 ?
>>    
>>
>
>See below.
>
>  
>
>>===============****
>>usb 2-2: configuration #1 chosen from 1 choice
>>input: Logitech USB-PS/2 Trackball as /class/input/input2
>>input: USB HID v1.00 Mouse [Logitech USB-PS/2 Trackball] on
>>usb-0000:00:1d.1-2
>>ata2.01: configured for UDMA/33 <=========== is this related to the
>>following 2 lines? ====
>>    
>>
>
>Nope,
>
>  
>
>>  Vendor: ATA       Model: HTS721060G9AT00   Rev: MC3O
>>  Type:   Direct-Access                      ANSI SCSI revision: 05
>>SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB)
>>sda: Write Protect is off
>>sda: Mode Sense: 00 3a 00 00
>>SCSI device sda: drive cache: write back
>>SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB)
>>sda: Write Protect is off
>>sda: Mode Sense: 00 3a 00 00
>>SCSI device sda: drive cache: write back
>> sda: sda1 sda2
>>sd 1:0:0:0: Attached scsi disk sda
>>    
>>
>
>The above is for ata2.00.
>
>  
>
>>  Vendor: HL-DT-ST  Model: DVDRAM GMA-4082N  Rev: HJ02
>>  Type:   CD-ROM                             ANSI SCSI revision: 05
>>    
>>
>
>And, this for ata2.01.
>
>PATA devices occupying the same channel literally share the cable, and 
>the driver needs to configure PIO mode of both devices to the slowest of 
>the two (PIO mode is always configured regardless of actual transfer 
>mode).  UDMA mode doesn't save such restriction, so devices can be 
>configured to its own maximum transfer mode.
>
>libata, until recently, simply used the slowest max transfer mode for 
>both PIO and UDMA modes (MWDMA too).  So, that's what's happening to 
>you.  Your cdrom's max UDMA mode is UDMA/33, so libata is using it for 
>both devices on the channel.  Recent kernels (2.6.19-rcX) don't have 
>this restriction.  Give 2.6.19-rc5 a shot.
>
>  
>
Hi Tejun,

Thanks for the info, I had started looking at the libata code but hadn't 
progressed very far.

Steve

-- 

"They that give up essential liberty to obtain temporary safety, 
deserve neither liberty nor safety."  (Ben Franklin)

"The course of history shows that as a government grows, liberty 
decreases."  (Thomas Jefferson)




  reply	other threads:[~2006-11-09 23:52 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-08 16:33 Abysmal PATA IDE performance Stephen Clark
2006-11-08 23:50 ` Mark Lord
2006-11-09  0:35   ` Stephen Clark
2006-11-09  2:07     ` Björn Steinbrink
2006-11-09  3:53       ` Stephen Clark
2006-11-09  8:40         ` J.A. Magallón
2006-11-09  8:58           ` Arjan van de Ven
2006-11-09 14:39             ` Stephen Clark
2006-11-09 14:54               ` Arjan van de Ven
2006-11-09 17:24                 ` Stephen Clark
2006-11-09 17:33                 ` Stephen Clark
2006-11-09 18:23                   ` Arjan van de Ven
2006-11-09 19:01                     ` Stephen Clark
2006-11-09 19:31                       ` Stephen Clark
2006-11-09 20:23                   ` Luca Tettamanti
2006-11-09 20:31                     ` Stephen Clark
2006-11-09 21:52                       ` Luca Tettamanti
2006-11-09 22:16                         ` Stephen Clark
2006-11-09 22:43                           ` Luca Tettamanti
2006-11-09 23:00                   ` Tejun Heo
2006-11-09 23:52                     ` Stephen Clark [this message]
2006-11-10  3:50                       ` Stephen Clark
2006-11-09 15:17               ` Alessandro Suardi
2006-11-09  7:52       ` Alan Cox

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=4553BF38.60700@seclark.us \
    --to=stephen.clark@seclark.us \
    --cc=B.Steinbrink@gmx.de \
    --cc=arjan@infradead.org \
    --cc=htejun@gmail.com \
    --cc=jamagallon@ono.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkml@rtr.ca \
    /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