NetBSD Problem Report #43309

From www@NetBSD.org  Sat May 15 00:23:34 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 3154563B9E6
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 15 May 2010 00:23:34 +0000 (UTC)
Message-Id: <20100515002333.B27D563B898@www.NetBSD.org>
Date: Sat, 15 May 2010 00:23:33 +0000 (UTC)
From: vezhlys@gmail.com
Reply-To: vezhlys@gmail.com
To: gnats-bugs@NetBSD.org
Subject: VX800 and CN896-VT8237S is not configured in RAID mode
X-Send-Pr-Version: www-1.0

>Number:         43309
>Category:       kern
>Synopsis:       VX800 and CN896-VT8237S is not configured in RAID mode
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    jdolecek
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 15 00:25:00 +0000 2010
>Closed-Date:    Sun Jun 02 14:49:42 +0000 2019
>Last-Modified:  Sun Jun 02 14:50:01 +0000 2019
>Originator:     Andrius Varanavicius
>Release:        5.1_RC1
>Organization:
>Environment:
>Description:
I have two motherboards with VIA CPUs and chipsets - Jetway JNF76-N1G-LF P (1GHz VIA Nano U2300, VX800) and VIA VB8001 (VIA Nano L2200 1.6GHz, CN896-VT8237S). If RAID mode is set in BIOS both can't detect hard drives during install. Hard drives are detected ok if IDE mode is set.


JNF76 dmesg:
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.1_RC1 (INSTALL) #0: Sat Apr 24 19:17:40 UTC 2010
	builds@b8.netbsd.org:/home/builds/ab/netbsd-5-1-RC1/amd64/201004250032Z-obj/home/builds/ab/netbsd-5-1-RC1/src/sys/arch/amd64/compile/INSTALL
total memory = 1981 MB
avail memory = 1901 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
SMBIOS rev. 2.5 @ 0xf0000 (32 entries)
VIA Technologies Ltd. VX800  (1.0)
mainbus0 (root)
cpu0 at mainbus0 apid 0: IDT/VIA 686-class, 997MHz, id 0x6f2
cpu0: Enhanced SpeedStep (860 mV) 1500 MHz
cpu0: Enhanced SpeedStep frequencies available (MHz): 1500 1400 1300 1200 1100 1000 900 800
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 3, 24 pins
ioapic1 at mainbus0 apid 3: pa 0xfecc0000, version 3, 24 pins
acpi0 at mainbus0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <VX800 ,AWRDACPI,42302e31>, AslId <AWRD,00000000>
ACPI Error (dsobject-0590): Package List length larger than NumElements count (2), truncated
 [20080321]
ACPI Error (dsobject-0590): Package List length larger than NumElements count (2), truncated
 [20080321]
ACPI Error (dsobject-0590): Package List length larger than NumElements count (2), truncated
 [20080321]
