Bug 8563

Summary: pata_via: Does not work with 2nd drive attached
Product: IO/Storage Reporter: Dan A. Dickey (dan.dickey)
Component: Serial ATAAssignee: Tejun Heo (htejun)
Status: RESOLVED CODE_FIX    
Severity: high CC: alan, htejun, jmdebruin, Oliver.Schwartz-spam, tech960
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.21.3 Subsystem:
Regression: --- Bisected commit-id:
Attachments: lower-speed-if-dev-fail-setxfer.patch
ignore-setxfermode-error
pata_via-broken-sata_pata.patch
via-setxfer-mess.patch
dmesgs pathed kernel cd-zip and zip-cd
via-setxfer-mess-1.patch
several dmesgs
full dmesg from 2.6.21.1 using via82cxx driver
IDENTIFY-in-order.patch
IDENTIFY-in-order-1.patch
trimmed dmesg output using IDENTIFY-in-order-1.patch
setxfer-be-lenient.patch
trimmed dmesg output from the setxfer-be-lenient patch
improve-setxfer-failure-handling.patch
improve-setxfer-failure-handling-1.patch

Description Dan A. Dickey 2007-06-01 10:54:59 UTC
Most recent kernel where this bug did *NOT* occur:  unknown
Distribution:  Gentoo
Hardware Environment:  VIA EX15000
Software Environment:  Gentoo
Problem Description:  The pata_via driver does not properly initialize a
second SATA drive attached to the motherboard.  This occurs with version
0.2.1 in linux 2.6.21.3 and also 0.3.1 (pata_via.c) in linux 2.6.22-rc3.

Steps to reproduce:  Attach a second drive and boot one of the above
kernels with pata_via configured in.
I'd also like to note that I patched pata_via.c (0.2.1) with the recommend
patch in bug 8142 of commenting the via_cable_detect() to simply return
ATA_CBL_PATA80.

The trimmed kernel messages are:
May 29 14:52:17 epia Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
May 29 14:52:17 epia ide: Assuming 33MHz system bus speed for PIO modes; 
override with idebus=xx
May 29 14:52:17 epia pata_via 0000:00:0f.0: version 0.2.1
May 29 14:52:17 epia ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 
bmdma 0x0001fc00 irq 14
May 29 14:52:17 epia ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 
bmdma 0x0001fc08 irq 15
May 29 14:52:17 epia scsi0 : pata_via
May 29 14:52:17 epia via: Dan: ata66 = 0xf617, port = 0, match=0
May 29 14:52:17 epia ata1.00: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
May 29 14:52:17 epia ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 
0/32)
May 29 14:52:17 epia ata1.01: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
May 29 14:52:17 epia ata1.01: 488397168 sectors, multi 16: LBA48 NCQ (depth 
0/32)
May 29 14:52:17 epia ata1.00: configured for UDMA/133
May 29 14:52:17 epia ata1.01: failed to set xfermode (err_mask=0x1)
May 29 14:52:17 epia ata1: failed to recover some devices, retrying in 5 secs
May 29 14:52:17 epia via: Dan: ata66 = 0xf617, port = 0, match=0
May 29 14:52:17 epia ata1.00: configured for UDMA/133
May 29 14:52:17 epia ata1.01: failed to set xfermode (err_mask=0x1)
May 29 14:52:17 epia ata1.01: limiting speed to UDMA/133:PIO3
May 29 14:52:17 epia ata1: failed to recover some devices, retrying in 5 secs
May 29 14:52:17 epia via: Dan: ata66 = 0xf617, port = 0, match=0
May 29 14:52:17 epia ata1.00: configured for UDMA/133
May 29 14:52:17 epia ata1.01: failed to set xfermode (err_mask=0x1)
May 29 14:52:17 epia ata1.01: disabled
May 29 14:52:17 epia ata1: failed to recover some devices, retrying in 5 secs
May 29 14:52:17 epia ata1.00: configured for UDMA/133
May 29 14:52:17 epia scsi1 : pata_via
May 29 14:52:17 epia via: Dan: ata66 = 0xf617, port = 1, match=4112
May 29 14:52:17 epia ata2.00: ATAPI, max UDMA/33
May 29 14:52:17 epia ata2.00: configured for UDMA/33
May 29 14:52:17 epia scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  
VT10 PQ: 0 ANSI: 5
May 29 14:52:17 epia SCSI device sda: 488397168 512-byte hdwr sectors (250059 
MB)
May 29 14:52:17 epia sda: Write Protect is off
May 29 14:52:17 epia sda: Mode Sense: 00 3a 00 00
May 29 14:52:17 epia SCSI device sda: write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
May 29 14:52:17 epia SCSI device sda: 488397168 512-byte hdwr sectors (250059 
MB)
May 29 14:52:17 epia sda: Write Protect is off
May 29 14:52:17 epia sda: Mode Sense: 00 3a 00 00
May 29 14:52:17 epia SCSI device sda: write cache: enabled, read cache: 
enabled, doesn't support DPO or FUA
May 29 14:52:17 epia sda: sda1 sda2 sda3 sda4
May 29 14:52:17 epia sd 0:0:0:0: Attached scsi disk sda
May 29 14:52:17 epia scsi 1:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-740A   
1.01 PQ: 0 ANSI: 5
Comment 1 Tejun Heo 2007-06-04 00:20:17 UTC
Created attachment 11660 [details]
lower-speed-if-dev-fail-setxfer.patch

Please apply the attached patch and report the resulting dmesg.
Comment 2 Dan A. Dickey 2007-06-05 09:06:28 UTC
relevant dmesg with patch applied:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
pata_via 0000:00:0f.0: version 0.3.1
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
ata1.01: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/100:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/66:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/44:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/33:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/25:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/16:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to MWDMA2:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to MWDMA1:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to MWDMA0:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO3
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO2
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO1
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO0
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1: failed to recover some devices, retrying in 5 secs
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1: failed to recover some devices, retrying in 5 secs
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: disabled
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
DPO or FUA
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
scsi 1:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-740A   1.01 PQ: 0 ANSI: 5
ACPI: PCI Interrupt 0000:00:10.4[D] -> GSI 23 (level, low) -> IRQ 17
ehci_hcd 0000:00:10.4: EHCI Host Controller

I'm not sure what ata1.00 and ata1.01 relates to, but it seems
that the lowering speed messages are maybe working with both drives?
Or that the patch is trying to drop the speed on one of the drives,
but perhaps dropping it on the wrong one?
I'll be glad to help out and try more patches.
Comment 3 Tejun Heo 2007-06-06 02:10:27 UTC
Hmmm... ata1.01 is the slave device on the controller ata1 - ie. the second
harddrive.  The drive fails SETXFERMODE and libata is lowering speed on the
correct drive.  ata1.00 message appears repeatedly because transfer mode
configuration is port-wide, so ata1.00 also is reconfigured each time ata1.01 is
retried but transfer mode of ata1.00 remains the same.

Is the master/slave jumper configured correctly?  What happens if you swap the
master and slave devices?  Can you put the failing (slave) device to separate
channel?
Comment 4 Dan A. Dickey 2007-06-06 08:02:17 UTC
Well, the problem with setting them up as master/slave is that they are
SATA drives.  There is no master/slave setting on them.

For reference, I've been using the via82cxxx driver on them for some
time and it works well - handling both SATA drives off of this chip,
along with my IDE DVD drive.

I'm not sure how the chip handles the two SATA drives, but one thing
that I've noticed is that the via_cable_detect() routine doesn't work.
In particular the test (from pata_via.c):
if (ata66 & (0x10100000 >> (16 * ap->port_no)))
doesn't make much sense when the value of ata66 is 0xF617 for my
setup.  But, that's a different bug.

Any suggestions?  I've tried looking at how via82cxxx sets up the drives,
but I'm very unfamiliar with the ide/ata/sata code base and haven't made
any headway yet.
Comment 5 Tejun Heo 2007-06-07 09:22:07 UTC
So, there are P/SATA bridge chips at play here.  Can you swap ata1.00 and
ata1.01 and see what happens?  I'm curious whether it's problem between the
bridge chip and the specific harddrive.  If your root fs is on ata1.00, it can
be problematic.  You can setup serial or netconsole
(Documentation/networking/netconsole.txt).  Root fs mount failure doesn't
matter.  I just need driver detection messages during boot.  If you can't do
that, just watch what happens and report.

Thanks.
Comment 6 Dan A. Dickey 2007-06-07 09:30:27 UTC
If "swap ata1.00 and ata1.01" means to swap the cables between the
two drives - Yes, I can do that.  Later though when I'm at home.
I'll gladly report the boot messages.  I don't expect a problem
with root doing this, I'm running the boot and root partitions as
raid1 on these drives.  The drives are identical as well.
I cannot change how the SATA motherboard connectors connect to
the actual chips though.
Do you just want me to swap the cables on the two drives?
(And why would you expect this to do anything different?)
Comment 7 Tejun Heo 2007-06-07 09:33:05 UTC
Yeap, that's what I've meant.
Comment 8 Dan A. Dickey 2007-06-11 06:35:47 UTC
Finally got the time to swap those cables.  There was basically no change
in the operation of the driver.  Here are the messages:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
pata_via 0000:00:0f.0: version 0.3.1
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.01: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/100:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/66:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/44:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/33:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/25:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to UDMA/16:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to MWDMA2:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to MWDMA1:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to MWDMA0:PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO4
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO3
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO2
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO1
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: limiting speed to PIO0
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1: failed to recover some devices, retrying in 5 secs
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1: failed to recover some devices, retrying in 5 secs
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: device rejected transfer mode, lowering speed
ata1.01: disabled
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
DPO or FUA
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support 
DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
scsi 1:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-740A   1.01 PQ: 0 ANSI: 5
ACPI: PCI Interrupt 0000:00:10.4[D] -> GSI 23 (level, low) -> IRQ 17

Let me know if you need more or what else I can do.
Comment 9 Tejun Heo 2007-06-11 22:04:56 UTC
Created attachment 11735 [details]
ignore-setxfermode-error

Can you please test this one?
Comment 10 Dan A. Dickey 2007-06-12 05:21:00 UTC
Ok, that worked.  Not the right general fix I don't think, but a good
test none the less.  They are:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
pata_via 0000:00:0f.0: version 0.3.1
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.01: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: configured for UDMA/133
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
scsi 0:0:1:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:1:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:1:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 sdb3 sdb4
sd 0:0:1:0: [sdb] Attached SCSI disk
scsi 1:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-740A   1.01 PQ: 0 ANSI: 5
ACPI: PCI Interrupt 0000:00:10.4[D] -> GSI 23 (level, low) -> IRQ 17
ehci_hcd 0000:00:10.4: EHCI Host Controller
Comment 11 Tejun Heo 2007-06-14 01:10:01 UTC
Seems to be some bug in the bridge chip.  Oh.. crap.  Please post the result of 'hdparm -I /dev/sda', 'hdparm -I /dev/sdb' and 'lspci -nn'.
Comment 12 Dan A. Dickey 2007-06-14 06:04:20 UTC
Here you go.  Thanks for the help with this btw.

# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
        Model Number:       SAMSUNG SP2504C
        Serial Number:      S09QJ10L505198
        Firmware Revision:  VT100-41
Standards:
        Used: ATA/ATAPI-7 T13 1532D revision 4a
        Supported: 7 6 5 4
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors:  488397168
        device size with M = 1024*1024:      238475 MBytes
        device size with M = 1000*1000:      250059 MBytes (250 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 254, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 udma7
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    Segmented DOWNLOAD_MICROCODE
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    SMART Command Transport (SCT) feature set
           *    SCT Long Sector Access (AC1)
           *    SCT LBA Segment Access (AC2)
           *    SCT Error Recovery Control (AC3)
           *    SCT Features Control (AC4)
           *    SCT Data Tables (AC5)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        88min for SECURITY ERASE UNIT. 88min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct
# hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
        Model Number:       SAMSUNG SP2504C
        Serial Number:      S09QJ1UA103536
        Firmware Revision:  VT100-33
Standards:
        Used: ATA/ATAPI-7 T13 1532D revision 4a
        Supported: 7 6 5 4
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:   16514064
        LBA    user addressable sectors:  268435455
        LBA48  user addressable sectors:  488397168
        device size with M = 1024*1024:      238475 MBytes
        device size with M = 1000*1000:      250059 MBytes (250 GB)
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        Recommended acoustic management value: 254, current value: 0
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 udma7
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
                Automatic Acoustic Management feature set
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    SATA-I signaling speed (1.5Gb/s)
           *    SATA-II signaling speed (3.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Host-initiated interface power management
           *    Phy event counters
                DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        120min for SECURITY ERASE UNIT. 120min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct
# lspci -nn
00:00.0 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:0324] (rev 03)
00:00.1 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:1324]
00:00.2 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:2324]
00:00.3 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:3324]
00:00.4 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:4324]
00:00.7 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:7324]
00:01.0 PCI bridge [0604]: VIA Technologies, Inc. VT8237 PCI Bridge [1106:b198]
00:0f.0 IDE interface [0101]: VIA Technologies, Inc. CX700M2 IDE [1106:5324]
00:10.0 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 90)
00:10.1 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 90)
00:10.2 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 90)
00:10.4 USB Controller [0c03]: VIA Technologies, Inc. USB 2.0 [1106:3104] (rev 90)
00:11.0 ISA bridge [0601]: VIA Technologies, Inc. CX700 PCI to ISA Bridge [1106:8324]
00:11.7 Host bridge [0600]: VIA Technologies, Inc. CX700 Internal Module Bus [1106:324e]
00:13.0 PCI bridge [0604]: VIA Technologies, Inc. CX700 Host Bridge [1106:324b]
00:13.1 PCI bridge [0604]: VIA Technologies, Inc. CX700 PCI to PCI Bridge [1106:324a]
01:00.0 VGA compatible controller [0300]: VIA Technologies, Inc. CX700M2 UniChrome PRO II Graphics [1106:3157] (rev 03)
02:01.0 Audio device [0403]: VIA Technologies, Inc. VIA High Definition Audio Controller [1106:3288] (rev 10)
03:08.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6102 [Rhine-II] [1106:3065] (rev 8d)
03:09.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. IEEE 1394 Host Controller [1106:3044] (rev 80)
03:0f.0 PCI bridge [0604]: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) [3388:0021] (rev 11)
04:08.0 Multimedia video controller [0400]: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder [4444:0016] (rev 01)
04:09.0 Multimedia video controller [0400]: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder [4444:0016] (rev 01)
          
