NetBSD Problem Report #37517

From martin@duskware.de  Tue Dec 11 08:40:10 2007
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id B7A3263B8FF
	for <gnats-bugs@gnats.netbsd.org>; Tue, 11 Dec 2007 08:40:10 +0000 (UTC)
Message-Id: <20071211014235.59CE663B8FF@narn.NetBSD.org>
Date: Tue, 11 Dec 2007 01:42:35 +0000 (UTC)
From: artifoix@gmail.com
Reply-To: artifoix@gmail.com
To: netbsd-bugs-owner@NetBSD.org
Subject: VIA VT8251 southbridge isn't working correctly.
X-Send-Pr-Version: www-1.0

>Number:         37517
>Category:       kern
>Synopsis:       VIA VT8251 southbridge isn't working correctly.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          analyzed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Dec 11 08:45:00 +0000 2007
>Closed-Date:    
>Last-Modified:  Thu Nov 19 19:28:47 +0000 2009
>Originator:     Roine Thunberg
>Release:        NetBSD-current
>Organization:
>Environment:
NetBSD kraco.artee.se 4.99.42 NetBSD 4.99.42 (GENERIC) #0: Tue Dec 11 00:09:18 CET 2007  root@kraco.artee.se:/usr/obj/sys/arch/i386/compile/GENERIC i386
>Description:
Full dmesg...
------
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    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 4.99.42 (GENERIC) #0: Tue Dec 11 00:09:18 CET 2007
        root@kraco.artee.se:/usr/obj/sys/arch/i386/compile/GENERIC