acpi0: SCI interrupting at int 11
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
hpet0 at acpi0 (HPET, PNP0103): mem 0xfe800000-0xfe8003ff irq 0,8
timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
UAR1 (PNP0501) at acpi0 not configured
UAR2 (PNP0501) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
UAR3 (PNP0501) at acpi0 not configured
UAR4 (PNP0501) at acpi0 not configured
FAN (PNP0C0B) at acpi0 not configured
acpitz0 at acpi0 (THRM): active cooling level 0: 68.0C critical 70.0C passive 40.0C
attimer1: attached to pcppi1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1106 product 0x0353 (rev. 0x12)
pchb1 at pci0 dev 0 function 1
pchb1: vendor 0x1106 product 0x1353 (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: vendor 0x1106 product 0x2353 (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: vendor 0x1106 product 0x3353 (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: vendor 0x1106 product 0x4353 (rev. 0x00)
vendor 0x1106 product 0x5353 (interrupt system, interface 0x20) at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 6
pchb5: vendor 0x1106 product 0x6353 (rev. 0x00)
pchb6 at pci0 dev 0 function 7
pchb6: vendor 0x1106 product 0x7353 (rev. 0x00)
vga0 at pci0 dev 1 function 0: vendor 0x1106 product 0x1122 (rev. 0x11)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
ppb0 at pci0 dev 2 function 0: vendor 0x1106 product 0xc353 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 3 function 0: vendor 0x1106 product 0xe353 (rev. 0x00)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
re0 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (rev. 0x02)
re0: interrupting at ioapic1 pin 7
re0: Ethernet address 00:30:18:a5:e7:74
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 2
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb2 at pci0 dev 3 function 1: vendor 0x1106 product 0xf353 (rev. 0x00)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies unknown VIA ATA controller
viaide0: bus-master DMA support present
viaide0: primary channel wired to compatibility mode
viaide0: primary channel interrupting at ioapic0 pin 14
atabus0 at viaide0 channel 0
viaide0: secondary channel wired to compatibility mode
viaide0: secondary channel interrupting at ioapic0 pin 15
atabus1 at viaide0 channel 1
uhci0 at pci0 dev 16 function 0: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci0: interrupting at ioapic0 pin 20
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 16 function 1: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci1: interrupting at ioapic0 pin 22
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 16 function 2: vendor 0x1106 product 0x3038 (rev. 0xa0)
uhci2: interrupting at ioapic0 pin 21
usb2 at uhci2: USB revision 1.0
ehci0 at pci0 dev 16 function 4: vendor 0x1106 product 0x3104 (rev. 0x90)
ehci0: interrupting at ioapic0 pin 23
ehci0: dropped intr workaround enabled
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
usb3 at ehci0: USB revision 2.0
pcib0 at pci0 dev 17 function 0
pcib0: vendor 0x1106 product 0x8353 (rev. 0x00)
pchb7 at pci0 dev 17 function 7
pchb7: vendor 0x1106 product 0xa353 (rev. 0x00)
ppb3 at pci0 dev 19 function 0: vendor 0x1106 product 0xb353 (rev. 0x00)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled
wm0 at pci4 dev 3 function 0: Intel i82541PI 1000BASE-T Ethernet, rev. 5
wm0: interrupting at ioapic0 pin 9
wm0: 32-bit 33MHz PCI bus
wm0: 64 word (6 address bits) MicroWire EEPROM
wm0: Ethernet address 00:1b:21:51:e7:24
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ppb4 at pci4 dev 7 function 0: vendor 0x11ab product 0x2211 (rev. 0x01)
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled
vendor 0x11ab product 0x6145 (SATA mass storage, interface 0x8f, revision 0xa1) at pci5 dev 0 function 0 not configured
azalia0 at pci0 dev 20 function 0: Generic High Definition Audio Controller
azalia0: interrupting at ioapic0 pin 17
azalia0: host: 0x1106/0x3288 (rev. 32), HDA rev. 1.0
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: 0x1106/0xe721 (rev. 1.0), HDA rev. 1.0
audio0 at azalia0: full duplex, playback, capture, independent
uhub0 at usb0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: vendor 0x1106 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub3: 6 ports with 6 removable, self powered
umass0 at uhub3 port 3 configuration 1 interface 0
umass0: USBest Technology USB Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <4096MB, flash drive, 1.0> disk removable
sd0: 3856 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 7897088 sectors
umass1 at uhub3 port 5 configuration 1 interface 0
umass1: vendor 0x13fe Patriot Memory, rev 2.00/1.10, addr 3
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: <, Patriot Memory, PMAP> disk removable
sd1: 15272 MB, 30544 cyl, 32 head, 32 sec, 512 bytes/sect x 31277056 sectors
Kernelized RAIDframe activated
md0: internal 5000 KB image area
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: sd0
root on md0a dumps on md0b
root file system type: ffs
WARNING: clock gained 20 days
WARNING: CHECK AND RESET THE DATE!
warning: no /dev/console

VB8001 dmesg:
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.1_RC1 (INSTALL) #0: Sat Apr 24 19:17:40 UTC 2010
	builds@b8.netbsd.org:/home/builds/ab/netbsd-5-1-RC1/amd64/201004250032Z-obj/home/builds/ab/netbsd-5-1-RC1/src/sys/arch/amd64/compile/INSTALL
total memory = 3006 MB
avail memory = 2895 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
SMBIOS rev. 2.3 @ 0xf0000 (30 entries)
VIA Technologies Ltd. CN896-8237S (1.0)
mainbus0 (root)
cpu0 at mainbus0 apid 0: IDT/VIA 686-class, 1615MHz, id 0x6f2
cpu0: Enhanced SpeedStep (1116 mV) 1600 MHz
cpu0: Enhanced SpeedStep frequencies available (MHz): 1600 1500 1400 1300 1200 1100 1000 900 800
ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 3, 24 pins
ioapic1 at mainbus0 apid 3: pa 0xfecc0000, version 3, 24 pins
acpi0 at mainbus0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <CN896 ,AWRDACPI,42302e31>, AslId <AWRD,00000000>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
ACPI-Fast 24-bit timer
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
UAR1 (PNP0501) at acpi0 not configured
UAR2 (PNP0501) at acpi0 not configured
pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
attimer1: attached to pcppi1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1106 product 0x0364 (rev. 0x00)
agp0 at pchb0 (v3): aperture at 0xd0000000, size 0x10000000
pchb1 at pci0 dev 0 function 1
pchb1: vendor 0x1106 product 0x1364 (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: vendor 0x1106 product 0x2364 (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: vendor 0x1106 product 0x3364 (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: vendor 0x1106 product 0x4364 (rev. 0x00)
vendor 0x1106 product 0x5364 (interrupt system, interface 0x20) at pci0 dev 0 function 5 not configured
pchb5 at pci0 dev 0 function 6
pchb5: vendor 0x1106 product 0x6364 (rev. 0x00)
pchb6 at pci0 dev 0 function 7
pchb6: vendor 0x1106 product 0x7364 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0xb198 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
ppb1 at pci0 dev 2 function 0: vendor 0x1106 product 0xa364 (rev. 0x80)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
vga0 at pci2 dev 0 function 0: vendor 0x1002 product 0x9498 (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga0 not configured
azalia0 at pci2 dev 0 function 1: Generic High Definition Audio Controller
azalia0: interrupting at ioapic1 pin 3
azalia0: host: 0x1002/0xaa38 (rev. 0), HDA rev. 1.0
ppb2 at pci0 dev 3 function 0: vendor 0x1106 product 0xc364 (rev. 0x80)
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
vge0 at pci3 dev 0 function 0: VIA VT612X Gigabit Ethernet (rev. 0x82)
vge0: interrupting at ioapic1 pin 7
vge0: Ethernet address: 00:40:63:fa:81:d5
ukphy0 at vge0 phy 22: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0009c3, model 0x0019, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
pci_mem_find: expected type mem, found i/o
vendor 0x1106 product 0x7372 (RAID mass storage) at pci0 dev 15 function 0 not configured
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
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
uhci0 at pci0 dev 16 function 0: vendor 0x1106 product 0x3038 (rev. 0xb0)
uhci0: interrupting at ioapic0 pin 20
usb0 at uhci0: USB revision 1.0
uhci1 at pci0 dev 16 function 1: vendor 0x1106 product 0x3038 (rev. 0xb0)
uhci1: interrupting at ioapic0 pin 22
usb1 at uhci1: USB revision 1.0
uhci2 at pci0 dev 16 function 2: vendor 0x1106 product 0x3038 (rev. 0xb0)
uhci2: interrupting at ioapic0 pin 21
usb2 at uhci2: USB revision 1.0
uhci3 at pci0 dev 16 function 3: vendor 0x1106 product 0x3038 (rev. 0xb0)
uhci3: interrupting at ioapic0 pin 23
usb3 at uhci3: USB revision 1.0
ehci0 at pci0 dev 16 function 4: vendor 0x1106 product 0x3104 (rev. 0x90)
ehci0: interrupting at ioapic0 pin 21
ehci0: dropped intr workaround enabled
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
pcib0 at pci0 dev 17 function 0
pcib0: vendor 0x1106 product 0x3372 (rev. 0x00)
pchb7 at pci0 dev 17 function 7
pchb7: vendor 0x1106 product 0x287e (rev. 0x00)
pchb8 at pci0 dev 19 function 0
pchb8: vendor 0x1106 product 0x337b (rev. 0x00)
ppb3 at pci0 dev 19 function 1: vendor 0x1106 product 0x337a (rev. 0x00)
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
pci5 at mainbus0 bus 128
pci5: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
azalia1 at pci5 dev 1 function 0: Generic High Definition Audio Controller
azalia1: interrupting at ioapic0 pin 17
azalia1: host: 0x1106/0x3288 (rev. 16), HDA rev. 1.0
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
azalia0: codec[0]: ATI R600 HDMI (rev. 1.0), HDA rev. 1.0
audio0 at azalia0: full duplex, playback, capture, independent
azalia1: codec[0]: 0x1106/0x1708 (rev. 7.0), HDA rev. 1.0
audio1 at azalia1: full duplex, playback, capture, independent
uhub0 at usb0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at usb1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhub2 at usb2: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb3: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
uhub4 at usb4: vendor 0x1106 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
umass0 at uhub4 port 1 configuration 1 interface 0
umass0: USBest Technology USB Mass Storage Device, rev 2.00/1.00, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <4096MB, flash drive, 1.0> disk removable
sd0: 3856 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 7897088 sectors
ugen0 at uhub0 port 2
ugen0: vendor 0x0c45 USB camera, rev 1.10/1.01, addr 2
Kernelized RAIDframe activated
md0: internal 5000 KB image area
pad0: outputs: 44100Hz, 16-bit, stereo
audio2 at pad0: half duplex, playback, capture
boot device: sd0
root on md0a dumps on md0b
root file system type: ffs
WARNING: clock gained 20 days
WARNING: CHECK AND RESET THE DATE!
warning: no /dev/console
ulpt0 at uhub2 port 1 configuration 1 interface 1
ulpt0: HP PSC 2350 series, rev 2.00/1.00, addr 2, iclass 7/1
ulpt0: using bi-directional mode
umass1 at uhub2 port 1 configuration 1 interface 3
umass1: HP PSC 2350 series, rev 2.00/1.00, addr 2
umass1: using SCSI over Bulk-Only
scsibus1 at umass1: 2 targets, 1 lun per target
sd1 at scsibus1 target 0 lun 0: <HP, PSC 2355, 1.00> disk removable
sd1: drive offline
sd1(umass1:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
    SENSE KEY:  Not Ready
     ASC/ASCQ:  Medium Not Present

sd1: unable to open device, error = 19
uhidev0 at uhub2 port 2 configuration 1 interface 0
uhidev0: Logitech USB Optical Mouse, rev 2.00/27.20, addr 3, iclass 3/1
ums0 at uhidev0: 8 buttons, W and Z dirs
wsmouse0 at ums0 mux 0

>How-To-Repeat:
Set RAID mode in BIOS and boot.
>Fix:
Set IDE mode in BIOS.

>Release-Note:

>Audit-Trail:
From: Andrius V <vezhlys@gmail.com>
To: port-amd64-maintainer@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org, gnats-bugs@netbsd.org
Cc: 
Subject: Re: port-amd64/43309: VX800 and CN896-VT8237S is not configured in
 RAID mode
Date: Tue, 28 May 2019 03:21:33 +0300

 Hi,

 Since I still use VX800 based system, I decided to RAID/IDE support
 again. It appeared support for VX800 had been never implemented in
 NetBSD. So I decided to look at FreeBSD driver and test a bit. I
 managed to make some fixes which apparently allows to recognized SATA
 drives in RAID mode and use UDMA on IDE mode (it appeared that
 recognized drives were working on DMA mode 2 only). I am still getting
 messages below though in dmesg:

 viaide1: autoconfiguration error: couldn't map SATA regs
 viaide1: bus-master DMA support present, but unused (couldn't map registers=
 )
 viaide1: autoconfiguration error: couldn't map native-PCI interrupt

 Also added VX855 IDE ID from FreeBSD. VT8237S_SATA_2 ID is taken from
 dmesg in my bug report (plus confirmed in FreeBSD, Linux, though
 naming is confused between systems), but I don't have these systems to
 test.

 I guess fix is not ideal, still having autoconfiguration errors,
 didn't test anything beyond disk recognition but possibly worth to
 add? If somebody can help to improve as well, I can test it anytime.
 Thanks.

 --- a/sys/dev/pci/pcidevs
 +++ b/sys/dev/pci/pcidevs
 @@ -7692,6 +7692,7 @@ product VIATECH VT8237A_SATA_2    0x5337
 VT8237A Integrated SATA Controller
  product VIATECH VT3351_IOAPIC  0x5351  VT3351 I/O APIC Interrupt Controlle=
 r
  product VIATECH P4M900_IOAPIC  0x5364  CN896/P4M900 IOAPIC
  product VIATECH VT8237S_SATA   0x5372  VT8237S Integrated SATA Controller
 +product VIATECH VT8237S_SATA_2 0x7372  VT8237S Integrated SATA Controller
  product VIATECH VT86C100A      0x6100  VT86C100A (Rhine-II) 10/100 Etherne=
 t
  product VIATECH VT8251_SATA    0x6287  VT8251 Integrated SATA Controller
  product VIATECH P4M900_6       0x6364  CN896/P4M900 Security Device
 @@ -7704,6 +7705,7 @@ product VIATECH VT8231_PWR        0x8235  VT8231
 Power Management Controller
  product VIATECH VT8363_PPB     0x8305  VT8363 (Apollo KT133) PCI to AGP Br=
 idge
  product VIATECH CX700          0x8324  CX700 PCI-LPC Bridge
  product VIATECH VX800          0x8353  VX800/VX820 PCI-LPC Bridge
 +product VIATECH VX855          0x8409  VX855  PCI-LPC Bridge
  product VIATECH VT8371_PPB     0x8391  VT8371 (Apollo KX133) PCI-PCI Bridg=
 e
  product VIATECH VT8501AGP      0x8501  VT8501 (Apollo MVP4) CPU-AGP Bridge
  product VIATECH VT82C597AGP    0x8597  VT82C597 (Apollo VP3) CPU-AGP Bridg=
 e

 --- a/sys/dev/pci/viaide.c
 +++ b/sys/dev/pci/viaide.c
 @@ -309,6 +309,11 @@ static const struct pciide_product_desc
 pciide_via_products[] =3D  {
           NULL,
           via_chip_map,
         },
 +       { PCI_PRODUCT_VIATECH_VX800,
 +         0,
 +         "VIA Technologies VX800 SATA Controller",
 +         via_sata_chip_map_new,
 +       },
         { PCI_PRODUCT_VIATECH_VX900_IDE,
           0,
           NULL,
 @@ -349,6 +354,11 @@ static const struct pciide_product_desc
 pciide_via_products[] =3D  {
           "VIA Technologies VT8237S SATA Controller",
           via_sata_chip_map_7,
         },
 +       { PCI_PRODUCT_VIATECH_VT8237S_SATA_2,
 +         0,
 +         "VIA Technologies VT8237S SATA Controller",
 +         via_sata_chip_map_7,
 +       },
         { 0,
           0,
           NULL,
 @@ -546,6 +556,14 @@ via_chip_map(struct pciide_softc *sc, const
 struct pci_attach_args *pa)
                                 aprint_normal("VT8251 ATA133 controller\n")=
 ;
                                 sc->sc_wdcdev.sc_atac.atac_udma_cap =3D 6;
                                 break;
 +                       case PCI_PRODUCT_VIATECH_VX800:
 +                               aprint_normal("VX800 ATA133 controller\n");
 +                               sc->sc_wdcdev.sc_atac.atac_udma_cap =3D 6;
 +                               break;
 +                       case PCI_PRODUCT_VIATECH_VX855:
 +                               aprint_normal("VX855 ATA133 controller\n");
 +                               sc->sc_wdcdev.sc_atac.atac_udma_cap =3D 6;
 +                               break;
                         default:
                 unknown:
                                 aprint_normal("unknown VIA ATA controller\n=
 ");


 Changes in dmesg (IDE mode):
 viaide0 at pci0 dev 15 function 0
 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
 atabus0 at viaide0 channel 0
 viaide0: secondary channel configured to compatibility mode
 viaide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at viaide0 channel 1
 ...
 pcib0 at pci0 dev 17 function 0: vendor 1106 product 8353 (rev. 0x00)
 ...
 wd0(viaide0:0:0): using PIO mode 4, DMA mode 2 (using DMA), WRITE DMA FUA E=
 XT
 wd1(viaide0:0:1): using PIO mode 4, DMA mode 2 (using DMA), WRITE DMA FUA E=
 XT

 became:

 viaide0 at pci0 dev 15 function 0
 viaide0: VIA Technologies VX800 ATA133 controller
 viaide0: bus-master DMA support present
 viaide0: primary channel configured to compatibility mode
 viaide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel configured to compatibility mode
 viaide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at viaide0 channel 1
 ...
 viaide1 at pci0 dev 17 function 0: VIA Technologies VX800 SATA
 Controller (rev. 0x00)
 viaide1: autoconfiguration error: couldn't map SATA regs
 viaide1: bus-master DMA support present, but unused (couldn't map registers=
 )
 viaide1: autoconfiguration error: couldn't map native-PCI interrupt
 ...
 wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133)
 (using DMA), WRITE DMA FUA EXT
 wd1(viaide0:0:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133)
 (using DMA), WRITE DMA FUA EXT

 Changes in dmesg (RAID mode):

 iaide0 at pci0 dev 15 function 0
 viaide0: VIA Technologies unknown VIA ATA controller
 viaide0: bus-master DMA support present
 viaide0: primary channel wired to compatibility mode
 viaide0: primary channel interrupting at ioapic0 pin 14
 atabus0 at viaide0 channel 0
 viaide0: secondary channel wired to compatibility mode
 viaide0: secondary channel interrupting at ioapic0 pin 15
 atabus1 at viaide0 channel 1
 ...
 pcib0 at pci0 dev 17 function 0: vendor 1106 product 8353 (rev. 0x00)

 became
 viaide0 at pci0 dev 15 function 0
 viaide0: autoconfiguration error: couldn't map SATA regs
 viaide0: bus-master DMA support present
 viaide0: using ioapic0 pin 21 for native-PCI interrupt
 atabus0 at viaide0 channel 0
 atabus1 at viaide0 channel 1
 atabus2 at viaide0 channel 2
 ...
 viaide1 at pci0 dev 17 function 0: VIA Technologies VX800 SATA
 Controller (rev. 0x00)
 viaide1: autoconfiguration error: couldn't map SATA regs
 viaide1: bus-master DMA support present, but unused (couldn't map registers=
 )
 viaide1: autoconfiguration error: couldn't map native-PCI interrupt
 ...
 wd0 at atabus0 drive 0
 wd0: <ST3000DM001-1CH166>
 wd0: drive supports 16-sector PIO transfers, LBA48 addressing
 wd0: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sec=
 tors
 ...
 wd0: GPT GUID: 3954a983-ae2c-44b4-929a-a6f25b77cd1b
 dk0 at wd0: "primary", 5860530176 blocks at 2048, type: ntfs
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6
 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
 wd1 at atabus0 drive 1
 wd1: <TOSHIBA DT01ACA300>
 wd1: drive supports 16-sector PIO transfers, LBA48 addressing
 wd1: 2794 GB, 5814021 cyl, 16 head, 63 sec, 512 bytes/sect x 5860533168 sec=
 tors
 wd1: 32-bit data port
 wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6
 (Ultra/133), WRITE DMA FUA, NCQ (32 tags) w/PRIO
 wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133)
 (using DMA), WRITE DMA FUA EXT
 wd1(viaide0:0:1): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133)
 (using DMA), WRITE DMA FUA EXT

 On Sat, May 15, 2010 at 3:25 AM <vezhlys@gmail.com> wrote:
 >
 > >Number:         43309
 > >Category:       port-amd64
 > >Synopsis:       VX800 and CN896-VT8237S is not configured in RAID mode
 > >Confidential:   no
 > >Severity:       serious
 > >Priority:       low
 > >Responsible:    port-amd64-maintainer
 > >State:          open
 > >Class:          sw-bug
 > >Submitter-Id:   net
 > >Arrival-Date:   Sat May 15 00:25:00 +0000 2010
 > >Originator:     Andrius Varanavicius
 > >Release:        5.1_RC1
 > >Organization:
 > >Environment:
 > >Description:
 > I have two motherboards with VIA CPUs and chipsets - Jetway JNF76-N1G-LF =
 P (1GHz VIA Nano U2300, VX800) and VIA VB8001 (VIA Nano L2200 1.6GHz, CN896=
 -VT8237S). If RAID mode is set in BIOS both can't detect hard drives during=
  install. Hard drives are detected ok if IDE mode is set.
 >
 >
 > JNF76 dmesg:
 > Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 >     2006, 2007, 2008, 2009
 >     The NetBSD Foundation, Inc.  All rights reserved.
 > Copyright (c) 1982, 1986, 1989, 1991, 1993
 >     The Regents of the University of California.  All rights reserved.
 >
 > NetBSD 5.1_RC1 (INSTALL) #0: Sat Apr 24 19:17:40 UTC 2010
 >         builds@b8.netbsd.org:/home/builds/ab/netbsd-5-1-RC1/amd64/2010042=
 50032Z-obj/home/builds/ab/netbsd-5-1-RC1/src/sys/arch/amd64/compile/INSTALL
 > total memory =3D 1981 MB
 > avail memory =3D 1901 MB
 > timecounter: Timecounters tick every 10.000 msec
 > timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 > SMBIOS rev. 2.5 @ 0xf0000 (32 entries)
 > VIA Technologies Ltd. VX800  (1.0)
 > mainbus0 (root)
 > cpu0 at mainbus0 apid 0: IDT/VIA 686-class, 997MHz, id 0x6f2
 > cpu0: Enhanced SpeedStep (860 mV) 1500 MHz
 > cpu0: Enhanced SpeedStep frequencies available (MHz): 1500 1400 1300 1200=
  1100 1000 900 800
 > ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 3, 24 pins
 > ioapic1 at mainbus0 apid 3: pa 0xfecc0000, version 3, 24 pins
 > acpi0 at mainbus0: Intel ACPICA 20080321
 > acpi0: X/RSDT: OemId <VX800 ,AWRDACPI,42302e31>, AslId <AWRD,00000000>
 > ACPI Error (dsobject-0590): Package List length larger than NumElements c=
 ount (2), truncated
 >  [20080321]
 > ACPI Error (dsobject-0590): Package List length larger than NumElements c=
 ount (2), truncated
 >  [20080321]
 > ACPI Error (dsobject-0590): Package List length larger than NumElements c=
 ount (2), truncated
 >  [20080321]
 > acpi0: SCI interrupting at int 11
 > acpi0: fixed-feature power button present
 > timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 > ACPI-Fast 24-bit timer
 > acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
 > attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43
 > hpet0 at acpi0 (HPET, PNP0103): mem 0xfe800000-0xfe8003ff irq 0,8
 > timecounter: Timecounter "hpet0" frequency 14318179 Hz quality 2000
 > pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 > midi0 at pcppi1: PC speaker (CPU-intensive output)
 > sysbeep0 at pcppi1
 > UAR1 (PNP0501) at acpi0 not configured
 > UAR2 (PNP0501) at acpi0 not configured
 > pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
 > UAR3 (PNP0501) at acpi0 not configured
 > UAR4 (PNP0501) at acpi0 not configured
 > FAN (PNP0C0B) at acpi0 not configured
 > acpitz0 at acpi0 (THRM): active cooling level 0: 68.0C critical 70.0C pas=
 sive 40.0C
 > attimer1: attached to pcppi1
 > pckbd0 at pckbc1 (kbd slot)
 > pckbc1: using irq 1 for kbd slot
 > wskbd0 at pckbd0: console keyboard
 > pci0 at mainbus0 bus 0: configuration mode 1
 > pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 > pchb0 at pci0 dev 0 function 0
 > pchb0: vendor 0x1106 product 0x0353 (rev. 0x12)
 > pchb1 at pci0 dev 0 function 1
 > pchb1: vendor 0x1106 product 0x1353 (rev. 0x00)
 > pchb2 at pci0 dev 0 function 2
 > pchb2: vendor 0x1106 product 0x2353 (rev. 0x00)
 > pchb3 at pci0 dev 0 function 3
 > pchb3: vendor 0x1106 product 0x3353 (rev. 0x00)
 > pchb4 at pci0 dev 0 function 4
 > pchb4: vendor 0x1106 product 0x4353 (rev. 0x00)
 > vendor 0x1106 product 0x5353 (interrupt system, interface 0x20) at pci0 d=
 ev 0 function 5 not configured
 > pchb5 at pci0 dev 0 function 6
 > pchb5: vendor 0x1106 product 0x6353 (rev. 0x00)
 > pchb6 at pci0 dev 0 function 7
 > pchb6: vendor 0x1106 product 0x7353 (rev. 0x00)
 > vga0 at pci0 dev 1 function 0: vendor 0x1106 product 0x1122 (rev. 0x11)
 > wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskb=
 d0
 > wsmux1: connecting to wsdisplay0
 > drm at vga0 not configured
 > ppb0 at pci0 dev 2 function 0: vendor 0x1106 product 0xc353 (rev. 0x00)
 > pci1 at ppb0 bus 1
 > pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 > ppb1 at pci0 dev 3 function 0: vendor 0x1106 product 0xe353 (rev. 0x00)
 > pci2 at ppb1 bus 2
 > pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 > re0 at pci2 dev 0 function 0: RealTek 8168/8111 PCIe Gigabit Ethernet (re=
 v. 0x02)
 > re0: interrupting at ioapic1 pin 7
 > re0: Ethernet address 00:30:18:a5:e7:74
 > re0: using 256 tx descriptors
 > rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev=
 . 2
 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000b=
 aseT-FDX, auto
 > ppb2 at pci0 dev 3 function 1: vendor 0x1106 product 0xf353 (rev. 0x00)
 > pci3 at ppb2 bus 3
 > pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 > viaide0 at pci0 dev 15 function 0
 > viaide0: VIA Technologies unknown VIA ATA controller
 > viaide0: bus-master DMA support present
 > viaide0: primary channel wired to compatibility mode
 > viaide0: primary channel interrupting at ioapic0 pin 14
 > atabus0 at viaide0 channel 0
 > viaide0: secondary channel wired to compatibility mode
 > viaide0: secondary channel interrupting at ioapic0 pin 15
 > atabus1 at viaide0 channel 1
 > uhci0 at pci0 dev 16 function 0: vendor 0x1106 product 0x3038 (rev. 0xa0)
 > uhci0: interrupting at ioapic0 pin 20
 > usb0 at uhci0: USB revision 1.0
 > uhci1 at pci0 dev 16 function 1: vendor 0x1106 product 0x3038 (rev. 0xa0)
 > uhci1: interrupting at ioapic0 pin 22
 > usb1 at uhci1: USB revision 1.0
 > uhci2 at pci0 dev 16 function 2: vendor 0x1106 product 0x3038 (rev. 0xa0)
 > uhci2: interrupting at ioapic0 pin 21
 > usb2 at uhci2: USB revision 1.0
 > ehci0 at pci0 dev 16 function 4: vendor 0x1106 product 0x3104 (rev. 0x90)
 > ehci0: interrupting at ioapic0 pin 23
 > ehci0: dropped intr workaround enabled
 > ehci0: EHCI version 1.0
 > ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2
 > usb3 at ehci0: USB revision 2.0
 > pcib0 at pci0 dev 17 function 0
 > pcib0: vendor 0x1106 product 0x8353 (rev. 0x00)
 > pchb7 at pci0 dev 17 function 7
 > pchb7: vendor 0x1106 product 0xa353 (rev. 0x00)
 > ppb3 at pci0 dev 19 function 0: vendor 0x1106 product 0xb353 (rev. 0x00)
 > pci4 at ppb3 bus 4
 > pci4: i/o space, memory space enabled
 > wm0 at pci4 dev 3 function 0: Intel i82541PI 1000BASE-T Ethernet, rev. 5
 > wm0: interrupting at ioapic0 pin 9
 > wm0: 32-bit 33MHz PCI bus
 > wm0: 64 word (6 address bits) MicroWire EEPROM
 > wm0: Ethernet address 00:1b:21:51:e7:24
 > igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
 > igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000ba=
 seT-FDX, auto
 > ppb4 at pci4 dev 7 function 0: vendor 0x11ab product 0x2211 (rev. 0x01)
 > pci5 at ppb4 bus 5
 > pci5: i/o space, memory space enabled
 > vendor 0x11ab product 0x6145 (SATA mass storage, interface 0x8f, revision=
  0xa1) at pci5 dev 0 function 0 not configured
 > azalia0 at pci0 dev 20 function 0: Generic High Definition Audio Controll=
 er
 > azalia0: interrupting at ioapic0 pin 17
 > azalia0: host: 0x1106/0x3288 (rev. 32), HDA rev. 1.0
 > isa0 at pcib0
 > com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 > com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 > timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 > azalia0: codec[0]: 0x1106/0xe721 (rev. 1.0), HDA rev. 1.0
 > audio0 at azalia0: full duplex, playback, capture, independent
 > uhub0 at usb0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub0: 2 ports with 2 removable, self powered
 > uhub1 at usb1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub1: 2 ports with 2 removable, self powered
 > uhub2 at usb2: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub2: 2 ports with 2 removable, self powered
 > uhub3 at usb3: vendor 0x1106 EHCI root hub, class 9/0, rev 2.00/1.00, add=
 r 1
 > uhub3: 6 ports with 6 removable, self powered
 > umass0 at uhub3 port 3 configuration 1 interface 0
 > umass0: USBest Technology USB Mass Storage Device, rev 2.00/1.00, addr 2
 > umass0: using SCSI over Bulk-Only
 > scsibus0 at umass0: 2 targets, 1 lun per target
 > sd0 at scsibus0 target 0 lun 0: <4096MB, flash drive, 1.0> disk removable
 > sd0: 3856 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 7897088 sectors
 > umass1 at uhub3 port 5 configuration 1 interface 0
 > umass1: vendor 0x13fe Patriot Memory, rev 2.00/1.10, addr 3
 > umass1: using SCSI over Bulk-Only
 > scsibus1 at umass1: 2 targets, 1 lun per target
 > sd1 at scsibus1 target 0 lun 0: <, Patriot Memory, PMAP> disk removable
 > sd1: 15272 MB, 30544 cyl, 32 head, 32 sec, 512 bytes/sect x 31277056 sect=
 ors
 > Kernelized RAIDframe activated
 > md0: internal 5000 KB image area
 > pad0: outputs: 44100Hz, 16-bit, stereo
 > audio1 at pad0: half duplex, playback, capture
 > boot device: sd0
 > root on md0a dumps on md0b
 > root file system type: ffs
 > WARNING: clock gained 20 days
 > WARNING: CHECK AND RESET THE DATE!
 > warning: no /dev/console
 >
 > VB8001 dmesg:
 > Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
 >     2006, 2007, 2008, 2009
 >     The NetBSD Foundation, Inc.  All rights reserved.
 > Copyright (c) 1982, 1986, 1989, 1991, 1993
 >     The Regents of the University of California.  All rights reserved.
 >
 > NetBSD 5.1_RC1 (INSTALL) #0: Sat Apr 24 19:17:40 UTC 2010
 >         builds@b8.netbsd.org:/home/builds/ab/netbsd-5-1-RC1/amd64/2010042=
 50032Z-obj/home/builds/ab/netbsd-5-1-RC1/src/sys/arch/amd64/compile/INSTALL
 > total memory =3D 3006 MB
 > avail memory =3D 2895 MB
 > timecounter: Timecounters tick every 10.000 msec
 > timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 > SMBIOS rev. 2.3 @ 0xf0000 (30 entries)
 > VIA Technologies Ltd. CN896-8237S (1.0)
 > mainbus0 (root)
 > cpu0 at mainbus0 apid 0: IDT/VIA 686-class, 1615MHz, id 0x6f2
 > cpu0: Enhanced SpeedStep (1116 mV) 1600 MHz
 > cpu0: Enhanced SpeedStep frequencies available (MHz): 1600 1500 1400 1300=
  1200 1100 1000 900 800
 > ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 3, 24 pins
 > ioapic1 at mainbus0 apid 3: pa 0xfecc0000, version 3, 24 pins
 > acpi0 at mainbus0: Intel ACPICA 20080321
 > acpi0: X/RSDT: OemId <CN896 ,AWRDACPI,42302e31>, AslId <AWRD,00000000>
 > acpi0: SCI interrupting at int 9
 > acpi0: fixed-feature power button present
 > timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 > ACPI-Fast 24-bit timer
 > acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
 > acpibut1 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
 > attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
 > pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
 > midi0 at pcppi1: PC speaker (CPU-intensive output)
 > sysbeep0 at pcppi1
 > UAR1 (PNP0501) at acpi0 not configured
 > UAR2 (PNP0501) at acpi0 not configured
 > pckbc1 at acpi0 (PS2K, PNP0303) (kbd port): io 0x60,0x64 irq 1
 > attimer1: attached to pcppi1
 > pckbd0 at pckbc1 (kbd slot)
 > pckbc1: using irq 1 for kbd slot
 > wskbd0 at pckbd0: console keyboard
 > pci0 at mainbus0 bus 0: configuration mode 1
 > pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 > pchb0 at pci0 dev 0 function 0
 > pchb0: vendor 0x1106 product 0x0364 (rev. 0x00)
 > agp0 at pchb0 (v3): aperture at 0xd0000000, size 0x10000000
 > pchb1 at pci0 dev 0 function 1
 > pchb1: vendor 0x1106 product 0x1364 (rev. 0x00)
 > pchb2 at pci0 dev 0 function 2
 > pchb2: vendor 0x1106 product 0x2364 (rev. 0x00)
 > pchb3 at pci0 dev 0 function 3
 > pchb3: vendor 0x1106 product 0x3364 (rev. 0x00)
 > pchb4 at pci0 dev 0 function 4
 > pchb4: vendor 0x1106 product 0x4364 (rev. 0x00)
 > vendor 0x1106 product 0x5364 (interrupt system, interface 0x20) at pci0 d=
 ev 0 function 5 not configured
 > pchb5 at pci0 dev 0 function 6
 > pchb5: vendor 0x1106 product 0x6364 (rev. 0x00)
 > pchb6 at pci0 dev 0 function 7
 > pchb6: vendor 0x1106 product 0x7364 (rev. 0x00)
 > ppb0 at pci0 dev 1 function 0: vendor 0x1106 product 0xb198 (rev. 0x00)
 > pci1 at ppb0 bus 1
 > pci1: i/o space, memory space enabled, rd/line, wr/inv ok
 > ppb1 at pci0 dev 2 function 0: vendor 0x1106 product 0xa364 (rev. 0x80)
 > pci2 at ppb1 bus 2
 > pci2: i/o space, memory space enabled, rd/line, wr/inv ok
 > vga0 at pci2 dev 0 function 0: vendor 0x1002 product 0x9498 (rev. 0x00)
 > wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskb=
 d0
 > wsmux1: connecting to wsdisplay0
 > drm at vga0 not configured
 > azalia0 at pci2 dev 0 function 1: Generic High Definition Audio Controlle=
 r
 > azalia0: interrupting at ioapic1 pin 3
 > azalia0: host: 0x1002/0xaa38 (rev. 0), HDA rev. 1.0
 > ppb2 at pci0 dev 3 function 0: vendor 0x1106 product 0xc364 (rev. 0x80)
 > pci3 at ppb2 bus 3
 > pci3: i/o space, memory space enabled, rd/line, wr/inv ok
 > vge0 at pci3 dev 0 function 0: VIA VT612X Gigabit Ethernet (rev. 0x82)
 > vge0: interrupting at ioapic1 pin 7
 > vge0: Ethernet address: 00:40:63:fa:81:d5
 > ukphy0 at vge0 phy 22: Generic IEEE 802.3u media interface
 > ukphy0: OUI 0x0009c3, model 0x0019, rev. 0
 > ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000ba=
 seT-FDX, auto
 > pci_mem_find: expected type mem, found i/o
 > vendor 0x1106 product 0x7372 (RAID mass storage) at pci0 dev 15 function =
 0 not configured
 > 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
 > atabus0 at viaide0 channel 0
 > viaide0: secondary channel configured to compatibility mode
 > viaide0: secondary channel ignored (disabled)
 > uhci0 at pci0 dev 16 function 0: vendor 0x1106 product 0x3038 (rev. 0xb0)
 > uhci0: interrupting at ioapic0 pin 20
 > usb0 at uhci0: USB revision 1.0
 > uhci1 at pci0 dev 16 function 1: vendor 0x1106 product 0x3038 (rev. 0xb0)
 > uhci1: interrupting at ioapic0 pin 22
 > usb1 at uhci1: USB revision 1.0
 > uhci2 at pci0 dev 16 function 2: vendor 0x1106 product 0x3038 (rev. 0xb0)
 > uhci2: interrupting at ioapic0 pin 21
 > usb2 at uhci2: USB revision 1.0
 > uhci3 at pci0 dev 16 function 3: vendor 0x1106 product 0x3038 (rev. 0xb0)
 > uhci3: interrupting at ioapic0 pin 23
 > usb3 at uhci3: USB revision 1.0
 > ehci0 at pci0 dev 16 function 4: vendor 0x1106 product 0x3104 (rev. 0x90)
 > ehci0: interrupting at ioapic0 pin 21
 > ehci0: dropped intr workaround enabled
 > ehci0: EHCI version 1.0
 > ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
 > usb4 at ehci0: USB revision 2.0
 > pcib0 at pci0 dev 17 function 0
 > pcib0: vendor 0x1106 product 0x3372 (rev. 0x00)
 > pchb7 at pci0 dev 17 function 7
 > pchb7: vendor 0x1106 product 0x287e (rev. 0x00)
 > pchb8 at pci0 dev 19 function 0
 > pchb8: vendor 0x1106 product 0x337b (rev. 0x00)
 > ppb3 at pci0 dev 19 function 1: vendor 0x1106 product 0x337a (rev. 0x00)
 > pci4 at ppb3 bus 4
 > pci4: i/o space, memory space enabled
 > isa0 at pcib0
 > com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 > com1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, working fifo
 > pci5 at mainbus0 bus 128
 > pci5: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
 > azalia1 at pci5 dev 1 function 0: Generic High Definition Audio Controlle=
 r
 > azalia1: interrupting at ioapic0 pin 17
 > azalia1: host: 0x1106/0x3288 (rev. 16), HDA rev. 1.0
 > timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 > azalia0: codec[0]: ATI R600 HDMI (rev. 1.0), HDA rev. 1.0
 > audio0 at azalia0: full duplex, playback, capture, independent
 > azalia1: codec[0]: 0x1106/0x1708 (rev. 7.0), HDA rev. 1.0
 > audio1 at azalia1: full duplex, playback, capture, independent
 > uhub0 at usb0: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub0: 2 ports with 2 removable, self powered
 > uhub1 at usb1: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub1: 2 ports with 2 removable, self powered
 > uhub2 at usb2: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub2: 2 ports with 2 removable, self powered
 > uhub3 at usb3: vendor 0x1106 UHCI root hub, class 9/0, rev 1.00/1.00, add=
 r 1
 > uhub3: 2 ports with 2 removable, self powered
 > uhub4 at usb4: vendor 0x1106 EHCI root hub, class 9/0, rev 2.00/1.00, add=
 r 1
 > uhub4: 8 ports with 8 removable, self powered
 > umass0 at uhub4 port 1 configuration 1 interface 0
 > umass0: USBest Technology USB Mass Storage Device, rev 2.00/1.00, addr 2
 > umass0: using SCSI over Bulk-Only
 > scsibus0 at umass0: 2 targets, 1 lun per target
 > sd0 at scsibus0 target 0 lun 0: <4096MB, flash drive, 1.0> disk removable
 > sd0: 3856 MB, 500 cyl, 8 head, 32 sec, 512 bytes/sect x 7897088 sectors
 > ugen0 at uhub0 port 2
 > ugen0: vendor 0x0c45 USB camera, rev 1.10/1.01, addr 2
 > Kernelized RAIDframe activated
 > md0: internal 5000 KB image area
 > pad0: outputs: 44100Hz, 16-bit, stereo
 > audio2 at pad0: half duplex, playback, capture
 > boot device: sd0
 > root on md0a dumps on md0b
 > root file system type: ffs
 > WARNING: clock gained 20 days
 > WARNING: CHECK AND RESET THE DATE!
 > warning: no /dev/console
 > ulpt0 at uhub2 port 1 configuration 1 interface 1
 > ulpt0: HP PSC 2350 series, rev 2.00/1.00, addr 2, iclass 7/1
 > ulpt0: using bi-directional mode
 > umass1 at uhub2 port 1 configuration 1 interface 3
 > umass1: HP PSC 2350 series, rev 2.00/1.00, addr 2
 > umass1: using SCSI over Bulk-Only
 > scsibus1 at umass1: 2 targets, 1 lun per target
 > sd1 at scsibus1 target 0 lun 0: <HP, PSC 2355, 1.00> disk removable
 > sd1: drive offline
 > sd1(umass1:0:0:0):  Check Condition on CDB: 0x00 00 00 00 00 00
 >     SENSE KEY:  Not Ready
 >      ASC/ASCQ:  Medium Not Present
 >
 > sd1: unable to open device, error =3D 19
 > uhidev0 at uhub2 port 2 configuration 1 interface 0
 > uhidev0: Logitech USB Optical Mouse, rev 2.00/27.20, addr 3, iclass 3/1
 > ums0 at uhidev0: 8 buttons, W and Z dirs
 > wsmouse0 at ums0 mux 0
 >
 > >How-To-Repeat:
 > Set RAID mode in BIOS and boot.
 > >Fix:
 > Set IDE mode in BIOS.
 >

Responsible-Changed-From-To: port-amd64-maintainer->jdolecek
Responsible-Changed-By: jdolecek@NetBSD.org
Responsible-Changed-When: Thu, 30 May 2019 20:59:37 +0000
Responsible-Changed-Why:
I'll look at merging the patch


From: "Jaromir Dolecek" <jdolecek@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43309 CVS commit: src/sys/dev/pci
Date: Sat, 1 Jun 2019 08:13:31 +0000

 Module Name:	src
 Committed By:	jdolecek
 Date:		Sat Jun  1 08:13:31 UTC 2019

 Modified Files:
 	src/sys/dev/pci: pcidevs

 Log Message:
 rename VT8237S_SATA_2 to VT8237S_SATA_RAID and update description to have
 different one to VT8237S_SATA

 part of PR kern/43309


 To generate a diff of this commit:
 cvs rdiff -u -r1.1373 -r1.1374 src/sys/dev/pci/pcidevs

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Jaromir Dolecek" <jdolecek@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43309 CVS commit: src/sys/dev/pci
Date: Sat, 1 Jun 2019 08:20:14 +0000

 Module Name:	src
 Committed By:	jdolecek
 Date:		Sat Jun  1 08:20:14 UTC 2019

 Modified Files:
 	src/sys/dev/pci: viaide.c

 Log Message:
 match VIA Technologies VX800, VX855, and VT8237S in RAID mode

 patch provided and testing done by Andrius Varanavicius via PR kern/43309


 To generate a diff of this commit:
 cvs rdiff -u -r1.87 -r1.88 src/sys/dev/pci/viaide.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sat, 01 Jun 2019 08:47:02 +0000
State-Changed-Why:
Patch applied. If you get any more traction on the viaide1 error, please
send a new PR. The change will appear in what will become netbsd-9.


From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: jdolecek@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: PR/43309 CVS commit: src/sys/dev/pci
Date: Sat, 1 Jun 2019 11:34:05 +0300

 Hi,

 I was sending yesterday a bit updated patch into current-users. The
 committed code probably will be a bit incorrect.

 On Sat, Jun 1, 2019 at 11:25 AM Jaromir Dolecek <jdolecek@netbsd.org> wrote:
 >
 > The following reply was made to PR kern/43309; it has been noted by GNATS.
 >
 > From: "Jaromir Dolecek" <jdolecek@netbsd.org>
 > To: gnats-bugs@gnats.NetBSD.org
 > Cc:
 > Subject: PR/43309 CVS commit: src/sys/dev/pci
 > Date: Sat, 1 Jun 2019 08:20:14 +0000
 >
 >  Module Name:   src
 >  Committed By:  jdolecek
 >  Date:          Sat Jun  1 08:20:14 UTC 2019
 >
 >  Modified Files:
 >         src/sys/dev/pci: viaide.c
 >
 >  Log Message:
 >  match VIA Technologies VX800, VX855, and VT8237S in RAID mode
 >
 >  patch provided and testing done by Andrius Varanavicius via PR kern/43309
 >
 >
 >  To generate a diff of this commit:
 >  cvs rdiff -u -r1.87 -r1.88 src/sys/dev/pci/viaide.c
 >
 >  Please note that diffs are not public domain; they are subject to the
 >  copyright notices on the relevant files.
 >

From: Andrius V <vezhlys@gmail.com>
To: gnats-bugs@netbsd.org
Cc: jdolecek@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: PR/43309 CVS commit: src/sys/dev/pci
Date: Sat, 1 Jun 2019 11:47:05 +0300

 There's no need to add these:

     { PCI_PRODUCT_VIATECH_VX800,
         0,
         "VIA Technologies VX800 SATA Controller",
         via_sata_chip_map_new,
     },
     { PCI_PRODUCT_VIATECH_VX855,
         0,
         NULL,
         via_sata_chip_map_new,
     },

 Only to change
 PCI_PRODUCT_VIATECH_CX700_IDE to use via_sata_chip_map_new instead of
 via_chip_map.

 On Sat, Jun 1, 2019 at 11:34 AM Andrius V <vezhlys@gmail.com> wrote:
 >
 > Hi,
 >
 > I was sending yesterday a bit updated patch into current-users. The
 > committed code probably will be a bit incorrect.
 >
 > On Sat, Jun 1, 2019 at 11:25 AM Jaromir Dolecek <jdolecek@netbsd.org> wrote:
 > >
 > > The following reply was made to PR kern/43309; it has been noted by GNATS.
 > >
 > > From: "Jaromir Dolecek" <jdolecek@netbsd.org>
 > > To: gnats-bugs@gnats.NetBSD.org
 > > Cc:
 > > Subject: PR/43309 CVS commit: src/sys/dev/pci
 > > Date: Sat, 1 Jun 2019 08:20:14 +0000
 > >
 > >  Module Name:   src
 > >  Committed By:  jdolecek
 > >  Date:          Sat Jun  1 08:20:14 UTC 2019
 > >
 > >  Modified Files:
 > >         src/sys/dev/pci: viaide.c
 > >
 > >  Log Message:
 > >  match VIA Technologies VX800, VX855, and VT8237S in RAID mode
 > >
 > >  patch provided and testing done by Andrius Varanavicius via PR kern/43309
 > >
 > >
 > >  To generate a diff of this commit:
 > >  cvs rdiff -u -r1.87 -r1.88 src/sys/dev/pci/viaide.c
 > >
 > >  Please note that diffs are not public domain; they are subject to the
 > >  copyright notices on the relevant files.
 > >

State-Changed-From-To: closed->analyzed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sat, 01 Jun 2019 10:53:50 +0000
State-Changed-Why:
There is updated patch, I'll check it.


State-Changed-From-To: analyzed->closed
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Sun, 02 Jun 2019 14:49:42 +0000
State-Changed-Why:
Committed the updated patch. Thank you.


From: "Jaromir Dolecek" <jdolecek@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43309 CVS commit: src/sys/dev/pci
Date: Sun, 2 Jun 2019 14:48:55 +0000

 Module Name:	src
 Committed By:	jdolecek
 Date:		Sun Jun  2 14:48:55 UTC 2019

 Modified Files:
 	src/sys/dev/pci: viaide.c

 Log Message:
 updated patch from Andrius - update the chip map for CX700 to use
 via_sata_chip_map_new, this seems to eliminate the ghost non-existing viaide1

 XXX guess should use via_sata_chip_map_new for PCI_PRODUCT_VIATECH_CX700M2_IDE
 XXX too, but this needs test on real hw

 remove again the entries for VX800 and VX855 from pciide_via_products[],
 as that part is untested with real hw

 update for PR kern/43309


 To generate a diff of this commit:
 cvs rdiff -u -r1.88 -r1.89 src/sys/dev/pci/viaide.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.