Comment 13 Tejun Heo 2007-06-17 01:11:10 UTC
Can you post the result of 'dmidecode' and 'lspci -nnv'?  We need more info to single out your board and blacklist it.
Comment 14 Dan A. Dickey 2007-06-18 06:49:02 UTC
Blacklist it?  That sounds bad.
In case you missed it in my earlier comments, I've been using the
via82cxxx driver with this chip and these two drives with no problem
at all.  The only problem with using via82cxxx is that it does not
seem to actually change the drive speed when I use hdparm -X - this
succeeds ok, but the drives always come out at about 72 MB/s using
hdparm -T.  I.E. - No speed change actually takes place.
Turning dma on or off does have an effect.

A smaller problem is that I think the via82cxxx driver is
"older" than pata_via, and may get left in the development dust.
Which is why I'm trying to use the pata_via driver.

By the way, this is a standard motherboard from VIA known
as the EPIA EX15000G.  You can read more about it on VIA's web site at:
http://www.via.com.tw/en/products/mainboards/motherboards.jsp?motherboard_id=450

However, having said all that, here is the requested output from
dmidecode and lspci -nnv:
# dmidecode
# dmidecode 2.9
SMBIOS 2.3 present.
30 structures occupying 842 bytes.
Table at 0x000F0000.

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
        Vendor: Phoenix Technologies, LTD
        Version: 6.00 PG
        Release Date: 10/16/2006
        Address: 0xE0000
        Runtime Size: 128 kB
        ROM Size: 512 kB
        Characteristics:
                ISA is supported
                PCI is supported
                PNP is supported
                APM is supported
                BIOS is upgradeable
                BIOS shadowing is allowed
                Boot from CD is supported
                Selectable boot is supported
                BIOS ROM is socketed
                EDD is supported
                5.25"/360 KB floppy services are supported (int 13h)
                5.25"/1.2 MB floppy services are supported (int 13h)
                3.5"/720 KB floppy services are supported (int 13h)
                3.5"/2.88 MB floppy services are supported (int 13h)
                Print screen service is supported (int 5h)
                8042 keyboard services are supported (int 9h)
                Serial services are supported (int 14h)
                Printer services are supported (int 17h)
                CGA/mono video services are supported (int 10h)
                ACPI is supported
                USB legacy is supported
                AGP is supported
                LS-120 boot is supported
                ATAPI Zip drive boot is supported
                BIOS boot specification is supported

Handle 0x0001, DMI type 1, 25 bytes
System Information
        Manufacturer: VIA Technologies, Inc.
        Product Name: CX700
        Version:
        Serial Number:
        UUID: Not Present
        Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
        Manufacturer:
        Product Name: CX700
        Version:
        Serial Number:

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
        Manufacturer:
        Type: Desktop
        Lock: Not Present
        Version:
        Serial Number:
        Asset Tag:
        Boot-up State: Unknown
        Power Supply State: Unknown
        Thermal State: Unknown
        Security Status: Unknown
        OEM Information: 0x00000000

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
        Socket Designation: NanoBGA2
        Type: Central Processor
        Family: Other
        Manufacturer: VIA
        ID: A9 06 00 00 FF BA C9 87
        Version: VIA C7
        Voltage: 3.3 V
        External Clock: 100 MHz
        Max Speed: 2000 MHz
        Current Speed: 1500 MHz
        Status: Populated, Enabled
        Upgrade: None
        L1 Cache Handle: 0x0008
        L2 Cache Handle: 0x0009
        L3 Cache Handle: Not Provided
        Serial Number:
        Asset Tag:
        Part Number:

Handle 0x0005, DMI type 5, 20 bytes
Memory Controller Information
        Error Detecting Method: None
        Error Correcting Capabilities:
                None
        Supported Interleave: Eight-way Interleave
        Current Interleave: Four-way Interleave
        Maximum Memory Module Size: 1024 MB
        Maximum Total Memory Size: 2048 MB
        Supported Speeds:
                70 ns
                60 ns
        Supported Memory Types:
                DIMM
                SDRAM
        Memory Module Voltage: 2.9 V
        Associated Memory Slots: 2
                0x0006
                0x0007
        Enabled Error Correcting Capabilities: None

Handle 0x0006, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A0
        Bank Connections: None
        Current Speed: 37 ns
        Type: Other Unknown EDO
        Installed Size: Not Installed
        Enabled Size: Not Installed
        Error Status: OK

Handle 0x0007, DMI type 6, 12 bytes
Memory Module Information
        Socket Designation: A1
        Bank Connections: None
        Current Speed: 37 ns
        Type: Other Unknown EDO
        Installed Size: Not Installed
        Enabled Size: Not Installed
        Error Status: OK

Handle 0x0008, DMI type 7, 19 bytes
Cache Information
        Socket Designation: I..ernal Cache
        Configuration: Enabled, Not Socketed, Level 1
        Operational Mode: Write Back
        Location: Internal
        Installed Size: 128 KB
        Maximum Size: 128 KB
        Supported SRAM Types:
                Synchronous
        Installed SRAM Type: Synchronous
        Speed: Unknown
        Error Correction Type: Unknown
        System Type: Unknown
        Associativity: 4-way Set-associative

Handle 0x0009, DMI type 7, 19 bytes
Cache Information
        Socket Designation: Internal Cache
        Configuration: Enabled, Not Socketed, Level 2
        Operational Mode: Write Back
        Location: External
        Installed Size: 128 KB
        Maximum Size: 128 KB
        Supported SRAM Types:
                Synchronous
        Installed SRAM Type: Synchronous
        Speed: Unknown
        Error Correction Type: Unknown
        System Type: Unknown
        Associativity: Unknown

Handle 0x000A, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PRIMARY IDE
        Internal Connector Type: On Board IDE
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x000B, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: SECONDARY IDE
        Internal Connector Type: On Board IDE
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: Other

Handle 0x000C, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: FDD
        Internal Connector Type: On Board Floppy
        External Reference Designator: Not Specified
        External Connector Type: None
        Port Type: 8251 FIFO Compatible

Handle 0x000D, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: COM1
        Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
        External Reference Designator:
        External Connector Type: DB-9 male
        Port Type: Serial Port 16450 Compatible

Handle 0x000E, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: COM2
        Internal Connector Type: 9 Pin Dual Inline (pin 10 cut)
        External Reference Designator:
        External Connector Type: DB-9 male
        Port Type: Serial Port 16450 Compatible

Handle 0x000F, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: LPT1
        Internal Connector Type: DB-25 female
        External Reference Designator:
        External Connector Type: DB-25 female
        Port Type: Parallel Port ECP/EPP

Handle 0x0010, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Keyboard
        Internal Connector Type: PS/2
        External Reference Designator:
        External Connector Type: PS/2
        Port Type: Keyboard Port

Handle 0x0011, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: PS/2 Mouse
        Internal Connector Type: PS/2
        External Reference Designator:
        External Connector Type: PS/2
        Port Type: Mouse Port

Handle 0x0012, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: USB0
        External Connector Type: Other
        Port Type: USB

Handle 0x0013, DMI type 8, 9 bytes
Port Connector Information
        Internal Reference Designator: Not Specified
        Internal Connector Type: None
        External Reference Designator: AUDIO
        External Connector Type: None
        Port Type: Audio Port

Handle 0x0014, DMI type 9, 13 bytes
System Slot Information
        Designation: PCI0
        Type: 32-bit PCI
        Current Usage: Available
        Length: Long
        ID: 1
        Characteristics:
                5.0 V is provided
                PME signal is supported

Handle 0x0015, DMI type 13, 22 bytes
BIOS Language Information
        Installable Languages: 3
                n|US|iso8859-1
                r|CA|iso8859-1
                a|JP|unicode
        Currently Installed Language: n|US|iso8859-1

Handle 0x0016, DMI type 16, 15 bytes
Physical Memory Array
        Location: System Board Or Motherboard
        Use: System Memory
        Error Correction Type: None
        Maximum Capacity: 1 GB
        Error Information Handle: Not Provided
        Number Of Devices: 2

Handle 0x0017, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0016
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: 1024 MB
        Form Factor: DIMM
        Set: None
        Locator: A0
        Bank Locator: Bank0/1
        Type: Unknown
        Type Detail: None
        Speed: Unknown
        Manufacturer: None
        Serial Number: None
        Asset Tag: None
        Part Number: None

Handle 0x0018, DMI type 17, 27 bytes
Memory Device
        Array Handle: 0x0016
        Error Information Handle: Not Provided
        Total Width: Unknown
        Data Width: Unknown
        Size: No Module Installed
        Form Factor: DIMM
        Set: None
        Locator: A1
        Bank Locator: Bank2/3
        Type: Unknown
        Type Detail: None
        Speed: Unknown
        Manufacturer: None
        Serial Number: None
        Asset Tag: None
        Part Number: None

Handle 0x0019, DMI type 19, 15 bytes
Memory Array Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x0003FFFFFFF
        Range Size: 1 GB
        Physical Array Handle: 0x0016
        Partition Width: 0

Handle 0x001A, DMI type 20, 19 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x0003FFFFFFF
        Range Size: 1 GB
        Physical Device Handle: 0x0017
        Memory Array Mapped Address Handle: 0x0019
        Partition Row Position: 1

Handle 0x001B, DMI type 20, 19 bytes
Memory Device Mapped Address
        Starting Address: 0x00000000000
        Ending Address: 0x000000003FF
        Range Size: 1 kB
        Physical Device Handle: 0x0018
        Memory Array Mapped Address Handle: 0x0019
        Partition Row Position: 1

Handle 0x001C, DMI type 32, 11 bytes
System Boot Information
        Status: No errors detected

Handle 0x001D, DMI type 127, 4 bytes
End Of Table

# lspci -nnv
00:00.0 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:0324] (rev 03)
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: bus master, medium devsel, latency 8
        Memory at c8000000 (32-bit, prefetchable) [size=128M]
        Capabilities: [80] AGP version 3.5
        Capabilities: [50] Power Management version 2

00:00.1 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:1324]
        Flags: bus master, medium devsel, latency 0

00:00.2 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:2324]
        Flags: bus master, medium devsel, latency 0

00:00.3 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:3324]
        Flags: bus master, medium devsel, latency 0

00:00.4 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:4324]
        Flags: bus master, medium devsel, latency 0

00:00.7 Host bridge [0600]: VIA Technologies, Inc. CX700 Host Bridge [1106:7324]
        Flags: bus master, medium devsel, latency 0

00:01.0 PCI bridge [0604]: VIA Technologies, Inc. VT8237 PCI Bridge [1106:b198] (prog-if 00 [Normal decode])
        Flags: bus master, 66MHz, medium devsel, latency 0
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: 0000e000-0000efff
        Memory behind bridge: dd000000-deffffff
        Prefetchable memory behind bridge: a0000000-bfffffff
        Capabilities: [70] Power Management version 2

