Subject: kern/35314: VIA VT8237A ATA controller not detected properly
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ndehne@gmail.com>
List: netbsd-bugs
Date: 12/23/2006 17:40:00
>Number:         35314
>Category:       kern
>Synopsis:       VIA VT8237A ATA controller not detected properly
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 23 17:40:00 +0000 2006
>Originator:     Nino Dehne
>Release:        4.0_BETA2
>Organization:
>Environment:
NetBSD [...] 4.0_BETA2 NetBSD 4.0_BETA2 (CHARON.MPACPI-2006122201) #0: Fri Dec 22 07:43:02 CET 2006  root@[...]:/tmp/charon/tmp/src/n/netbsd-4/src/sys/arch/i386/compile/CHARON.MPACPI i386

>Description:
The onboard ATA controller on a http://www.asrock.com/product/ALiveSATA2-GLAN.htm is detected as:

# dmesg
[...]
viaide0 at pci0 dev 15 function 1
viaide0: VIA Technologies unknown VIA ATA controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at viaide0 channel 1
[...]
wd1 at atabus0 drive 0: <ST3320620A>
wd1: quirks 2<FORCE_LBA48>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0 at atabus0 drive 1: <ST3320620A>
wd0: quirks 2<FORCE_LBA48>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 298 GB, 620181 cyl, 16 head, 63 sec, 512 bytes/sect x 625142448 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(viaide0:0:0): using PIO mode 4, DMA mode 2 (using DMA)
                                    ^^^^^^^^^^
wd0(viaide0:0:1): using PIO mode 4, DMA mode 2 (using DMA)
[...]

# pcictl pci0 list
000:00:0: VIA Technologies product 0x0351 (host bridge)
000:00:1: VIA Technologies product 0x1351 (host bridge)
000:00:2: VIA Technologies product 0x2351 (host bridge)
000:00:3: VIA Technologies product 0x3351 (host bridge)
000:00:4: VIA Technologies product 0x4351 (host bridge)
000:00:5: VIA Technologies product 0x5351 (interrupt system, interface 0x20)
000:00:7: VIA Technologies product 0x7351 (host bridge)
000:01:0: VIA Technologies product 0xb999 (PCI bridge)
000:02:0: VIA Technologies product 0xa238 (PCI bridge)
000:03:0: VIA Technologies product 0xc238 (PCI bridge)
000:03:1: VIA Technologies product 0xd238 (PCI bridge)
000:03:2: VIA Technologies product 0xe238 (PCI bridge)
000:03:3: VIA Technologies product 0xf238 (PCI bridge)
000:10:0: Triones Technologies HPT371 IDE Controller (RAID mass storage, revision 0x01)
000:15:0: VIA Technologies product 0x0591 (IDE mass storage, interface 0x8f, revision 0x80)
000:15:1: VIA Technologies VT82C586A IDE Controller (IDE mass storage, interface 0x8a, revision 0x07)
000:16:0: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0xa0)
000:16:1: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0xa0)
000:16:2: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0xa0)
000:16:3: VIA Technologies VT83C572 USB Controller (USB serial bus, revision 0xa0)
000:16:4: VIA Technologies VT8237 EHCI USB Controller (USB serial bus, interface 0x20, revision 0x86)
000:17:0: VIA Technologies product 0x3337 (ISA bridge)
000:17:7: VIA Technologies product 0x287e (host bridge)
000:19:0: VIA Technologies product 0x337b (host bridge)
000:24:0: Advanced Micro Devices AMD64 HyperTransport configuration (host bridge)
000:24:1: Advanced Micro Devices AMD64 Address Map configuration (host bridge)
000:24:2: Advanced Micro Devices AMD64 DRAM configuration (host bridge)
000:24:3: Advanced Micro Devices AMD64 Miscellaneous configuration (host bridge)

Missing Ultra-DMA limits throughput to about 15MB/s.
>How-To-Repeat:

>Fix:
Yes, please.