total memory = 447 MB
avail memory = 428 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0010
SMBIOS rev. 2.3 @ 0xf0730 (59 entries)
System manufacturer System Product Name (System Version)
mainbus0 (root)
cpu0 at mainbus0 apid 0: (boot processor)
cpu0: Intel (686-class), 2793.16 MHz, id 0xf49
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: features2 651d<SSE3,MONITOR,DS-CPL,TM2,CID,xTPR>
cpu0: features3 20000000<EM64T>
cpu0: "Intel(R) Celeron(R) CPU 2.80GHz"
cpu0: I-cache 12K uOp cache 8-way
cpu0: ITLB 4K/4M: 128 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: enabling thermal monitor 1 ... enabled.
cpu0: calibrating local timer
cpu0: apic clock running at 132 MHz
timecounter: Timecounter "lapic" frequency 132999946 Hz quality 2100
ioapic0 at mainbus0 apid 1: pa 0xfec00000, version 3, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
acpi0: using Intel ACPI CA subsystem version 20070320
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
CPU1 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
CPU2 (ACPI Object Type 'Processor' [0x0c]) at acpi0 not configured
PCI0 (PNP0A03) [PCI/PCI-X Host Bridge] at acpi0 not configured
PIC (PNP0000) [AT Interrupt Controller] at acpi0 not configured
DMAD (PNP0200) [AT DMA Controller] at acpi0 not configured
attimer1 at acpi0 (TMR, PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
RTC0 (PNP0B00) [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (SPKR, PNP0800)
pcppi1: io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
npx1 at acpi0 (COPR, PNP0C04)
npx1: io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
UAR1 (PNP0501) [16550A-compatible COM port] at acpi0 not configured
FDC (PNP0700) [PC standard floppy disk controller] at acpi0 not configured
LPTE (PNP0401) [ECP printer port] at acpi0 not configured
RMSC (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
aiboost0 at acpi0 (ASOC, ATK0110-16843024)
aiboost0: ASUS AI Boost Hardware monitor
pckbc1 at acpi0 (PS2K, PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
OMSC (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
SIOR (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
PCIE (PNP0C02) [Plug and Play motherboard register resources] at acpi0 not configured
acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
RMEM (PNP0C01) [System Board] at acpi0 not configured
acpibut1 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
LNKA (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKB (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKC (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
LNKD (PNP0C0F) [PCI interrupt link device] at acpi0 not configured
apm0 at acpi0: Power Management spec V1.2
pcppi1: attached to attimer1
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: VIA Technologies product 0x0314 (rev. 0x00)
agp0 at pchb0 (v3): aperture at 0xf0000000, size 0x10000000
pchb1 at pci0 dev 0 function 1
pchb1: VIA Technologies product 0x1314 (rev. 0x00)
pchb2 at pci0 dev 0 function 2
pchb2: VIA Technologies product 0x2314 (rev. 0x00)
pchb3 at pci0 dev 0 function 3
pchb3: VIA Technologies product 0x3208 (rev. 0x00)
pchb4 at pci0 dev 0 function 4
pchb4: VIA Technologies product 0x4314 (rev. 0x00)
pchb5 at pci0 dev 0 function 7
pchb5: VIA Technologies product 0x7314 (rev. 0x00)
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8377CE CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: VIA Technologies VT3314 CN900 UniChrome Integrated Graphics (rev. 0x01)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
direct rendering for vga1 unsupported
viaide0 at pci0 dev 15 function 0
viaide0: VIA Technologies VT8237R SATA Controller (rev. 0x00)
viaide0: bus-master DMA support present
viaide0: primary channel wired to native-PCI mode
viaide0: using ioapic0 pin 21 (irq 10) for native-PCI interrupt
atabus0 at viaide0 channel 0
viaide0: secondary channel wired to native-PCI mode
atabus1 at viaide0 channel 1
viaide1 at pci0 dev 15 function 1
viaide1: VIA Technologies unknown VIA ATA controller
viaide1: bus-master DMA support present
viaide1: primary channel configured to compatibility mode
viaide1: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus2 at viaide1 channel 0
viaide1: secondary channel configured to compatibility mode
viaide1: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus3 at viaide1 channel 1
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x90)
uhci0: interrupting at ioapic0 pin 20 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1: VIA Technologies VT83C572 USB Controller (rev. 0x90)
uhci1: interrupting at ioapic0 pin 22 (irq 5)
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2: VIA Technologies VT83C572 USB Controller (rev. 0x90)
uhci2: interrupting at ioapic0 pin 21 (irq 10)
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3: VIA Technologies VT83C572 USB Controller (rev. 0x90)
uhci3: interrupting at ioapic0 pin 23 (irq 3)
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4: VIA Technologies VT8237 EHCI USB Controller (rev. 0x90)
ehci0: interrupting at ioapic0 pin 22 (irq 5)
ehci0: dropped intr workaround enabled
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA Technologies EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies product 0x3287 (rev. 0x00)
auvia0 at pci0 dev 17 function 5: VIA Technologies VT8237 AC'97 Audio (rev 0x70)
auvia0: interrupting at ioapic0 pin 22 (irq 5)
auvia0: ac97: Avance Logic ALC655 codec; no 3D stereo
auvia0: ac97: ext id 9c4<AC97_23,LDAC,SDAC,CDAC,SPDIF>
audio0 at auvia0: full duplex, independent
pchb6 at pci0 dev 17 function 7
pchb6: VIA Technologies VT8251 Ultra VLINK Controller (rev. 0x00)
vr0 at pci0 dev 18 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
vr0: interrupting at ioapic0 pin 23 (irq 11)
vr0: Ethernet address: 00:17:31:d4:75:d3
rlphy0 at vr0 phy 1: RTL8201L 10/100 media interface, rev. 1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ppb1 at pci0 dev 19 function 0: VIA Technologies product 0x287b (rev. 0x00)
pci2 at ppb1 bus 2
pci2: no spaces enabled!
ppb2 at pci0 dev 19 function 1: VIA Technologies VT8251 PCI-PCI Bridge (rev. 0x00)
pci3 at ppb2 bus 5
pci3: i/o space, memory space enabled
re0 at pci3 dev 8 function 0: RealTek 8169/8110 Gigabit Ethernet (rev. 0x10)
re0: interrupting at ioapic0 pin 17 (irq 10)
re0: Ethernet address 00:4f:4a:10:13:29
re0: using 256 tx descriptors
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 1000BASE-T media interface, rev. 0
rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
fxp0 at pci3 dev 9 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at ioapic0 pin 18 (irq 5)
fxp0: Ethernet address 00:d0:b7:d5:da:d1
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: WARNING: powerhook_establish is deprecated
fxp0: WARNING: powerhook_establish is deprecated
isa0 at pcib0
lpt0 at isa0 port 0x378-0x37b irq 7
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com0: WARNING: powerhook_establish is deprecated
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
pci4 at mainbus0 bus 3
pci4: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pci5 at mainbus0 bus 4
pci5: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
viaide0 port 0: device present, speed: no negotiated speed
wd0 at atabus0 drive 0: <Maxtor 6L200M0>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 189 GB, 395136 cyl, 16 head, 63 sec, 512 bytes/sect x 398297088 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd0(viaide0:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using DMA)
MAGIC == 0x00
viaide0 port 1: unknown SStatus: 0x00c722ff
wd1 at atabus2 drive 0: <IC35L120AVV207-0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 115 GB, 239340 cyl, 16 head, 63 sec, 512 bytes/sect x 241254720 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd2 at atabus2 drive 1: <IC35L120AVV207-1>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 115 GB, 239340 cyl, 16 head, 63 sec, 512 bytes/sect x 241254720 sectors
wd2: 32-bit data port
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(viaide1:0:0): using PIO mode 4, DMA mode 2 (using DMA)
wd2(viaide1:0:1): using PIO mode 4, DMA mode 2 (using DMA)
wd3 at atabus3 drive 1: <WDC WD1600AB-00DYA0>
wd3: drive supports 16-sector PIO transfers, LBA48 addressing
wd3: 149 GB, 310101 cyl, 16 head, 63 sec, 512 bytes/sect x 312581808 sectors
wd3: 32-bit data port
wd3: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd3(viaide1:1:1): using PIO mode 4, DMA mode 2 (using DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
---

Having 2 SATA-drives and 3 IDE-drives in this machine. No raid configured at the moment. The kernel only find one of the 2 SATA-drives.

As of -current 3.99.9 the kernel finds all of the disks, but speed was low. About 1-2 MB/sec.
>How-To-Repeat:
Problem accured in NetBSD-4.0rc5. Then I tried -current as above.
>Fix:

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: port-i386-maintainer->kern-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Sat, 19 Sep 2009 19:28:58 +0000
Responsible-Changed-Why:
viaide problems aren't i386-specific.


State-Changed-From-To: open->feedback
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 19 Sep 2009 19:28:58 +0000
State-Changed-Why:
Does this work any better in 5.0 or 5.99?


From: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/37517 CVS commit: src/sys/dev/pci
Date: Wed, 18 Nov 2009 18:42:09 +0000

 Module Name:	src
 Committed By:	jakllsch
 Date:		Wed Nov 18 18:42:09 UTC 2009

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

 Log Message:
 Drop unused/duplicate VIATECH VT8237_PCIB entry.
 While here, drop "(Apollo KT600)" from VIATECH VT8237, and s/ISA/LPC/.
 Additionally, add LPC Bridge ID for VT8251 from PR/37517.


 To generate a diff of this commit:
 cvs rdiff -u -r1.999 -r1.1000 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: "Jonathan A. Kollasch" <jakllsch@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/37517 CVS commit: src/sys/dev/pci
Date: Wed, 18 Nov 2009 19:42:19 +0000

 Module Name:	src
 Committed By:	jakllsch
 Date:		Wed Nov 18 19:42:19 UTC 2009

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

 Log Message:
 Match VT8251 IDE controller and enable UDMA Mode 6 thereon.
 Should fix PATA speed issue in PR/37517.
 Due to lack of hardware, only compile tested at this point.


 To generate a diff of this commit:
 cvs rdiff -u -r1.61 -r1.62 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: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-i386/37517: VIA VT8251 southbridge isn't working
 correctly.
Date: Wed, 18 Nov 2009 20:26:55 +0000

 > viaide0 port 0: device present, speed: no negotiated speed
 > viaide0 port 1: unknown SStatus: 0x00c722ff

 This would seem to indicate that the SATA PHY registers	are
 not being mapped properly on the VT8251.

From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: PR/37517
Date: Thu, 19 Nov 2009 19:14:26 +0000

 Linux has two ways to treat the VT8251 SATA, as a quirky AHCI
 (this explains the present difficulty with BAR 5), or as a
 pciide-like controller, with a new way of accessing the
 SATA PHY registers.

State-Changed-From-To: feedback->analyzed
State-Changed-By: jakllsch@NetBSD.org
State-Changed-When: Thu, 19 Nov 2009 19:28:47 +0000
State-Changed-Why:
problem can be solved by implementing a quirk for ahcisata or phy register access method, should be quick and painless with docs and hardware.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.