On Thu, Mar 17, 2011 at 11:36:10AM +0100, Arnd Bergmann wrote:
Could you also do 'hdparm -i /dev/sdc'? I've added another column in the table for the highest supported PIO/DMA modes.
Here you are (card is now called sdb) : tmp179:~ # hdparm -i /dev/sdb
/dev/sdb:
Model=ELITE PRO CF CARD 4GB, FwRev=Ver2.21K, SerialNo=5B921800 Config={ HardSect NotMFM Fixed DTR>10Mbs } RawCHS=7818/16/63, TrkSize=32256, SectSize=512, ECCbytes=4 BuffType=DualPort, BuffSize=1kB, MaxMultSect=1, MultSect=off CurCHS=7818/16/63, CurSects=7880544, LBA=yes, LBAsects=7880544 IORDY=no, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120} PIO modes: pio0 pio1 pio2 pio3 pio4 DMA modes: mdma0 mdma1 mdma2 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5 AdvancedPM=no
* signifies the current active mode
tmp179:~ #
Are you using UDMA mode?
How can I find out ? I put the card in the slot and let linux decide.
tmp179:~ # time dd if=/dev/sdb bs=2M of=/dev/null 1923+1 records in 1923+1 records out 4034838528 bytes (4.0 GB) copied, 89.579 s, 45.0 MB/s
real 1m29.612s user 0m0.002s sys 0m5.923s tmp179:~ # time dd if=/dev/zero bs=2M of=/dev/sdb dd: writing `/dev/sdb': No space left on device 1924+0 records in 1923+0 records out 4034838528 bytes (4.0 GB) copied, 185.682 s, 21.7 MB/s
real 3m6.010s user 0m0.001s sys 0m3.036s tmp179:~ # dmesg [...] [692014.258018] ata3: hard resetting link [692014.867054] ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300) [692014.873211] ata3.00: ATA-0: ELITE PRO CF CARD 4GB, Ver2.21K, max UDMA/100 [692014.873219] ata3.00: 7880544 sectors, multi 0: LBA [692014.873224] ata3.00: applying bridge limits [692014.876197] ata3.00: configured for UDMA/100 [692014.876216] ata3: EH complete [692014.876224] ata3.00: detaching (SCSI 2:0:0:0) [692014.879109] sd 2:0:0:0: [sdb] Stopping disk [692014.879426] scsi 2:0:0:0: Direct-Access ATA ELITE PRO CF CAR Ver2 PQ: 0 ANSI: 5 [692014.879571] sd 2:0:0:0: Attached scsi generic sg1 type 0 [692014.879634] sd 2:0:0:0: [sdb] 7880544 512-byte logical blocks: (4.03 GB/3.75 GiB) [692014.879694] sd 2:0:0:0: [sdb] Write Protect is off [692014.879702] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00 [692014.879725] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [692014.881541] sdb: unknown partition table [692014.881704] sd 2:0:0:0: [sdb] Attached SCSI disk tmp179:~ #
Philippe