kern/99088: Critical Problems with VIA 8251 SATA2/RAID Controller

Jacobo Saúl Arvelo Estévez unix4all at gulic.org
Sun Jun 18 01:40:19 UTC 2006


>Number:         99088
>Category:       kern
>Synopsis:       Critical Problems with VIA 8251 SATA2/RAID Controller
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 18 01:40:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Jacobo Saúl Arvelo Estévez
>Release:        6.1-RELEASE-p2
>Organization:
Arveste
>Environment:
FreeBSD tyson.arveste.es 6.1-RELEASE-p2 FreeBSD 6.1-RELEASE-p2 #0: Fri Jun 16 13:24:15 WEST 2006     root at tyson.arveste.es:/usr/obj/usr/src/sys/UNIX4ALL  amd64

>Description:
Im having troubles with the via 8251 SATA2/RAID Controller under FreeBSD
6.1/amd64.

I have an ASUS P5V800-MX Mainboard on a server, I make a RAID0
configuration with 2 Maxtor DiamondMax 10 ( SATA II Drives ) of 80gb.

Well, if I put them on master channels ( SATA 1 and SATA 2 connector )
for maximum performance ( Master channels are 3gb, slave channels 1.5 )
I have a lot of DMA TIMEOUT, CRC and a lot of another ata related errors
in the first drive ( ad4, Master of the first SATA channel ), when I put
some load to the disk, then the raid fails and got corrupted ( ar0 )
destroying all the data in the reset of the computer ( RAID BIOS says
that the raid is failed and destroys it ).

But if I put one in master and one in slave ( same channel, ad6 and ad7
for example ) It works perfectly, but, one drive is working at 1.5gb.

Im very sorry about that I can´t give you any log about the kernel
messages when the raid comes down, but I can´t take them because the
raid goes totally corrupted. Another thing is that the controller is
identified as a SATA150 controller when it´s SATA300, the disks too.

Here some info of interest:

######################### DMESG ################################

Copyright (c) 1992-2006 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights
reserved.
FreeBSD 6.1-RELEASE-p2 #0: Fri Jun 16 13:24:15 WEST 2006
    root at tyson.arveste.es:/usr/obj/usr/src/sys/UNIX4ALL
ACPI APIC Table: <A M I  OEMAPIC >
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 3.06GHz (3059.04-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0xf49  Stepping = 9

Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x651d<SSE3,RSVD2,MON,DS_CPL,TM2,CNTX-ID,CX16,<b14>>
  AMD Features=0x20100800<SYSCALL,NX,LM>
  AMD Features2=0x1<LAHF>
real memory  = 1056702464 (1007 MB)
avail memory = 1011818496 (964 MB)
ioapic0 <Version 0.3> irqs 0-23 on motherboard
kbd0 at kbdmux0
acpi0: <A M I OEMXSDT> on motherboard
acpi0: Power Button (fixed)
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
cpu0: <ACPI CPU> on acpi0
acpi_throttle0: <ACPI CPU Throttling> on cpu0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
pci1: <display, VGA> at device 0.0 (no driver attached)
atapci0: <VIA 8251 SATA150 controller> port
0xec00-0xec07,0xe880-0xe883,0xe800-0xe807,0xe480-0xe483,0xe400-0xe40f
mem 0xfbfffc00-0xfbffffff irq 21 at device 15.0 on pci0
ata2: <ATA channel 0> on atapci0
ata3: <ATA channel 1> on atapci0
atapci1: <VIA 8251 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 15.1 on pci0
ata0: <ATA channel 0> on atapci1
ata1: <ATA channel 1> on atapci1
uhci0: <VIA 83C572 USB controller> port 0xe080-0xe09f irq 20 at device
16.0 on pci0
uhci0: [GIANT-LOCKED]
usb0: <VIA 83C572 USB controller> on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <VIA 83C572 USB controller> port 0xe000-0xe01f irq 22 at device
16.1 on pci0
uhci1: [GIANT-LOCKED]
usb1: <VIA 83C572 USB controller> on uhci1
usb1: USB revision 1.0
uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <VIA 83C572 USB controller> port 0xdc00-0xdc1f irq 21 at device
16.2 on pci0
uhci2: [GIANT-LOCKED]
usb2: <VIA 83C572 USB controller> on uhci2
usb2: USB revision 1.0
uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3: <VIA 83C572 USB controller> port 0xd880-0xd89f irq 23 at device
16.3 on pci0
uhci3: [GIANT-LOCKED]
usb3: <VIA 83C572 USB controller> on uhci3
usb3: USB revision 1.0
uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfbfff800-0xfbfff8ff irq 22
at device 16.4 on pci0
ehci0: [GIANT-LOCKED]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: <VIA VT6202 USB 2.0 controller> on ehci0
usb4: USB revision 2.0
uhub4: VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
vr0: <VIA VT6102 Rhine II 10/100BaseTX> port 0xd400-0xd4ff mem
0xfbfff400-0xfbfff4ff irq 23 at device 18.0 on pci0
miibus0: <MII bus> on vr0
rlphy0: <RTL8201L 10/100 media interface> on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
vr0: Ethernet address: 00:15:f2:9a:91:50
pcib2: <ACPI PCI-PCI bridge> at device 19.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 0.0 on pci2
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 0.1 on pci2
pci4: <ACPI PCI bus> on pcib4
pci2: <multimedia> at device 1.0 (no driver attached)
pcib5: <ACPI PCI-PCI bridge> at device 19.1 on pci0
pci5: <ACPI PCI bus> on pcib5
acpi_button0: <Sleep Button> on acpi0
acpi_button1: <Power Button> on acpi0
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2
on acpi0
fdc0: [FAST]
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
ppc0: cannot reserve I/O port range
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on
isa0
Timecounter "TSC" frequency 3059037214 Hz quality 800
Timecounters tick every 1.000 msec
acd0: DVDROM <HL-DT-STDVD-ROM GDR8164B/0L06> at ata0-master UDMA33
ad6: 78167MB <Maxtor 6V080E0 VA111630> at ata3-master SATA150
ad7: 78167MB <Maxtor 6V080E0 VA111630> at ata3-slave SATA150
ar0: 156334MB <VIA Tech V-RAID RAID0 (stripe 64 KB)> status: READY
ar0: disk0 READY using ad6 at ata3-master
ar0: disk1 READY using ad7 at ata3-slave
Trying to mount root from ufs:/dev/ar0s1a

###########################################################################

#################### atacontrol list ###################################

tyson# atacontrol list
ATA channel 0:
    Master: acd0 <HL-DT-STDVD-ROM GDR8164B/0L06> ATA/ATAPI revision 6
    Slave:       no device present
ATA channel 1:
    Master:      no device present
    Slave:       no device present
ATA channel 2:
    Master:      no device present
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <Maxtor 6V080E0/VA111630> Serial ATA II
    Slave:   ad7 <Maxtor 6V080E0/VA111630> Serial ATA II
tyson#

##########################################################################

ASUS P5V800-MX with latest BIOS
HDDs checked in another computer for good status

##########################################################################
>How-To-Repeat:
Use RAID on VIA 8251 SATAII/RAID Controller with 2 SATA Drives connected on SATA1 and SATA2 Connector ( Master of both channels ) and see how the RAID crash when the server puts loads on the disks.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list