00:0f.0 IDE interface [0101]: VIA Technologies, Inc. CX700M2 IDE [1106:5324] (prog-if 8a [Master SecP PriP])
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: bus master, medium devsel, latency 32
        [virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
        [virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
        [virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
        I/O ports at fc00 [size=16]
        Capabilities: [b0] Power Management version 2

00:10.0 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 90) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: bus master, medium devsel, latency 32, IRQ 18
        I/O ports at f800 [size=32]
        Capabilities: [80] Power Management version 2

00:10.1 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 90) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: bus master, medium devsel, latency 32, IRQ 19
        I/O ports at f400 [size=32]
        Capabilities: [80] Power Management version 2

00:10.2 USB Controller [0c03]: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller [1106:3038] (rev 90) (prog-if 00 [UHCI])
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: bus master, medium devsel, latency 32, IRQ 20
        I/O ports at f000 [size=32]
        Capabilities: [80] Power Management version 2

00:10.4 USB Controller [0c03]: VIA Technologies, Inc. USB 2.0 [1106:3104] (rev 90) (prog-if 20 [EHCI])
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: bus master, medium devsel, latency 32, IRQ 17
        Memory at dffff000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [80] Power Management version 2
        Capabilities: [88] Debug port

00:11.0 ISA bridge [0601]: VIA Technologies, Inc. CX700 PCI to ISA Bridge [1106:8324]
        Subsystem: VIA Technologies, Inc. Unknown device [1106:aa09]
        Flags: medium devsel
        Capabilities: [c0] Power Management version 2

00:11.7 Host bridge [0600]: VIA Technologies, Inc. CX700 Internal Module Bus [1106:324e]
        Subsystem: VIA Technologies, Inc. CX700 Internal Module Bus [1106:324e]
        Flags: medium devsel
        Capabilities: [58] HyperTransport: Interrupt Discovery and Configuration

00:13.0 PCI bridge [0604]: VIA Technologies, Inc. CX700 Host Bridge [1106:324b] (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 0000d000-0000dfff
        Memory behind bridge: dfe00000-dfefffff
        Prefetchable memory behind bridge: 00000000dfd00000-00000000dfdfffff

00:13.1 PCI bridge [0604]: VIA Technologies, Inc. CX700 PCI to PCI Bridge [1106:324a] (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=03, subordinate=04, sec-latency=0
        I/O behind bridge: 0000b000-0000cfff
        Memory behind bridge: dfb00000-dfcfffff
        Prefetchable memory behind bridge: 00000000d4000000-00000000dbffffff

01:00.0 VGA compatible controller [0300]: VIA Technologies, Inc. CX700M2 UniChrome PRO II Graphics [1106:3157] (rev 03) (prog-if 00 [VGA])
        Subsystem: VIA Technologies, Inc. CX700M2 UniChrome PRO II Graphics [1106:3157]
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 10
        Memory at a0000000 (32-bit, prefetchable) [size=512M]
        Memory at dd000000 (32-bit, non-prefetchable) [size=16M]
        [virtual] Expansion ROM at de000000 [disabled] [size=64K]
        Capabilities: [60] Power Management version 2
        Capabilities: [70] AGP version 3.0

02:01.0 Audio device [0403]: VIA Technologies, Inc. VIA High Definition Audio Controller [1106:3288] (rev 10)
        Subsystem: VIA Technologies, Inc. Unknown device [1106:0300]
        Flags: bus master, fast devsel, latency 0, IRQ 21
        Memory at dfefc000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable-
        Capabilities: [70] Express Unknown type IRQ 0
        Capabilities: [100] Virtual Channel

03:08.0 Ethernet controller [0200]: VIA Technologies, Inc. VT6102 [Rhine-II] [1106:3065] (rev 8d)
        Subsystem: VIA Technologies, Inc. Unknown device [1106:0107]
        Flags: bus master, stepping, medium devsel, latency 32, IRQ 16
        I/O ports at cc00 [size=256]
        Memory at dfcff000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [44] Power Management version 2

03:09.0 FireWire (IEEE 1394) [0c00]: VIA Technologies, Inc. IEEE 1394 Host Controller [1106:3044] (rev 80) (prog-if 10 [OHCI])
        Subsystem: VIA Technologies, Inc. IEEE 1394 Host Controller [1106:3044]
        Flags: bus master, stepping, medium devsel, latency 32, IRQ 11
        Memory at dfcfe000 (32-bit, non-prefetchable) [size=2K]
        I/O ports at c800 [size=128]
        Capabilities: [50] Power Management version 2

03:0f.0 PCI bridge [0604]: Hint Corp HB6 Universal PCI-PCI bridge (non-transparent mode) [3388:0021] (rev 11) (prog-if 00 [Normal decode])
        Flags: bus master, medium devsel, latency 32
        Bus: primary=03, secondary=04, subordinate=04, sec-latency=32
        I/O behind bridge: 0000b000-0000bfff
        Memory behind bridge: dfb00000-dfbfffff
        Prefetchable memory behind bridge: d4000000-dbffffff
        Capabilities: [80] Power Management version 2
        Capabilities: [90] #06 [0000]

04:08.0 Multimedia video controller [0400]: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder [4444:0016] (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 500 (1st unit) [0070:e807]
        Flags: bus master, medium devsel, latency 64, IRQ 21
        Memory at d8000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

04:09.0 Multimedia video controller [0400]: Internext Compression Inc iTVC16 (CX23416) MPEG-2 Encoder [4444:0016] (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 500 (2nd unit) [0070:e817]
        Flags: bus master, medium devsel, latency 64, IRQ 16
        Memory at d4000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2
Comment 15 Tejun Heo 2007-06-18 07:28:34 UTC
The reason why via82cxxx works is probably because it ignores the error condition.  Please post kernel boot log with via82cxxx.  Thanks.
Comment 16 Dan A. Dickey 2007-06-18 07:35:12 UTC
This is about it when booting with via82cxxx:

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:0f.0
VP_IDE: chipset revision 0
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA cx700 (rev 00) IDE UDMA133 controller on pci0000:00:0f.0
    ide0: BM-DMA at 0xfc00-0xfc07, BIOS settings: hda:DMA, hdb:DMA
    ide1: BM-DMA at 0xfc08-0xfc0f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: SAMSUNG SP2504C, ATA DISK drive
hdb: SAMSUNG SP2504C, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: PLEXTOR DVDR PX-740A, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 512KiB
hda: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(33)
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4
hdb: max request size: 512KiB
hdb: 488397168 sectors (250059 MB) w/8192KiB Cache, CHS=30401/255/63, UDMA(33)
hdb: cache flushes supported
 hdb: hdb1 hdb2 hdb3 hdb4
ACPI: PCI Interrupt 0000:00:10.4[D] -> GSI 23 (level, low) -> IRQ 17
ehci_hcd 0000:00:10.4: EHCI Host Controller
Comment 17 Tejun Heo 2007-06-18 21:27:04 UTC
Hmmm... IDE driver is configuring the device to UDMA33 (max speed for 40c cable) and the device isn't complaining.  Can you run 'hdparm -t /dev/hda' with via82cxxx and 'hdparm -t /dev/sda' with the modified sata_via and report the result?
Comment 18 Dan A. Dickey 2007-06-20 05:55:43 UTC
In comment 14 above, I mentioned that an hdparm -T always comes out
about 72MB/s - sorry about that, I meant that a hdparm -t does that.
The hdparm -T for cached reads comes in at about 300+ MB/sec, either
driver.

Anyways, here you go:

first, with the via82cxxx and /dev/hda:
# hdparm -t /dev/hda

/dev/hda:
 Timing buffered disk reads:  220 MB in  3.02 seconds =  72.97 MB/sec

secondly, with the pata_via (not *sata_via*) and /dev/sda:
# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:  220 MB in  3.02 seconds =  72.88 MB/sec
Comment 19 Tejun Heo 2007-06-20 22:36:09 UTC
Created attachment 11837 [details]
pata_via-broken-sata_pata.patch

Please test this patch.  Thanks.
Comment 20 Dan A. Dickey 2007-06-21 05:43:37 UTC
Thumbs down.  I'm back to a one-drive system (/dev/sda) with this patch.

Here are the messages from dmesg:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
pata_via 0000:00:0f.0: version 0.3.1
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.01: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/33
ata1.01: failed to set xfermode (err_mask=0x1)
ata1: failed to recover some devices, retrying in 5 secs
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/33
ata1.01: failed to set xfermode (err_mask=0x1)
ata1.01: limiting speed to UDMA/33:PIO3
ata1: failed to recover some devices, retrying in 5 secs
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/33
ata1.01: failed to set xfermode (err_mask=0x1)
ata1.01: disabled
ata1: failed to recover some devices, retrying in 5 secs
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/33
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
scsi 1:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-740A   1.01 PQ: 0 ANSI: 5
ACPI: PCI Interrupt 0000:00:10.4[D] -> GSI 23 (level, low) -> IRQ 17
ehci_hcd 0000:00:10.4: EHCI Host Controller

I'm not sure how this might be done, but could it be possible that both
drives on this channel must be run at the same speed?
Is there a way to change the speed with the pata_via driver?  hdparm -X
doesn't work with the present setup when I try it.
I was going to try to see if the chip lets me set any speed other than
what it things the channel should be run at.
Comment 21 Hans de Bruin 2007-06-30 06:38:07 UTC
Here's another via_pata problem:

Linux version 2.6.22-rc6 (hans@orion) (gcc version 3.4.6) #9 Sat Jun 30 14:47:11 CEST 2007
...
pata_via 0000:00:0f.1: version 0.3.1
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 20
scsi2 : pata_via
scsi3 : pata_via
ata3: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001f900 irq 14
ata4: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001f908 irq 15
ata3.00: ATAPI: COM4824, VER 1.01, max UDMA/66
ata3.01: ATAPI: IOMEGA  ZIP 250       ATAPI       Floppy, 51.G, max MWDMA0, CDB intr
ata3.00: limited to UDMA/33 due to 40-wire cable
ata3.00: configured for UDMA/33
ata3.01: failed to set xfermode (err_mask=0x1)
ata3: failed to recover some devices, retrying in 5 secs
ata3.00: configured for UDMA/33
ata3.01: failed to set xfermode (err_mask=0x1)
ata3.01: limiting speed to MWDMA0:PIO2
ata3: failed to recover some devices, retrying in 5 secs
ata3.00: configured for UDMA/33
ata3.01: failed to set xfermode (err_mask=0x1)
ata3.01: disabled
ata3: failed to recover some devices, retrying in 5 secs
ata3.00: configured for UDMA/33
scsi 2:0:0:0: CD-ROM            AOPEN    COM4824          1.01 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 2x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 2:0:0:0: Attached scsi CD-ROM sr0

The ATA driver works just fine, although there seems to be a cable issue:

Linux version 2.6.22-rc5 (hans@orion) (gcc version 3.4.6) #6 Sat Jun 23 22:25:17 CEST 2007
...
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:0f.1
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 20
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.1
    ide0: BM-DMA at 0xf900-0xf907, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xf908-0xf90f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
Marking TSC unstable due to: possible TSC halt in C2.
Time: acpi_pm clocksource has been installed.
hda: COM4824, ATAPI CD/DVD-ROM drive
hdb: IOMEGA ZIP 250 ATAPI Floppy, ATAPI FLOPPY drive
hdb: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdb: set_drive_speed_status: error=0x04 { AbortedCommand }
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: ATAPI 48X DVD-ROM CD-R/RW drive, 2048kB Cache<4>hda: drive side 80-wire cable detection failed, limiting max speed to UDMA33
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
hdb: No disk in drive
hdb: 244736kB, 239/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm


On 2.6.21.1 the ATA doen's even complain about te cable Which is a 80-wire 


Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: IDE controller at PCI slot 0000:00:0f.1
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 20
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
VP_IDE: VIA vt8237 (rev 00) IDE UDMA133 controller on pci0000:00:0f.1
    ide0: BM-DMA at 0xf900-0xf907, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xf908-0xf90f, BIOS settings: hdc:pio, hdd:pio
Probing IDE interface ide0...
Time: acpi_pm clocksource has been installed.
hda: COM4824, ATAPI CD/DVD-ROM drive
hdb: IOMEGA ZIP 250 ATAPI Floppy, ATAPI FLOPPY drive
hdb: set_drive_speed_status: status=0x51 { DriveReady SeekComplete Error }
hdb: set_drive_speed_status: error=0x04 { AbortedCommand }
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hda: ATAPI 48X DVD-ROM CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
ide-floppy driver 0.99.newide
hdb: No disk in drive
hdb: 244736kB, 239/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm
Comment 22 Tejun Heo 2007-07-02 08:46:32 UTC
Dan, the last patch forces UDMA/33 on both drives && hdparm -X is currently not supported.  It's scheduled to be added but the priority is to make things configured correctly without any user intervention (which actually works on most cases now).  I don't know why IDE driver doesn't see SET_XFERMODE failure.

Hans, yours is actually PATA interface, right?  It seems we'll have to ignore SET_XFERMODE failure on the slave device on VIA controllers.  What happens if you swap hda and hdb?  Please report the result of "lspci -nnv".
Comment 23 Dan A. Dickey 2007-07-02 08:51:42 UTC
Tejun,
I'm not really interested in being able to set the drive speed
using hdparm or some other utility.  As long as the driver sets
it to something appropriate and I can use both SATA drives at
the full expected speed for the drive, I'll be very happy.
I don't presently have another SATA drive that would work at
a different speed than my two Samsung's, but if/when I do get
one I'll give it a test to see what happens.  Thanks!
Comment 24 Tejun Heo 2007-07-02 09:07:33 UTC
Created attachment 11922 [details]
via-setxfer-mess.patch

Dan, Hans, please test this patch and attach full boot dmesg.  Thanks.
Comment 25 Hans de Bruin 2007-07-02 11:52:27 UTC
(In reply to comment #22)
> Dan, the last patch forces UDMA/33 on both drives && hdparm -X is currently
> not
> supported.  It's scheduled to be added but the priority is to make things
> configured correctly without any user intervention (which actually works on
> most cases now).  I don't know why IDE driver doesn't see SET_XFERMODE
> failure.
> 
> Hans, yours is actually PATA interface, right?  It seems we'll have to ignore
> SET_XFERMODE failure on the slave device on VIA controllers.  What happens if
> you swap hda and hdb?  Please report the result of "lspci -nnv".
> 

Setting the ZIP drive to master works. 

CD master ZIP slave = problems

Linux version 2.6.22-rc7 (hans@psion) (gcc version 3.4.6) #12 Mon Jul 2 20:24:54 CEST 2007
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003bee0000 (usable)
 BIOS-e820: 000000003bee0000 - 000000003bee3000 (ACPI NVS)
 BIOS-e820: 000000003bee3000 - 000000003bef0000 (ACPI data)
 BIOS-e820: 000000003bef0000 - 000000003bf00000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Warning only 896MB will be used.
Use a HIGHMEM enabled kernel.
896MB LOWMEM available.
found SMP MP-table at 000f39a0
Entering add_active_range(0, 0, 229376) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   229376
early_node_map[1] active PFN ranges
    0:        0 ->   229376
On node 0 totalpages: 229376
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
DMI 2.3 present.
ACPI: RSDP 000F7B30, 0014 (r0 CN700 )
ACPI: RSDT 3BEE3040, 002C (r1 CN700  AWRDACPI 42302E31 AWRD        0)
ACPI: FACP 3BEE30C0, 0074 (r1 CN700  AWRDACPI 42302E31 AWRD        0)
ACPI: DSDT 3BEE3180, 5EDB (r1 CN700  AWRDACPI     1000 MSFT  100000E)
ACPI: FACS 3BEE0000, 0040
ACPI: APIC 3BEE90C0, 005A (r1 CN700  AWRDACPI 42302E31 AWRD        0)
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:10 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 3, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 40000000 (gap: 3bf00000:c2d00000)
Built 1 zonelists.  Total pages: 227584
Kernel command line: root=/dev/nfs nfsroot=10.10.0.2:/nfsroot/psion rw ip=::::::dhcp BOOT_IMAGE=psion-kernel 
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 1200.028 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 905420k/917504k available (2230k kernel code, 11600k reserved, 919k data, 168k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xfffb7000 - 0xfffff000   ( 288 kB)
    vmalloc : 0xf8800000 - 0xfffb5000   ( 119 MB)
    lowmem  : 0xc0000000 - 0xf8000000   ( 896 MB)
      .init : 0xc0416000 - 0xc0440000   ( 168 kB)
      .data : 0xc032db3a - 0xc0413744   ( 919 kB)
      .text : 0xc0100000 - 0xc032db3a   (2230 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 2401.31 BogoMIPS (lpj=12006595)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: a7c9baff 00100000 00000000 00000000 00000181 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 128K (64 bytes/line)
CPU: After all inits, caps: 27c9baff 00100000 00000000 00000000 00000181 00003fcc 00000000
Compat vDSO mapped to ffffe000.
CPU: Centaur VIA Esther processor 1200MHz stepping 09
Checking 'hlt' instruction... OK.
ACPI: Core revision 20070126
Parsing all Control Methods:
Table [DSDT](id 0001) - 759 Objects with 65 Devices 211 Methods 40 Regions
 tbxface-0587 [02] tb_load_namespace     : ACPI Tables successfully acquired
evxfevnt-0091 [02] enable                : Transition to ACPI mode successful
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfa0f0, last bus=1
PCI: Using configuration type 1
Setting up standard PCI resources
evgpeblk-0952 [04] ev_create_gpe_block   : GPE 00 to 0F [_GPE] 2 regs on int 0x9
evgpeblk-1048 [03] ev_initialize_gpe_bloc: Found 6 Wake, Enabled 0 Runtime GPEs in this block
Completing Region/Field/Buffer/Package initialization:.................................................................................................
Initialized 40/40 Regions 18/18 Fields 25/25 Buffers 14/25 Packages (768 nodes)
Initializing Device/Processor/Thermal objects by executing _INI methods:..
Executed 2 _INI methods requiring 1 _STA executions (examined 69 objects)
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 *10 11 12)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 *11 12)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 10 11 12) *5
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 *11 12)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [ALKA] (IRQs *20)
ACPI: PCI Interrupt Link [ALKB] (IRQs *21)
ACPI: PCI Interrupt Link [ALKC] (IRQs *22)
ACPI: PCI Interrupt Link [ALKD] (IRQs *23)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 2.21 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:00: iomem range 0xd2000-0xd3fff has been reserved
pnp: 00:00: iomem range 0xf0000-0xf7fff could not be reserved
pnp: 00:00: iomem range 0xf8000-0xfbfff could not be reserved
pnp: 00:00: iomem range 0xfc000-0xfffff could not be reserved
pnp: 00:02: ioport range 0x400-0x47f has been reserved
pnp: 00:02: ioport range 0x500-0x50f has been reserved
Time: tsc clocksource has been installed.
PCI: Bridge: 0000:00:01.0
  IO window: d000-dfff
  MEM window: fb000000-fcffffff
  PREFETCH window: f4000000-f7ffffff
PCI: Setting latency timer of device 0000:00:01.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
eps: Detected VIA Eden
eps: Current voltage = 860mV
eps: Current multiplier = 12
eps: Highest voltage = 860mV
eps: Highest multiplier = 12
eps: Lowest voltage = 844mV
eps: Lowest multiplier = 4
microcode: CPU0 not a capable Intel processor
IA-32 Microcode Update Driver: v1.14a <tigran@aivazian.fsnet.co.uk>
io scheduler noop registered
io scheduler deadline registered (default)
PCI: VIA PCI bridge detected. Disabling DAC.
Switched to high resolution mode on CPU 0
0000:00:10.4 EHCI: BIOS handoff failed (BIOS bug ?) 01010001
PCI: Bypassing VIA 8237 APIC De-Assert Message
Boot video device is 0000:01:00.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: Fan [FAN] (on)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 2 throttling states)
ACPI: Thermal Zone [THRM] (40 C)
Real Time Clock Driver v1.12ac
VIA RNG detected
Linux agpgart interface v0.102 (c) Dave Jones
agpgart: Detected VIA VT3314 chipset
agpgart: AGP aperture is 128M @ 0xe8000000
[drm] Initialized drm 1.1.0 20060810
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[drm] Initialized via 2.11.1 20070202 on minor 0
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
loop: module loaded
via-rhine: Broken BIOS detected, avoid_D3 enabled.
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
ACPI: PCI Interrupt Link [ALKD] enabled at IRQ 23
ACPI: PCI Interrupt 0000:00:12.0[A] -> Link [ALKD] -> GSI 23 (level, low) -> IRQ 17
eth0: VIA Rhine II at 0xfdffd000, 00:30:18:a4:00:95, IRQ 17.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
sata_via 0000:00:0f.0: version 2.2
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
ACPI: PCI Interrupt 0000:00:0f.0[B] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 18
sata_via 0000:00:0f.0: routed to hard irq line 11
scsi0 : sata_via
scsi1 : sata_via
ata1: SATA max UDMA/133 cmd 0x0001fe00 ctl 0x0001fd02 bmdma 0x0001fa00 irq 0
ata2: SATA max UDMA/133 cmd 0x0001fc00 ctl 0x0001fb02 bmdma 0x0001fa08 irq 0
ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
ata2: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
pata_via 0000:00:0f.1: version 0.3.1
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 18
scsi2 : pata_via
scsi3 : pata_via
ata3: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001f900 irq 14
ata4: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001f908 irq 15
Marking TSC unstable due to: possible TSC halt in C2.
Time: acpi_pm clocksource has been installed.
ata3.00: ATAPI: COM4824, VER 1.01, max UDMA/66
ata3.01: ATAPI: IOMEGA  ZIP 250       ATAPI       Floppy, 51.G, max MWDMA0, CDB intr
ata3.00: limited to UDMA/33 due to 40-wire cable
ata3.00: configured for UDMA/33
ata3.01: failed to set xfermode (err_mask=0x1)
ata3: failed to recover some devices, retrying in 5 secs
ata3.00: configured for UDMA/33
ata3.01: failed to set xfermode (err_mask=0x1)
ata3.01: limiting speed to MWDMA0:PIO2
ata3: failed to recover some devices, retrying in 5 secs
ata3.00: configured for UDMA/33
ata3.01: failed to set xfermode (err_mask=0x1)
ata3.01: disabled
ata3: failed to recover some devices, retrying in 5 secs
ata3.00: configured for UDMA/33
scsi 2:0:0:0: CD-ROM            AOPEN    COM4824          1.01 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 2x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 2:0:0:0: Attached scsi CD-ROM sr0
usbmon: debugfs is not available
ACPI: PCI Interrupt Link [ALKB] enabled at IRQ 21
ACPI: PCI Interrupt 0000:00:10.4[C] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
ehci_hcd 0000:00:10.4: EHCI Host Controller
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: irq 19, io mem 0xfdffe000
ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:10.0: irq 19, io base 0x0000f800
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.1: irq 19, io base 0x0000f700
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[B] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.2: irq 19, io base 0x0000f600
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.3[B] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.3: UHCI Host Controller
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:10.3: irq 19, io base 0x0000f500
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 3-2: new low speed USB device using uhci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 controller doesn't have AUX irq; using default 12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
input: Logitech Trackball as /class/input/input3
input: USB HID v1.10 Mouse [Logitech Trackball] on usb-0000:00:10.1-2
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.10.0.2, my address is 10.10.0.9
IP-Config: Complete:
      device=eth0, addr=10.10.0.9, mask=255.255.0.0, gw=10.10.0.1,
     host=10.10.0.9, domain=system, nis-domain=(none),
     bootserver=10.10.0.2, rootserver=10.10.0.2, rootpath=/opt/tftpboot/test
Looking up port of RPC 100003/2 on 10.10.0.2
Looking up port of RPC 100005/1 on 10.10.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 168k freed
via82xx: DXS white list for Jetway K8 found
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:11.5 to 64
Clocksource tsc unstable (delta = -166649895 ns)


ZIP master CDROM slave =  OK


Linux version 2.6.22-rc7 (hans@psion) (gcc version 3.4.6) #12 Mon Jul 2 20:24:54 CEST 2007
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009f800 (usable)
 BIOS-e820: 000000000009f800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003bee0000 (usable)
 BIOS-e820: 000000003bee0000 - 000000003bee3000 (ACPI NVS)
 BIOS-e820: 000000003bee3000 - 000000003bef0000 (ACPI data)
 BIOS-e820: 000000003bef0000 - 000000003bf00000 (reserved)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
Warning only 896MB will be used.
Use a HIGHMEM enabled kernel.
896MB LOWMEM available.
found SMP MP-table at 000f39a0
Entering add_active_range(0, 0, 229376) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   229376
early_node_map[1] active PFN ranges
    0:        0 ->   229376
On node 0 totalpages: 229376
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
DMI 2.3 present.
ACPI: RSDP 000F7B30, 0014 (r0 CN700 )
ACPI: RSDT 3BEE3040, 002C (r1 CN700  AWRDACPI 42302E31 AWRD        0)
ACPI: FACP 3BEE30C0, 0074 (r1 CN700  AWRDACPI 42302E31 AWRD        0)
ACPI: DSDT 3BEE3180, 5EDB (r1 CN700  AWRDACPI     1000 MSFT  100000E)
ACPI: FACS 3BEE0000, 0040
ACPI: APIC 3BEE90C0, 005A (r1 CN700  AWRDACPI 42302E31 AWRD        0)
ACPI: PM-Timer IO Port: 0x408
ACPI: Local APIC address 0xfee00000
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:10 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
IOAPIC[0]: apic_id 2, version 3, address 0xfec00000, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 40000000 (gap: 3bf00000:c2d00000)
Built 1 zonelists.  Total pages: 227584
Kernel command line: root=/dev/nfs nfsroot=10.10.0.2:/nfsroot/psion rw ip=::::::dhcp BOOT_IMAGE=psion-kernel 
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 1200.006 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 905420k/917504k available (2230k kernel code, 11600k reserved, 919k data, 168k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xfffb7000 - 0xfffff000   ( 288 kB)
    vmalloc : 0xf8800000 - 0xfffb5000   ( 119 MB)
    lowmem  : 0xc0000000 - 0xf8000000   ( 896 MB)
      .init : 0xc0416000 - 0xc0440000   ( 168 kB)
      .data : 0xc032db3a - 0xc0413744   ( 919 kB)
      .text : 0xc0100000 - 0xc032db3a   (2230 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 2401.32 BogoMIPS (lpj=12006601)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: a7c9baff 00100000 00000000 00000000 00000181 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 128K (64 bytes/line)
CPU: After all inits, caps: 27c9baff 00100000 00000000 00000000 00000181 00003fcc 00000000
Compat vDSO mapped to ffffe000.
CPU: Centaur VIA Esther processor 1200MHz stepping 09
Checking 'hlt' instruction... OK.
ACPI: Core revision 20070126
Parsing all Control Methods:
Table [DSDT](id 0001) - 759 Objects with 65 Devices 211 Methods 40 Regions
 tbxface-0587 [02] tb_load_namespace     : ACPI Tables successfully acquired
evxfevnt-0091 [02] enable                : Transition to ACPI mode successful
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=-1 pin2=-1
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xfa0f0, last bus=1
PCI: Using configuration type 1
Setting up standard PCI resources
evgpeblk-0952 [04] ev_create_gpe_block   : GPE 00 to 0F [_GPE] 2 regs on int 0x9
evgpeblk-1048 [03] ev_initialize_gpe_bloc: Found 6 Wake, Enabled 0 Runtime GPEs in this block
Completing Region/Field/Buffer/Package initialization:.................................................................................................
Initialized 40/40 Regions 18/18 Fields 25/25 Buffers 14/25 Packages (768 nodes)
Initializing Device/Processor/Thermal objects by executing _INI methods:..
Executed 2 _INI methods requiring 1 _STA executions (examined 69 objects)
ACPI: Interpreter enabled
ACPI: (supports S0 S1 S4 S5)
ACPI: Using IOAPIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 6 7 *10 11 12)
ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 6 7 10 *11 12)
ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 6 7 10 11 12) *5
ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 6 7 10 *11 12)
ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNK0] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [LNK1] (IRQs 3 4 6 7 10 11 12) *0, disabled.
ACPI: PCI Interrupt Link [ALKA] (IRQs *20)
ACPI: PCI Interrupt Link [ALKB] (IRQs *21)
ACPI: PCI Interrupt Link [ALKC] (IRQs *22)
ACPI: PCI Interrupt Link [ALKD] (IRQs *23)
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
ACPI: bus type pnp registered
pnp: PnP ACPI: found 13 devices
ACPI: ACPI bus type pnp unregistered
SCSI subsystem initialized
libata version 2.21 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
pnp: 00:00: iomem range 0xd2000-0xd3fff has been reserved
pnp: 00:00: iomem range 0xf0000-0xf7fff could not be reserved
pnp: 00:00: iomem range 0xf8000-0xfbfff could not be reserved
pnp: 00:00: iomem range 0xfc000-0xfffff could not be reserved
pnp: 00:02: ioport range 0x400-0x47f has been reserved
pnp: 00:02: ioport range 0x500-0x50f has been reserved
Time: tsc clocksource has been installed.
PCI: Bridge: 0000:00:01.0
  IO window: d000-dfff
  MEM window: fb000000-fcffffff
  PREFETCH window: f4000000-f7ffffff
