pata_it821x in 2.6.27 - works but no LBA48 and "hdparm -t" is slower



Hello,
big thanks to Alan Cox for the work on pata_it821x driver. I just upgraded to 2.6.27
and my RAID1 on IT8212 controller now works without any patching.

Good that I haven't resized my 30GB partition to full drive capacity yet because LBA48
does not work:

ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
pata_it821x 0000:00:12.0: PCI INT A -> Link[LNKC] -> GSI 11 (level, low) -> IRQ 11
pata_it821x: controller in smart mode.
pata_it821x 0000:00:12.0: setting latency timer to 64
pata_it821x: Firmware 02/09/3030
0: MWDMA2 RAID1RAID 0+1 Volume: 0 SAMSUNG HD400LD
1: MWDMA2 RAID1RAID 0+1 Volume: 0 SAMSUNG HD400LD
scsi2 : pata_it821x
scsi3 : pata_it821x
ata3: PATA max UDMA/133 cmd 0x6800 ctl 0x6c00 bmdma 0x7800 irq 11
ata4: PATA max UDMA/133 cmd 0x7000 ctl 0x7400 bmdma 0x7808 irq 11
ata3.00: ATA-4: Integrated Technology Express Inc, , max MWDMA2
ata3.00: 268435455 sectors, multi 0: LBA
^^ no 48 here

ata3.00: RAID1 volume.
ata3.00: configured for DMA
scsi 2:0:0:0: Direct-Access ATA Integrated Techn n/a PQ: 0 ANSI: 5
sd 2:0:0:0: [sdb] 268435455 512-byte hardware sectors (137439 MB)
^^^^^^ should be 400088

sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sd 2:0:0:0: [sdb] 268435455 512-byte hardware sectors (137439 MB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
sdb: sdb1 sdb2 sdb3 sdb4
sd 2:0:0:0: [sdb] Attached SCSI disk
sd 2:0:0:0: Attached scsi generic sg2 type 0


Also "hdparm -t" is slower (but "hdparm -t --direct" isn't - so it probably isn't pata_it821x issue):
2.6.26 (with my crappy patch):
/dev/sdb:
Timing buffered disk reads: 60 MB in 3.01 seconds = 19.91 MB/sec

/dev/sdb:
Timing O_DIRECT disk reads: 194 MB in 3.00 seconds = 64.62 MB/sec

/dev/sdb:

Model=Integrated Technology Express Inc , FwRev=, SerialNo=▒PX
Config={ }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=no
IORDY=no
PIO modes: pio0
AdvancedPM=no

* signifies the current active mode

2.6.27:
/dev/sdb:
Timing buffered disk reads: 48 MB in 3.08 seconds = 15.57 MB/sec

/dev/sdb:
Timing O_DIRECT disk reads: 196 MB in 3.02 seconds = 64.81 MB/sec

/dev/sdb:

Model=Integrated Technology Express Inc , FwRev=, SerialNo=▒'T
Config={ }
RawCHS=0/0/0, TrkSize=0, SectSize=0, ECCbytes=0
BuffType=unknown, BuffSize=0kB, MaxMultSect=0
(maybe): CurCHS=0/0/0, CurSects=0, LBA=yes, LBAsects=781422766
IORDY=no
PIO modes: pio0
DMA modes: mdma0 mdma1 mdma2
AdvancedPM=no
Drive conforms to: Unspecified: ATA/ATAPI-0,1,2,3,4

* signifies the current active mode

--
Ondrej Zary
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: a little wsgi framework
    ... On Jul 7, 5:19 am, Bruno Desthuilliers <bruno. ... assembled from webob, sqlalchemy, genshi, and various code fragments i ... => controller or function or callback or.... ... the 'global config' line was an error - config is a module level ...
    (comp.lang.python)
  • Re: Motherboard for Dual Core E6850
    ... it's a necessary precaution to have RAID1. ... Gradual lurking failures, there is every chance your controller will copy the bad version over the top of the good one, rather than the other way round. ... PC-home-user grade RAID like the plague - a PITA to set up, ... With RAID1 you may survive. ...
    (uk.comp.homebuilt)
  • Re: stuck with 2.6.23.14 on x86_64
    ... the lastest that I can compile is 2.6.23.14; ... All .config are the same, ... SCSI controller: ... Right now, on AMD64 machines, I'm forced to patch by hand the kernel, ...
    (Linux-Kernel)
  • Re: PCMCIA on an Acer TravelMate 280 (RH9)
    ... 02:05.0 Ethernet controller: Realtek Semiconductor Co., ... 02:09.0 CardBus bridge: O2 Micro, ... Here's the USB section from my .config file just in case ...
    (comp.os.linux.portable)
  • Re: [opensuse] wait times excessive high {Suse 10.3 & 11}
    ... A cheap sata raid5 on a 3ware controller is already ... on my system (RAID1 on 2 SATA drives). ... The operator bus, the memory bus and the peripheral ditto are also way ...
    (SuSE)