PCI: Setting latency timer of device 0000:00:01.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
eps: Detected VIA Eden
eps: Current voltage = 860mV
eps: Current multiplier = 12
eps: Highest voltage = 860mV
eps: Highest multiplier = 12
eps: Lowest voltage = 844mV
eps: Lowest multiplier = 4
microcode: CPU0 not a capable Intel processor
IA-32 Microcode Update Driver: v1.14a <tigran@aivazian.fsnet.co.uk>
io scheduler noop registered
io scheduler deadline registered (default)
PCI: VIA PCI bridge detected. Disabling DAC.
Switched to high resolution mode on CPU 0
0000:00:10.4 EHCI: BIOS handoff failed (BIOS bug ?) 01010001
PCI: Bypassing VIA 8237 APIC De-Assert Message
Boot video device is 0000:01:00.0
input: Power Button (FF) as /class/input/input0
ACPI: Power Button (FF) [PWRF]
input: Power Button (CM) as /class/input/input1
ACPI: Power Button (CM) [PWRB]
ACPI: Fan [FAN] (on)
ACPI: CPU0 (power states: C1[C1] C2[C2] C3[C3])
ACPI: Processor [CPU0] (supports 2 throttling states)
ACPI: Thermal Zone [THRM] (40 C)
Real Time Clock Driver v1.12ac
VIA RNG detected
Linux agpgart interface v0.102 (c) Dave Jones
agpgart: Detected VIA VT3314 chipset
agpgart: AGP aperture is 128M @ 0xe8000000
[drm] Initialized drm 1.1.0 20060810
ACPI: PCI Interrupt 0000:01:00.0[A] -> GSI 16 (level, low) -> IRQ 16
[drm] Initialized via 2.11.1 20070202 on minor 0
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
loop: module loaded
via-rhine: Broken BIOS detected, avoid_D3 enabled.
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
ACPI: PCI Interrupt Link [ALKD] enabled at IRQ 23
ACPI: PCI Interrupt 0000:00:12.0[A] -> Link [ALKD] -> GSI 23 (level, low) -> IRQ 17
eth0: VIA Rhine II at 0xfdffd000, 00:30:18:a4:00:95, IRQ 17.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
sata_via 0000:00:0f.0: version 2.2
ACPI: PCI Interrupt Link [ALKA] enabled at IRQ 20
ACPI: PCI Interrupt 0000:00:0f.0[B] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 18
sata_via 0000:00:0f.0: routed to hard irq line 11
scsi0 : sata_via
scsi1 : sata_via
ata1: SATA max UDMA/133 cmd 0x0001fe00 ctl 0x0001fd02 bmdma 0x0001fa00 irq 0
ata2: SATA max UDMA/133 cmd 0x0001fc00 ctl 0x0001fb02 bmdma 0x0001fa08 irq 0
ata1: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
ata2: SATA link down 1.5 Gbps (SStatus 0 SControl 300)
pata_via 0000:00:0f.1: version 0.3.1
ACPI: PCI Interrupt 0000:00:0f.1[A] -> Link [ALKA] -> GSI 20 (level, low) -> IRQ 18
scsi2 : pata_via
scsi3 : pata_via
ata3: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001f900 irq 14
ata4: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001f908 irq 15
Marking TSC unstable due to: possible TSC halt in C2.
Time: acpi_pm clocksource has been installed.
ata3.00: ATAPI: IOMEGA  ZIP 250       ATAPI, 51.G, max MWDMA0, CDB intr
ata3.01: ATAPI: COM4824, VER 1.01, max UDMA/66
ata3.00: device is on DMA blacklist, disabling DMA
ata3.01: limited to UDMA/33 due to 40-wire cable
ata3.00: configured for PIO3
ata3.01: configured for UDMA/33
scsi 2:0:0:0: Direct-Access     IOMEGA   ZIP 250          51.G PQ: 0 ANSI: 5
sd 2:0:0:0: [sda] 489532 512-byte hardware sectors (251 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 40 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 2:0:0:0: [sda] 489532 512-byte hardware sectors (251 MB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 00 40 00 00
sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda4
sd 2:0:0:0: [sda] Attached SCSI removable disk
scsi 2:0:1:0: CD-ROM            AOPEN    COM4824          1.01 PQ: 0 ANSI: 5
sr0: scsi3-mmc drive: 2x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 2:0:1:0: Attached scsi CD-ROM sr0
usbmon: debugfs is not available
ACPI: PCI Interrupt Link [ALKB] enabled at IRQ 21
ACPI: PCI Interrupt 0000:00:10.4[C] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
ehci_hcd 0000:00:10.4: EHCI Host Controller
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:10.4: irq 19, io mem 0xfdffe000
ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 8 ports detected
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:10.0[A] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:10.0: irq 19, io base 0x0000f800
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.1[A] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.1: irq 19, io base 0x0000f700
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.2[B] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.2: irq 19, io base 0x0000f600
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:10.3[B] -> Link [ALKB] -> GSI 21 (level, low) -> IRQ 19
uhci_hcd 0000:00:10.3: UHCI Host Controller
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 5
uhci_hcd 0000:00:10.3: irq 19, io base 0x0000f500
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 2 ports detected
usb 3-2: new low speed USB device using uhci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
PNP: PS/2 Controller [PNP0303:PS2K] at 0x60,0x64 irq 1
PNP: PS/2 controller doesn't have AUX irq; using default 12
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input2
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
input: Logitech Trackball as /class/input/input3
input: USB HID v1.10 Mouse [Logitech Trackball] on usb-0000:00:10.1-2
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.14 (Thu May 31 09:03:25 2007 UTC).
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Using IPI Shortcut mode
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.10.0.2, my address is 10.10.0.9
IP-Config: Complete:
      device=eth0, addr=10.10.0.9, mask=255.255.0.0, gw=10.10.0.1,
     host=10.10.0.9, domain=system, nis-domain=(none),
     bootserver=10.10.0.2, rootserver=10.10.0.2, rootpath=/opt/tftpboot/test
Looking up port of RPC 100003/2 on 10.10.0.2
Looking up port of RPC 100005/1 on 10.10.0.2
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 168k freed
via82xx: DXS white list for Jetway K8 found
ACPI: PCI Interrupt Link [ALKC] enabled at IRQ 22
ACPI: PCI Interrupt 0000:00:11.5[C] -> Link [ALKC] -> GSI 22 (level, low) -> IRQ 20
PCI: Setting latency timer of device 0000:00:11.5 to 64
Clocksource tsc unstable (delta = -286642750 ns)


lspci -nnv

00:00.0 0600: 1106:0314
	Subsystem: 1106:0314
	Flags: bus master, 66MHz, medium devsel, latency 8
	Memory at e8000000 (32-bit, prefetchable) [size=128M]
	Capabilities: [80] AGP version 3.5
	Capabilities: [50] Power Management version 2

00:00.1 0600: 1106:1314
	Flags: bus master, medium devsel, latency 0

00:00.2 0600: 1106:2314
	Flags: bus master, medium devsel, latency 0

00:00.3 0600: 1106:3208
	Flags: bus master, medium devsel, latency 0

00:00.4 0600: 1106:4314
	Flags: bus master, medium devsel, latency 0

00:00.7 0600: 1106:7314
	Flags: bus master, medium devsel, latency 0

00:01.0 0604: 1106:b198
	Flags: bus master, 66MHz, medium devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000d000-0000dfff
	Memory behind bridge: fb000000-fcffffff
	Prefetchable memory behind bridge: f4000000-f7ffffff
	Capabilities: [70] Power Management version 2

00:0a.0 0c00: 1106:3044 (rev 80) (prog-if 10)
	Subsystem: 1106:3044
	Flags: bus master, stepping, medium devsel, latency 32, IRQ 11
	Memory at fdfff000 (32-bit, non-prefetchable) [size=2K]
	I/O ports at ff00 [size=128]
	Capabilities: [50] Power Management version 2

00:0f.0 0101: 1106:3149 (rev 80) (prog-if 8f)
	Subsystem: 1106:3149
	Flags: bus master, medium devsel, latency 32, IRQ 18
	I/O ports at fe00 [size=8]
	I/O ports at fd00 [size=4]
	I/O ports at fc00 [size=8]
	I/O ports at fb00 [size=4]
	I/O ports at fa00 [size=16]
	I/O ports at f200 [size=256]
	Capabilities: [c0] Power Management version 2

00:0f.1 0101: 1106:0571 (rev 06) (prog-if 8a)
	Subsystem: 1106:0571
	Flags: bus master, medium devsel, latency 32, IRQ 18
	[virtual] Memory at 000001f0 (32-bit, non-prefetchable) [size=8]
	[virtual] Memory at 000003f0 (type 3, non-prefetchable) [size=1]
	[virtual] Memory at 00000170 (32-bit, non-prefetchable) [size=8]
	[virtual] Memory at 00000370 (type 3, non-prefetchable) [size=1]
	I/O ports at f900 [size=16]
	Capabilities: [c0] Power Management version 2

00:10.0 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 19
	I/O ports at f800 [size=32]
	Capabilities: [80] Power Management version 2

00:10.1 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 19
	I/O ports at f700 [size=32]
	Capabilities: [80] Power Management version 2

00:10.2 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 19
	I/O ports at f600 [size=32]
	Capabilities: [80] Power Management version 2

00:10.3 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 19
	I/O ports at f500 [size=32]
	Capabilities: [80] Power Management version 2

00:10.4 0c03: 1106:3104 (rev 86) (prog-if 20)
	Subsystem: 1106:3104
	Flags: bus master, medium devsel, latency 32, IRQ 19
	Memory at fdffe000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [80] Power Management version 2

00:11.0 0601: 1106:3227
	Subsystem: 1106:3227
	Flags: bus master, stepping, medium devsel, latency 0
	Capabilities: [c0] Power Management version 2

00:11.5 0401: 1106:3059 (rev 60)
	Subsystem: 16f3:4170
	Flags: medium devsel, IRQ 20
	I/O ports at f000 [size=256]
	Capabilities: [c0] Power Management version 2

00:12.0 0200: 1106:3065 (rev 78)
	Subsystem: 1106:0102
	Flags: bus master, stepping, medium devsel, latency 32, IRQ 17
	I/O ports at ee00 [size=256]
	Memory at fdffd000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2

01:00.0 0300: 1106:3344 (rev 01)
	Subsystem: 1106:3344
	Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16
	Memory at f4000000 (32-bit, prefetchable) [size=64M]
	Memory at fb000000 (32-bit, non-prefetchable) [size=16M]
	[virtual] Expansion ROM at fc000000 [disabled] [size=64K]
	Capabilities: [60] Power Management version 2
	Capabilities: [70] AGP version 3.0

I have also tried two maxtor disks on IDE1. No problems there. It look like the ZIP250 drive is getting ancient. Now if I didnt throw away my 50GB and 270GB IDE  disks two months ago, we could realy have fun.


-- 
Hans
Comment 26 Dan A. Dickey 2007-07-02 12:20:22 UTC
Results here are good:
  - Two working drives (/proc/mdstat is happy), and:

# hdparm -t /dev/sda

/dev/sda:
 Timing buffered disk reads:  214 MB in  3.00 seconds =  71.24 MB/sec
# hdparm -t /dev/sdb

/dev/sdb:
 Timing buffered disk reads:  212 MB in  3.00 seconds =  70.62 MB/sec

Drive speeds look good.  Here's a portion of dmesg:
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
pata_via 0000:00:0f.0: version 0.3.1
scsi0 : pata_via
scsi1 : pata_via
ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: ATA-7: SAMSUNG SP2504C, VT100-41, max UDMA7
ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: ATA-7: SAMSUNG SP2504C, VT100-33, max UDMA7
ata1.01: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.00: configured for UDMA/133
ata1.01: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 488397168
ata1.01: configured for UDMA/133
ata2.00: ATAPI, max UDMA/33
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
scsi 0:0:1:0: Direct-Access     ATA      SAMSUNG SP2504C  VT10 PQ: 0 ANSI: 5
sd 0:0:1:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:1:0: [sdb] 488397168 512-byte hardware sectors (250059 MB)
sd 0:0:1:0: [sdb] Write Protect is off
sd 0:0:1:0: [sdb] Mode Sense: 00 3a 00 00
sd 0:0:1:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sdb: sdb1 sdb2 sdb3 sdb4
sd 0:0:1:0: [sdb] Attached SCSI disk
scsi 1:0:0:0: CD-ROM            PLEXTOR  DVDR   PX-740A   1.01 PQ: 0 ANSI: 5
ACPI: PCI Interrupt 0000:00:10.4[D] -> GSI 23 (level, low) -> IRQ 17
ehci_hcd 0000:00:10.4: EHCI Host Controller

The only thing at this point that looks out of place is that the above
output implies that the drives can do UDMA7, but the output from
hdparm -I /dev/sda shows the drive set to udma6:
# hdparm -I /dev/sda | grep DMA
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 udma7

This may simply be a problem with hdparm as far as I know...
Thanks Tejun!
Comment 27 Hans de Bruin 2007-07-02 12:38:00 UTC
Created attachment 11923 [details]
dmesgs pathed kernel cd-zip and zip-cd

booted whith CD as master and ZIP as master both look succesfull.
Comment 28 Tejun Heo 2007-07-02 20:42:13 UTC
Dan, I'll submit patch for CX700.

Hans, your problem seems different.  Your device is reporting different Model Number depending on whether it's attached as master or slave.

  ata3.00: ATAPI: IOMEGA  ZIP 250       ATAPI, 51.G, max MWDMA0, CDB intr

  ata3.01: ATAPI: IOMEGA  ZIP 250       ATAPI       Floppy, 51.G, max MWDMA0, CDB intr

Please note the lack of "       Floppy" when attached as master.  This prevents from MWDMA quirk from kicking in.  Weird, weird.  I'll prep a patch to quirk the Floppy ID string too.
Comment 29 Tejun Heo 2007-07-02 20:50:15 UTC
Created attachment 11928 [details]
via-setxfer-mess-1.patch

Please test this one.
Comment 30 Hans de Bruin 2007-07-02 21:42:46 UTC
(In reply to comment #28)
> Dan, I'll submit patch for CX700.
> 
> Hans, your problem seems different.  Your device is reporting different Model
> Number depending on whether it's attached as master or slave.
> 
>   ata3.00: ATAPI: IOMEGA  ZIP 250       ATAPI, 51.G, max MWDMA0, CDB intr
> 
>   ata3.01: ATAPI: IOMEGA  ZIP 250       ATAPI       Floppy, 51.G, max MWDMA0,
> CDB intr
> 
> Please note the lack of "       Floppy" when attached as master.  This
> prevents
> from MWDMA quirk from kicking in.  Weird, weird.  I'll prep a patch to quirk
> the Floppy ID string too.
> 


maybe nod that weird, I can set the drive as Master, Slave, Master A and Slave A. I might have mixed A and not A. Seems I have to read a manual and do some more testing.
Comment 31 Tejun Heo 2007-07-02 21:52:47 UTC
Hans, please test the patch in comment 29.  Thanks.
Comment 32 Hans de Bruin 2007-07-04 02:32:50 UTC
Created attachment 11942 [details]
several dmesgs
Comment 33 Hans de Bruin 2007-07-04 02:33:40 UTC
(In reply to comment #31)
> Hans, please test the patch in comment 29.  Thanks.
> 

This seems to work in various setups. I put the dmesg output in p29_hans.txt. Note that hdparm reports the zip drive using  DMA:

/dev/sda:

 Model=IOMEGA  ZIP 250       ATAPI             , FwRev=51.G    , SerialNo=                    
 Config={ SpinMotCtl Removeable nonMagnetic }
 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=0
 IORDY=on/off, tPIO={min:500,w/IORDY:180}, tDMA={min:180,rec:180}
 PIO modes:  pio0 pio1 pio2 pio3 
 DMA modes:  *mdma0 
 AdvancedPM=no

 * signifies the current active mode
Comment 34 Tejun Heo 2007-07-04 19:51:26 UTC
Alright, I'll submit the patch upstream.  Thanks.
Comment 35 Tejun Heo 2007-07-04 21:55:42 UTC
Patches submitted.  Closing the bug.
Comment 36 Tejun Heo 2007-07-05 23:51:08 UTC
Alan doesn't like ignoring SETXFER error on CX700.  Reopening.
Comment 37 Tejun Heo 2007-07-05 23:52:03 UTC
Dan, can you attach full boot dmesg with via82cxxx here?  Thanks a lot.
Comment 38 Dan A. Dickey 2007-07-09 06:14:53 UTC
Created attachment 11979 [details]
full dmesg from 2.6.21.1 using via82cxx driver

Here you go Tejun.
If you need the dmesg output from 2.6.22-something, let me know
as I'll have to rebuild a kernel with that setup.
Comment 39 Tejun Heo 2007-07-09 22:53:05 UTC
Created attachment 11986 [details]
IDENTIFY-in-order.patch

Does this patch make any difference?
Comment 40 Dan A. Dickey 2007-07-18 07:45:09 UTC
Tejun - I'm not sure what you want here.  Do you want the output from
the via82cxxx driver again?  Or the output from pata_via?
With the patch of course...  also, you do realize that it only adds
two lines of printk and doesn't actually change anything?
Let me know which you wanted and I'll get it.
Comment 41 Tejun Heo 2007-07-19 01:39:32 UTC
Oh crap, wrong patch.  Sorry about that.  Will post new one soon.
Comment 42 Tejun Heo 2007-07-19 01:42:51 UTC
Created attachment 12073 [details]
IDENTIFY-in-order-1.patch

This is the correct patch.
Comment 43 Dan A. Dickey 2007-07-23 08:16:50 UTC
Created attachment 12105 [details]
trimmed dmesg output using IDENTIFY-in-order-1.patch

Ok, finally got time to try this out this weekend.
Still the same problem though - only one drive of the
two that I have works, with the other one being disabled.
I'll attach the trimmed dmesg output for you.
Comment 44 Tejun Heo 2007-07-24 00:33:50 UTC
Created attachment 12111 [details]
setxfer-be-lenient.patch

Okay, how about this one?
Comment 45 Dan A. Dickey 2007-07-24 08:01:40 UTC
Created attachment 12119 [details]
trimmed dmesg output from the setxfer-be-lenient patch

Nope, that didn't help either.  Here's the relevant dmesg output.
Still only one drive working out of two.
Comment 46 Tejun Heo 2007-07-24 08:11:45 UTC
Oh crap.  I'm out of ideas.  Alan, any ideas?
Comment 47 Dan A. Dickey 2007-08-13 08:42:30 UTC
Tejun/Alan -
things have been quiet for some time.
So just a simple ping here.
Any suggestions?
For the time being, I'm still using the via82cxxx driver.
Comment 48 Alan 2007-08-13 08:49:01 UTC
No ideas here at the moment either. Something is very very weird about that system 
Comment 49 Richard 2007-08-13 15:01:13 UTC
I have the exact same issue, different config. Failing to set xfer mode on sata config with 2 drives on a via 8237 south bridge. I will post results of 'hdparm -I /dev/sda', 'hdparm -I /dev/sdb' and 'lspci -nn', as well as a full dmesg when I get home from work.
Comment 50 Richard 2007-08-13 22:09:13 UTC
Here is the info I said I would post on my system. Please note my system worked perfectly under kernel 2.6.15-1.1833_FC4. It is only kernels newer than this that give the failed to set xfer mode error. Any more info please request I wills gladly supply.


# hdparm -I /dev/sda

/dev/sda:

ATA device, with non-removable media
	Model Number:       WDC WD3200JD-00KLB0                     
	Serial Number:      WD-WCAMR1130137
	Firmware Revision:  08.05J08
Standards:
	Supported: 6 5 4 3 
	Likely used: 6
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  625142448
	device size with M = 1024*1024:      305245 MBytes
	device size with M = 1000*1000:      320072 MBytes (320 GB)
Capabilities:
	LBA, IORDY(can be disabled)
	bytes avail on r/w long: 4	Queue depth: 1
	Standby timer values: spec'd by Standard, with device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Recommended acoustic management value: 128, current value: 254
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	READ BUFFER cmd
	   *	WRITE BUFFER cmd
	   *	Host Protected Area feature set
	   *	Look-ahead
	   *	Write cache
	   *	Power Management feature set
		Security Mode feature set
	   *	SMART feature set
	   *	FLUSH CACHE EXT command
	   *	Mandatory FLUSH CACHE command 
	   *	Device Configuration Overlay feature set 
	   *	48-bit Address feature set 
		Automatic Acoustic Management feature set 
		SET MAX security extension
	   *	DOWNLOAD MICROCODE cmd
	   *	SMART self-test 
	   *	SMART error logging 
Security: 
	Master password revision code = 65534
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
	not	supported: enhanced erase
Checksum: correct

# hdparm -I /dev/sdb

/dev/sdb:

ATA device, with non-removable media
	Model Number:       WDC WD2500JD-00HBB0                     
	Serial Number:      WD-WMAL71490727
	Firmware Revision:  08.02D08
Standards:
	Supported: 6 5 4 3 
	Likely used: 6
Configuration:
	Logical		max	current
	cylinders	16383	16383
	heads		16	16
	sectors/track	63	63
	--
	CHS current addressable sectors:   16514064
	LBA    user addressable sectors:  268435455
	LBA48  user addressable sectors:  488397168
	device size with M = 1024*1024:      238475 MBytes
	device size with M = 1000*1000:      250059 MBytes (250 GB)
Capabilities:
	LBA, IORDY(can be disabled)
	bytes avail on r/w long: 74	Queue depth: 1
	Standby timer values: spec'd by Standard, with device specific minimum
	R/W multiple sector transfer: Max = 16	Current = 16
	Recommended acoustic management value: 128, current value: 254
	DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6 
	     Cycle time: min=120ns recommended=120ns
	PIO: pio0 pio1 pio2 pio3 pio4 
	     Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
	Enabled	Supported:
	   *	READ BUFFER cmd
	   *	WRITE BUFFER cmd
	   *	Host Protected Area feature set
	   *	Look-ahead
	   *	Write cache
	   *	Power Management feature set
		Security Mode feature set
	   *	SMART feature set
	   *	FLUSH CACHE EXT command
	   *	Mandatory FLUSH CACHE command 
	   *	Device Configuration Overlay feature set 
	   *	48-bit Address feature set 
		Automatic Acoustic Management feature set 
		SET MAX security extension
	   *	SET FEATURES subcommand required to spinup after power up
		Power-Up In Standby feature set
	   *	DOWNLOAD MICROCODE cmd
	   *	SMART self-test 
	   *	SMART error logging 
Security: 
		supported
	not	enabled
	not	locked
	not	frozen
	not	expired: security count
	not	supported: enhanced erase
Checksum: correct

# lspci -nnv
00:00.0 Class 0600: 1106:3189 (rev 80)
	Subsystem: 1106:0000
	Flags: bus master, 66Mhz, medium devsel, latency 8
	Memory at e0000000 (32-bit, prefetchable) [size=256M]
	Capabilities: [80] AGP version 3.5
	Capabilities: [c0] Power Management version 2

00:01.0 Class 0604: 1106:b198
	Flags: bus master, 66Mhz, medium devsel, latency 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	Memory behind bridge: dde00000-dfefffff
	Prefetchable memory behind bridge: bdd00000-ddcfffff
	Capabilities: [80] Power Management version 2

00:0b.0 Class 0401: 1102:0004 (rev 04)
	Subsystem: 1102:2002
	Flags: bus master, medium devsel, latency 32, IRQ 9
	I/O ports at d000 [size=64]
	Capabilities: [dc] Power Management version 2

00:0b.1 Class 0980: 1102:7003 (rev 04)
	Subsystem: 1102:0040
	Flags: bus master, medium devsel, latency 32
	I/O ports at ec00 [size=8]
	Capabilities: [dc] Power Management version 2

00:0b.2 Class 0c00: 1102:4001 (rev 04) (prog-if 10)
	Subsystem: 1102:0010
	Flags: bus master, medium devsel, latency 32, IRQ 11
	Memory at dfffb800 (32-bit, non-prefetchable) [size=2K]
	Memory at dfff4000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2

00:0f.0 Class 0104: 1106:3149 (rev 80)
	Subsystem: 1106:3149
	Flags: bus master, medium devsel, latency 32, IRQ 10
	I/O ports at e800 [size=8]
	I/O ports at e400 [size=4]
	I/O ports at e000 [size=8]
	I/O ports at dc00 [size=4]
	I/O ports at d800 [size=16]
	I/O ports at d400 [size=256]
	Capabilities: [c0] Power Management version 2

00:0f.1 Class 0101: 1106:0571 (rev 06) (prog-if 8a [Master SecP PriP])
	Subsystem: 1106:0571
	Flags: bus master, medium devsel, latency 32
	I/O ports at fc00 [size=16]
	Capabilities: [c0] Power Management version 2

00:10.0 Class 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 11
	I/O ports at c000 [size=32]
	Capabilities: [80] Power Management version 2

00:10.1 Class 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 11
	I/O ports at c400 [size=32]
	Capabilities: [80] Power Management version 2

00:10.2 Class 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 10
	I/O ports at c800 [size=32]
	Capabilities: [80] Power Management version 2

00:10.3 Class 0c03: 1106:3038 (rev 81)
	Subsystem: 1106:3038
	Flags: bus master, medium devsel, latency 32, IRQ 10
	I/O ports at cc00 [size=32]
	Capabilities: [80] Power Management version 2

00:10.4 Class 0c03: 1106:3104 (rev 86) (prog-if 20)
	Subsystem: 1106:3104
	Flags: bus master, medium devsel, latency 32, IRQ 5
	Memory at dfffb600 (32-bit, non-prefetchable) [size=256]
	Capabilities: [80] Power Management version 2

00:11.0 Class 0601: 1106:3227
	Subsystem: 1106:0000
	Flags: bus master, stepping, medium devsel, latency 0
	Capabilities: [c0] Power Management version 2

00:12.0 Class 0200: 1106:3065 (rev 78)
	Subsystem: 1106:0102
	Flags: bus master, medium devsel, latency 32, IRQ 11
	I/O ports at bc00 [size=256]
	Memory at dfffb500 (32-bit, non-prefetchable) [size=256]
	Capabilities: [40] Power Management version 2

01:00.0 Class 0300: 10de:0312 (rev a1)
	Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 11
	Memory at de000000 (32-bit, non-prefetchable) [size=16M]
	Memory at c0000000 (32-bit, prefetchable) [size=256M]
	[virtual] Expansion ROM at dfee0000 [disabled] [size=128K]
	Capabilities: [60] Power Management version 2
	Capabilities: [44] AGP version 3.0

# dmesg
Linux version 2.6.21-1.3194.fc7 (kojibuilder@xenbuilder4.fedora.phx.redhat.com) (gcc version 4.1.2 20070502 (Red Hat 4.1.2-12)) #1 SMP Wed May 23 22:35:01 EDT 2007
BIOS-provided physical RAM map:
sanitize start
sanitize end
copy_e820_map() start: 0000000000000000 size: 000000000009fc00 end: 000000000009fc00 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 000000000009fc00 size: 0000000000000400 end: 00000000000a0000 type: 2
copy_e820_map() start: 00000000000e6000 size: 0000000000008000 end: 00000000000ee000 type: 2
copy_e820_map() start: 00000000000f0000 size: 0000000000010000 end: 0000000000100000 type: 2
copy_e820_map() start: 0000000000100000 size: 000000001ff00000 end: 0000000020000000 type: 1
copy_e820_map() type is E820_RAM
copy_e820_map() start: 00000000fec00000 size: 0000000000001000 end: 00000000fec01000 type: 2
copy_e820_map() start: 00000000fee00000 size: 0000000000001000 end: 00000000fee01000 type: 2
copy_e820_map() start: 00000000fff80000 size: 0000000000080000 end: 0000000100000000 type: 2
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000e6000 - 00000000000ee000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000020000000 (usable)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000fff80000 - 0000000100000000 (reserved)
PCI: Unknown option `irqpoll'
0MB HIGHMEM available.
512MB LOWMEM available.
found SMP MP-table at 000fb7e0
Using x86 segment limits to approximate NX protection
Entering add_active_range(0, 0, 131072) 0 entries of 256 used
Zone PFN ranges:
  DMA             0 ->     4096
  Normal       4096 ->   131072
  HighMem    131072 ->   131072
early_node_map[1] active PFN ranges
    0:        0 ->   131072
On node 0 totalpages: 131072
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 992 pages used for memmap
  Normal zone: 125984 pages, LIFO batch:31
  HighMem zone: 0 pages used for memmap
DMI 2.3 present.
Using APIC driver default
Intel MultiProcessor Specification v1.1
    Virtual Wire compatibility mode.
OEM ID: VIA      Product ID: VT5440B      APIC at: 0xFEE00000
Processor #0 6:6 APIC version 17
I/O APIC #2 Version 3 at 0xFEC00000.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Processors: 1
Allocating PCI resources starting at 30000000 (gap: 20000000:dec00000)
Built 1 zonelists.  Total pages: 130048
Kernel command line: ro root=/dev/VolGroup00/LogVol00 doscsi ACPI=OFF pci=irqpoll
mapped APIC to ffffd000 (fee00000)
mapped IOAPIC to ffffc000 (fec00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
CPU 0 irqstacks, hard=c077c000 soft=c075c000
PID hash table entries: 2048 (order: 11, 8192 bytes)
Detected 1400.133 MHz processor.
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 511512k/524288k available (2066k kernel code, 12280k reserved, 1092k data, 240k init, 0k highmem)
virtual kernel memory layout:
    fixmap  : 0xffc56000 - 0xfffff000   (3748 kB)
    pkmap   : 0xff800000 - 0xffc00000   (4096 kB)
    vmalloc : 0xe0800000 - 0xff7fe000   ( 495 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
      .init : 0xc071b000 - 0xc0757000   ( 240 kB)
      .data : 0xc0604a4a - 0xc0715cb4   (1092 kB)
      .text : 0xc0400000 - 0xc0604a4a   (2066 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 2802.25 BogoMIPS (lpj=1401127)
Security Framework v1.0.0 initialized
SELinux:  Initializing.
SELinux:  Starting in permissive mode
selinux_register_security:  Registering secondary module capability
Capability LSM initialized as secondary
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0383fbff c1cbfbff 00000000 00000000 00000000 00000000 00000000
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
CPU: After all inits, caps: 0383f3ff c1cbfbff 00000000 00000420 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 14k freed
ACPI: Core revision 20070126
ACPI Exception (tbxface-0618): AE_NO_ACPI_TABLES, While loading namespace from ACPI tables [20070126]
ACPI: Unable to load the System Description Tables
CPU0: AMD Athlon(tm) XP 1600+ stepping 02
Total of 1 processors activated (2802.25 BogoMIPS).
ExtINT not setup in hardware but reported by MP table
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=0 pin2=0
Brought up 1 CPUs
sizeof(vma)=84 bytes
sizeof(page)=32 bytes
sizeof(inode)=336 bytes
sizeof(dentry)=132 bytes
sizeof(ext3inode)=488 bytes
sizeof(buffer_head)=56 bytes
sizeof(skbuff)=176 bytes
sizeof(task_struct)=1376 bytes
Time:  3:15:04  Date: 07/11/107
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfdab1, last bus=1
PCI: Using configuration type 1
Setting up standard PCI resources
ACPI: Interpreter disabled.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI: disabled
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
Boot video device is 0000:01:00.0
PCI: Using IRQ router VIA [1106/3227] at 0000:00:11.0
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Time: tsc clocksource has been installed.
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: dde00000-dfefffff
  PREFETCH window: bdd00000-ddcfffff
PCI: Setting latency timer of device 0000:00:01.0 to 64
NET: Registered protocol family 2
IP route cache hash table entries: 16384 (order: 4, 65536 bytes)
TCP established hash table entries: 65536 (order: 7, 786432 bytes)
TCP bind hash table entries: 65536 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 65536 bind 65536)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 3475k freed
apm: BIOS not found.
audit: initializing netlink socket (disabled)
audit(1186802104.205:1): initialized
Total HugeTLB memory allocated, 0
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
SELinux:  Registering netfilter hooks
ksign: Installing public key data
Loading keyring
- Added public key 65F8109C338BBD41
- User ID: Red Hat, Inc. (Kernel Module GPG key)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
PCI: Bypassing VIA 8237 APIC De-Assert Message
pci_hotplug: PCI Hot Plug PCI Core version: 0.5
isapnp: Scanning for PnP cards...
isapnp: No Plug & Play device found
Real Time Clock Driver v1.12ac
Non-volatile memory driver v1.2
Linux agpgart interface v0.102 (c) Dave Jones
agpgart: Detected VIA KT400/KT400A/KT600 chipset
agpgart: AGP aperture is 256M @ 0xe0000000
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
RAMDISK driver initialized: 16 RAM disks of 16384K size 4096 blocksize
input: Macintosh mouse button emulation as /class/input/input0
usbcore: registered new interface driver libusual
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard as /class/input/input1
TCP bic registered
Initializing XFRM netlink socket
NET: Registered protocol family 1
NET: Registered protocol family 17
powernow-k8: Processor cpuid 662 not supported
Using IPI No-Shortcut mode
  Magic number: 3:871:259
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing unused kernel memory: 240k freed
Write protecting the kernel read-only data: 820k
USB Universal Host Controller Interface driver v3.0
uhci_hcd 0000:00:10.0: UHCI Host Controller
uhci_hcd 0000:00:10.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:10.0: irq 11, io base 0x0000c000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.1: UHCI Host Controller
uhci_hcd 0000:00:10.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:10.1: irq 11, io base 0x0000c400
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.2: UHCI Host Controller
uhci_hcd 0000:00:10.2: new USB bus registered, assigned bus number 3
uhci_hcd 0000:00:10.2: irq 10, io base 0x0000c800
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
uhci_hcd 0000:00:10.3: UHCI Host Controller
uhci_hcd 0000:00:10.3: new USB bus registered, assigned bus number 4
uhci_hcd 0000:00:10.3: irq 10, io base 0x0000cc00
usb usb4: configuration #1 chosen from 1 choice
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
ehci_hcd 0000:00:10.4: EHCI Host Controller
ehci_hcd 0000:00:10.4: new USB bus registered, assigned bus number 5
ehci_hcd 0000:00:10.4: irq 5, io mem 0xdfffb600
ehci_hcd 0000:00:10.4: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb5: configuration #1 chosen from 1 choice
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 8 ports detected
input: ImExPS/2 Generic Explorer Mouse as /class/input/input2
SCSI subsystem initialized
libata version 2.20 loaded.
pata_via 0000:00:0f.1: version 0.2.1
ata1: PATA max UDMA/133 cmd 0x000101f0 ctl 0x000103f6 bmdma 0x0001fc00 irq 14
ata2: PATA max UDMA/133 cmd 0x00010170 ctl 0x00010376 bmdma 0x0001fc08 irq 15
scsi0 : pata_via
ata1.00: ata_hpa_resize 1: sectors = 361882080, hpa_sectors = 361882080
ata1.00: ATA-6: IC35L180AVV207-1, V26OA63A, max UDMA/100
ata1.00: 361882080 sectors, multi 16: LBA48 
ata1.00: ata_hpa_resize 1: sectors = 361882080, hpa_sectors = 361882080
ata1.00: configured for UDMA/100
scsi1 : pata_via
ata2.00: ATAPI, max UDMA/66
ata2.00: configured for UDMA/33
scsi 0:0:0:0: Direct-Access     ATA      IC35L180AVV207-1 V26O PQ: 0 ANSI: 5
SCSI device sda: 361882080 512-byte hdwr sectors (185284 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
SCSI device sda: 361882080 512-byte hdwr sectors (185284 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1 sda2
sd 0:0:0:0: Attached scsi disk sda
scsi 1:0:0:0: CD-ROM            LITE-ON  DVDRW SOHW-1673S JS02 PQ: 0 ANSI: 5
sata_via 0000:00:0f.0: version 2.1
sata_via 0000:00:0f.0: routed to hard irq line 10
ata3: SATA max UDMA/133 cmd 0x0001e800 ctl 0x0001e402 bmdma 0x0001d800 irq 10
ata4: SATA max UDMA/133 cmd 0x0001e000 ctl 0x0001dc02 bmdma 0x0001d808 irq 10
scsi2 : sata_via
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ATA: abnormal status 0x7F on port 0x0001e807
ATA: abnormal status 0x7F on port 0x0001e807
ata3.00: qc timeout (cmd 0x27)
ata3.00: ata_hpa_resize 1: sectors = 625142448, hpa_sectors = 0
ata3.00: ATA-6: WDC WD3200JD-00KLB0, 08.05J08, max UDMA/100
ata3.00: 625142448 sectors, multi 16: LBA48 
ata3.00: failed to set xfermode (err_mask=0x40)
ata3: failed to recover some devices, retrying in 5 secs
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ATA: abnormal status 0x7F on port 0x0001e807
ATA: abnormal status 0x7F on port 0x0001e807
ata3.00: qc timeout (cmd 0x27)
ata3.00: ata_hpa_resize 1: sectors = 625142448, hpa_sectors = 0
ata3.00: failed to set xfermode (err_mask=0x40)
ata3.00: limiting speed to UDMA/100:PIO3
ata3: failed to recover some devices, retrying in 5 secs
ata3: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ATA: abnormal status 0x7F on port 0x0001e807
ATA: abnormal status 0x7F on port 0x0001e807
ata3.00: qc timeout (cmd 0x27)
ata3.00: ata_hpa_resize 1: sectors = 625142448, hpa_sectors = 0
ata3.00: failed to set xfermode (err_mask=0x40)
ata3.00: disabled
scsi3 : sata_via
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ATA: abnormal status 0x7F on port 0x0001e007
ATA: abnormal status 0x7F on port 0x0001e007
ata4.00: qc timeout (cmd 0x27)
ata4.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 0
ata4.00: ATA-6: WDC WD2500JD-00HBB0, 08.02D08, max UDMA/133
ata4.00: 488397168 sectors, multi 16: LBA48 
ata4.00: failed to set xfermode (err_mask=0x40)
ata4: failed to recover some devices, retrying in 5 secs
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ATA: abnormal status 0x7F on port 0x0001e007
ATA: abnormal status 0x7F on port 0x0001e007
ata4.00: qc timeout (cmd 0x27)
ata4.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 0
ata4.00: failed to set xfermode (err_mask=0x40)
ata4.00: limiting speed to UDMA/133:PIO3
ata4: failed to recover some devices, retrying in 5 secs
ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ATA: abnormal status 0x7F on port 0x0001e007
ATA: abnormal status 0x7F on port 0x0001e007
ata4.00: qc timeout (cmd 0x27)
ata4.00: ata_hpa_resize 1: sectors = 488397168, hpa_sectors = 0
ata4.00: failed to set xfermode (err_mask=0x40)
ata4.00: disabled
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
SELinux:  Disabled at runtime.
SELinux:  Unregistering netfilter hooks
audit(1186802318.173:2): selinux=0 auid=4294967295
sd 0:0:0:0: Attached scsi generic sg0 type 0
scsi 1:0:0:0: Attached scsi generic sg1 type 5
fw_ohci: Added fw-ohci device 0000:00:0b.2, OHCI version 1.10
gameport: EMU10K1 is pci0000:00:0b.1/gameport0, io 0xec00, speed 1217kHz
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
input: PC Speaker as /class/input/input3
via-rhine.c:v1.10-LK1.4.3 2007-03-06 Written by Donald Becker
eth0: VIA Rhine II at 0xdfffb500, 00:0d:87:b4:91:3f, IRQ 11.
eth0: MII PHY found at address 1, status 0x7869 advertising 05e1 Link 45e1.
Installing spdif_bug patch: Audigy 2 ZS [SB0350]
loop: loaded (max 8 devices)
lp: driver loaded but no devices found
sonypi: Sony Programmable I/O Controller Driver v1.26.
device-mapper: multipath: version 1.0.5 loaded
EXT3 FS on dm-0, internal journal
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sda1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
Adding 1048568k swap on /dev/VolGroup00/LogVol01.  Priority:-1 extents:1 across:1048568k
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
Mobile IPv6
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: no IPv6 routers present
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0003, PHY status 786d, resetting...
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
audit(1186802391.911:3): audit_pid=1432 old=0 by auid=4294967295
Bluetooth: Core ver 2.11
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP ver 2.8
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
Bluetooth: HIDP (Human Interface Emulation) ver 1.2
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0003, PHY status 786d, resetting...
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
NETDEV WATCHDOG: eth0: transmit timed out
eth0: Transmit timed out, status 0002, PHY status 786d, resetting...
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Comment 51 Tejun Heo 2007-08-14 00:22:09 UTC
Richard, your problem is different.  It's actually HPA failure.  Care to file a separate bug report under the subject "WDC WD3200JD-00KLB0 fails HPA" and assign it to me?
Comment 52 Richard 2007-08-14 09:54:47 UTC
Tejun, I created http://bugzilla.kernel.org/show_bug.cgi?id=8888 , however, I could not see your name being populated while selecting the problem in order to assign to you.
Comment 53 Tejun Heo 2007-08-15 00:18:19 UTC
Will take 8888.  Thanks.
Comment 54 cwshi 2007-09-11 19:00:59 UTC
Hi,
I apply "pata_via" module to the boot image. 
But Bug #8563 issue(pata_via: Does not work with 2nd drive attached) still
occurs with "pata_via" module.
(http://bugzilla.kernel.org/show_bug.cgi?id=8563)
After patching "pata_via" with patch file "via-setxfer-mess-1.patch(2007-07-02
20:50)", it can work normal with 2nd SATA HDD or ATAPI device.
And there is an extra question. Is this patch file going to check into the
kernel??
Thanks for your help. :)
Comment 55 Tejun Heo 2007-09-27 11:17:36 UTC
Hmmm... The problem should have been solved in mainline kernel now.  Can
you please test the latest -rc kernel and see whether the problem is fixed?
Comment 56 Dan A. Dickey 2007-09-27 11:38:29 UTC
Tejun,
sorry - I can't.
I cannibalized that system mainly for the drives (and it's dvd),
and don't have anything to test possible fixes with at the moment.

At present, the case/motherboard/cpu/ps are sitting on the top of
my ping pong table and will soon be cleared to a shelf.

My main interest in this system was the VIA processor on the MB,
which supposedly had HDTV capabilities.  It perhaps does - I could
never quite determine that.  I recently purchased a new MB which
*does* have HDTV-Out capability (using HDMI no less, but haven't tried
that).  It was much easier to work with than the Via MB.

Close this bug if you like - it's not likely I'll be able to test
it anytime soon.  And thank you very much for your work on this problem!
Comment 57 Tejun Heo 2007-09-27 16:35:22 UTC
I see.  Closing as INSUFFICIENT_DATA.  Thanks.
Comment 58 cwshi 2007-10-02 03:27:05 UTC
Hi Tejun:

I tried the latest -rc kernel (2.6.23-rc8), this issue still occurs.
And I check source code, the patch code seem not build in to kernel 2.6.23-rc8.
Could you help to check it? Thanks.
Comment 59 Dan A. Dickey 2007-10-02 09:05:24 UTC
cwshi,
Read the comments again - the patch was rejected by Alan at comment 37.
Fair enough too, without more information on what the CX700 is doing
I'd say.

If someone could say with certainty that the CX700 handles the speed
setting itself, then perhaps we could patch the driver to not try to
set the speed for CX700's and bypass the error condition altogether.
I don't know enough though to know if this is acceptable.
Tejun or Alan?  Any comments?
Or just let this bug die on the vine... :)
Comment 60 Alan 2007-10-02 09:16:49 UTC
Right now I dont have any good ideas, or any similar examples to try and work from 
Comment 61 Tejun Heo 2007-10-03 18:57:41 UTC
Alan, what do you think about including the original patch with sufficient comment?  It at least makes the machine work although we don't understand what's going on.  I think that's better than the current situation.  Thanks.
Comment 62 Alan 2007-10-04 08:45:10 UTC
Whch patch do you have in mind ?
Comment 63 Tejun Heo 2007-10-04 17:16:59 UTC
VIA_BAD_SLAVE_SETXFER part of the following patch.

 http://bugzilla.kernel.org/attachment.cgi?id=11928&action=view
Comment 64 Alan 2007-10-08 11:07:40 UTC
Really not sure - I don't like it and I'd like to know wtf is actually going on with this specific box
Comment 65 Tejun Heo 2007-10-08 18:19:50 UTC
Yeap, it's a questionable workaround, but it's SATA and transfer shouldn't matter too much.  Coupled with the facts that the alternative is detection failure and we don't know how to proceed further, I think it would be better to include it.
Comment 66 Alan 2007-10-24 06:19:33 UTC
Ok thanks to someone with Fedora and some time it seems that the CX700 does indeed have a problem - specifically with the device mapped to slave (its cable independant). On the 'slave' device the set xfer mode appears to do the right thing then error.

So I've re-opened this and I think the fix is

  if (controller_screwy && xfer_set_failed && identify_says_it_worked)
           OK

Alan
Comment 67 Tejun Heo 2007-10-26 03:29:46 UTC
Are you gonna do the patch?
Comment 68 Pekka Vainio 2007-12-16 11:10:55 UTC
I have the same problem with CX700 on Jetway J7F5M MB.

I'm willing to test or do anything I can to get the problem fixed.
Comment 69 Tejun Heo 2008-01-02 05:26:58 UTC
Created attachment 14263 [details]
improve-setxfer-failure-handling.patch

Please test this patch on top of 2.6.24-rc6 and report kernel boot log.  Thanks.
Comment 70 Tejun Heo 2008-01-07 18:15:35 UTC
Ping.
Comment 71 Peter Eser 2008-01-30 05:59:32 UTC
I have the same problem with CX700M and tested your fix against 2.6.24
but did not help.
Digged down a bit:
jumps to fail: at
        if (err_mask & AC_ERR_DEV) {
		if (!ign_dev_err)
			goto fail;
		else
			dev_err_whine = " (device error ignored)";
 	}

Do not understand err_mask & AC_ERR_DEV
Is there a ~ missing?
err_mask never become set again after first ata_dev_set_xfermode().

Nevertheless ign_dev_err is not set after the tests.

Thanks.
Comment 72 Tejun Heo 2008-01-30 06:21:36 UTC
Yeah, the patch seems to be missing some pieces.  What was I thinking?  :-)  I'll prep another patch.  Thanks.
Comment 73 Tejun Heo 2008-02-06 01:32:20 UTC
Created attachment 14720 [details]
improve-setxfer-failure-handling-1.patch

Please test this one.  The device-configured-properly-anyway logic was inverted.  Thanks.
Comment 74 Oliver Schwartz 2008-02-06 11:37:29 UTC
The latest patch works for me with a Samsung UDMA133 HD on the first SATA channel and a Pioneer UDMA66 DVD on the second. Board is a VIA EX10000.

Output now:
ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0xfc00 irq 14
ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xfc08 irq 15
ata1.00: ATA-7: SAMSUNG HD250HJ, FH100-05, max UDMA7
ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
ata1.01: ATAPI: PIONEER DVD-RW  DVR-212D, 1.24, max UDMA/66
ata1.00: configured for UDMA/133
ata1.01: configured for UDMA/66 (device error ignored)
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HD250HJ  FH10 PQ: 0 ANSI: 5
scsi 0:0:1:0: CD-ROM            PIONEER  DVD-RW  DVR-212D 1.24 PQ: 0 ANSI: 5


I couldn't get this combination to work with the via82cxx driver either, so thanks a lot for helping me to be able to watch DVDs again :-) 

Regards,

Oliver
Comment 75 Tejun Heo 2008-02-06 17:34:29 UTC
Patch posted upstream.  Thanks.