From nobody@FreeBSD.org  Mon Aug 16 20:51:22 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 2F5FC1065693
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Aug 2010 20:51:22 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 123558FC15
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Aug 2010 20:51:22 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o7GKpJ7I009328
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 16 Aug 2010 20:51:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o7GKpJYn009327;
	Mon, 16 Aug 2010 20:51:19 GMT
	(envelope-from nobody)
Message-Id: <201008162051.o7GKpJYn009327@www.freebsd.org>
Date: Mon, 16 Aug 2010 20:51:19 GMT
From: Krister Lenberg <krister@lenberg.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: No network support for Via Rhine lll
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         149720
>Category:       kern
>Synopsis:       [vr]: No network support for Via Rhine lll
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    yongari
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 16 21:00:09 UTC 2010
>Closed-Date:    Wed Sep 22 19:02:43 UTC 2010
>Last-Modified:  Wed Sep 22 19:02:43 UTC 2010
>Originator:     Krister Lenberg
>Release:        8.1
>Organization:
>Environment:
FreeBSD  8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
When installing FreeBSD om Via EPIA Pico-ITX mainboard the network don't work.

If you during the installation choose to configure the network the installation craches, "unable to create network device menu", and you must reboot.

I have installed Ubuntu 10.04 server i386 and the network works out of the box, have the dmesg.

The internal network is "VIA Rhine III Fast Ethernet Adapter 2.43". Via have support for FreeBSD 7.0 and older version using this driver from their website "http://www.viaarena.com/Driver/FreeBSD_FE-4.zip". If you install the drivers and start to compile the kernel it crashes.

-----------------------------------------
cc1: warnings being treated as errors
/usr/src/sys/dev/fet/if_fet.c:164: warning: pointer type mismatch in conditional expression
** Error code 1
-----------------------------------------

I have also submitted to VIAs forum why they don't support newer version of FreeBSD then 7.0, http://www.viaarena.com/forums/showthread.php?t=42274.

All of this has been submitted in the forum, http://forums.freebsd.org/showthread.php?t=16955.

I was asked to submit this PR and pciconf.

-----------------------------------------
hostb0@pci0:0:0:0:	class=0x060000 card=0xaa091106 chip=0x03241106 rev=0x10 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
    bar   [10] = type Prefetchable Memory, range 32, base 0xd0000000, size 134217728, enabled
    cap 02[80] = AGP v3 8x 4x SBA disabled
    cap 01[50] = powerspec 2  supports D0 D3  current D0
hostb1@pci0:0:0:1:	class=0x060000 card=0x00000000 chip=0x13241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:0:2:	class=0x060000 card=0x00000000 chip=0x23241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb3@pci0:0:0:3:	class=0x060000 card=0x00000000 chip=0x33241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb4@pci0:0:0:4:	class=0x060000 card=0x00000000 chip=0x43241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:0:7:	class=0x060000 card=0x00000000 chip=0x73241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:0:	class=0x060400 card=0x00000000 chip=0xb1981106 rev=0x00 hdr=0x01
    vendor     = 'VIA Technologies, Inc.'
    device     = 'ProSavageDDR P4X600,Apollo KT400/A/600 CPU to AGP Bridge'
    class      = bridge
    subclass   = PCI-PCI
    cap 01[70] = powerspec 2  supports D0 D1 D3  current D0
atapci0@pci0:0:15:0:	class=0x01018a card=0xaa091106 chip=0x53241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700M2 Bus Master IDE Controller'
    class      = mass storage
    subclass   = ATA
    bar   [20] = type I/O Port, range 32, base 0xff00, size 16, enabled
    cap 01[b0] = powerspec 2  supports D0 D3  current D0
uhci0@pci0:0:16:0:	class=0x0c0300 card=0xaa091106 chip=0x30381106 rev=0x90 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xfe00, size 32, enabled
    cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
uhci1@pci0:0:16:1:	class=0x0c0300 card=0xaa091106 chip=0x30381106 rev=0x90 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xfd00, size 32, enabled
    cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
uhci2@pci0:0:16:2:	class=0x0c0300 card=0xaa091106 chip=0x30381106 rev=0x90 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'VT82xxxxx UHCI USB 1.1 Controller (All VIA Chipsets)'
    class      = serial bus
    subclass   = USB
    bar   [20] = type I/O Port, range 32, base 0xfc00, size 32, enabled
    cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
ehci0@pci0:0:16:4:	class=0x0c0320 card=0xaa091106 chip=0x31041106 rev=0x90 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'VT6202/12 USB 2.0 Enhanced Host Controller'
    class      = serial bus
    subclass   = USB
    bar   [10] = type Memory, range 32, base 0xdffff000, size 256, enabled
    cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
    cap 0a[88] = EHCI Debug Port at offset 0xa0 in map 0x14
isab0@pci0:0:17:0:	class=0x060100 card=0xaa091106 chip=0x83241106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 PCI to ISA Bridge'
    class      = bridge
    subclass   = PCI-ISA
    cap 01[c0] = powerspec 2  supports D0 D3  current D0
hostb6@pci0:0:17:7:	class=0x060000 card=0x324e1106 chip=0x324e1106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Internal Module Bus'
    class      = bridge
    subclass   = HOST-PCI
    cap 08[58] = HT interrupt
hostb7@pci0:0:19:0:	class=0x060000 card=0x00000000 chip=0x324b1106 rev=0x00 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib2@pci0:0:19:1:	class=0x060401 card=0x00000000 chip=0x324a1106 rev=0x00 hdr=0x01
    vendor     = 'VIA Technologies, Inc.'
    device     = 'CX700 PCI to PCI Bridge'
    class      = bridge
    subclass   = PCI-PCI
none0@pci0:128:1:0:	class=0x040300 card=0x32881106 chip=0x32881106 rev=0x10 hdr=0x00
    vendor     = 'VIA Technologies, Inc.'
    device     = 'HDA Codec Realtek ALC660 (040300)'
    class      = multimedia
    subclass   = HDA
    bar   [10] = type Memory, range 64, base 0x9fffc000, size 16384, enabled
    cap 01[50] = powerspec 2  supports D0 D3  current D0
    cap 05[60] = MSI supports 1 message, 64 bit 
    cap 10[70] = PCI-Express 1 root endpoint max data 128(128) link x0(x0)
-----------------------------------------

/Krister
>How-To-Repeat:
Just reinstall, the problem won't go away.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: remko 
State-Changed-When: Wed Aug 18 09:46:47 UTC 2010 
State-Changed-Why:  
Pyun, can you have a look at this? As you mention on the forum 
this is a hard nut to crack, there are no network devices found. 


Responsible-Changed-From-To: freebsd-i386->yongari 
Responsible-Changed-By: remko 
Responsible-Changed-When: Wed Aug 18 09:46:47 UTC 2010 
Responsible-Changed-Why:  
Pyun, can you have a look at this? As you mention on the forum 
this is a hard nut to crack, there are no network devices found. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149720 

From: Pyun YongHyeon <pyunyh@gmail.com>
To: jhb@freebsd.org
Cc: krister@lenberg.se, yongari@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: kern/149720: [if_vr]: No network support for Via Rhine lll
Date: Wed, 18 Aug 2010 10:40:59 -0700

 On Wed, Aug 18, 2010 at 09:47:59AM +0000, remko@freebsd.org wrote:
 > Old Synopsis: No network support for Via Rhine lll
 > New Synopsis: [if_vr]: No network support for Via Rhine lll
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: remko
 > State-Changed-When: Wed Aug 18 09:46:47 UTC 2010
 > State-Changed-Why: 
 > Pyun, can you have a look at this? As you mention on the forum
 > this is a hard nut to crack, there are no network devices found.
 > 
 
 John, can you look why pci(4) does not recognize ethernet
 controller on Via EPIA Pico-ITX?
 It seems there is nothing can be done in driver until pci(4) see
 the controller in question. Does pci(4) have issues in discovering
 devices behind in a certain bridge?
 
 > 
 > Responsible-Changed-From-To: freebsd-i386->yongari
 > Responsible-Changed-By: remko
 > Responsible-Changed-When: Wed Aug 18 09:46:47 UTC 2010
 > Responsible-Changed-Why: 
 > Pyun, can you have a look at this? As you mention on the forum
 > this is a hard nut to crack, there are no network devices found.
 > 
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=149720

From: Krister <krister@lenberg.se>
To: bug-followup@FreeBSD.org, krister@lenberg.se
Cc:  
Subject: Re: kern/149720: [vr]: No network support for Via Rhine lll
Date: Sun, 22 Aug 2010 13:44:34 +0200

 First I would like to thank you for looking into this.
 
 Now since Via had released there own driver for FreeBSD 7.0 and older
 version I thought I would install it and recompile the kernel with that
 driver and be able to give you some more information.
 
 But I din'd have to after I had installed 7.0 the vr device worked out
 of the box. As before the only changed I have done to BIOS is to change
 to boot order, after the installation was done I had to change it back.
 
 So now I have a working network on my computer but I am using FreeBSD
 7.0.
 
 I also got some information for you. Hopefully it will help you somehow.
 
 By the way I will later try to install FreeBSD 7.3 and se if the network
 also works out of the box. If it does I will try install 8.0, if it
 dosn't I will install 7.2. So I can find out which version the network
 stops working.
 
 If you need anything let me know.
 
 uname:
 ----------------------------------------------------------------------------------------
 FreeBSD srv.ithjalp.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24
 19:59:52 UTC 2008
 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 
 pciconf:
 ----------------------------------------------------------------------------------------
 hostb0@pci0:0:0:0:	class=0x060000 card=0xaa091106 chip=0x03241106
 rev=0x10 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
     cap 02[80] = AGP v3 8x 4x SBA disabled
     cap 01[50] = powerspec 2  supports D0 D3  current D0
 hostb1@pci0:0:0:1:	class=0x060000 card=0x00000000 chip=0x13241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
 hostb2@pci0:0:0:2:	class=0x060000 card=0x00000000 chip=0x23241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
 hostb3@pci0:0:0:3:	class=0x060000 card=0x00000000 chip=0x33241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
 hostb4@pci0:0:0:4:	class=0x060000 card=0x00000000 chip=0x43241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
 hostb5@pci0:0:0:7:	class=0x060000 card=0x00000000 chip=0x73241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
 pcib1@pci0:0:1:0:	class=0x060400 card=0x00000000 chip=0xb1981106
 rev=0x00 hdr=0x01
     vendor     = 'VIA Technologies Inc'
     device     = 'ProSavageDDR P4X600,Apollo KT400/A/600 CPU to AGP
 Bridge'
     class      = bridge
     subclass   = PCI-PCI
     cap 01[70] = powerspec 2  supports D0 D1 D3  current D0
 atapci0@pci0:0:15:0:	class=0x01018a card=0xaa091106 chip=0x53241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700M2 Bus Master IDE Controller'
     class      = mass storage
     subclass   = ATA
     cap 01[b0] = powerspec 2  supports D0 D3  current D0
 uhci0@pci0:0:16:0:	class=0x0c0300 card=0xaa091106 chip=0x30381106
 rev=0x90 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT83C572, VT6202 VIA Rev 5 or later USB Universal Host
 Controller'
     class      = serial bus
     subclass   = USB
     cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
 uhci1@pci0:0:16:1:	class=0x0c0300 card=0xaa091106 chip=0x30381106
 rev=0x90 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT83C572, VT6202 VIA Rev 5 or later USB Universal Host
 Controller'
     class      = serial bus
     subclass   = USB
     cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
 uhci2@pci0:0:16:2:	class=0x0c0300 card=0xaa091106 chip=0x30381106
 rev=0x90 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT83C572, VT6202 VIA Rev 5 or later USB Universal Host
 Controller'
     class      = serial bus
     subclass   = USB
     cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
 ehci0@pci0:0:16:4:	class=0x0c0320 card=0xaa091106 chip=0x31041106
 rev=0x90 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT6202/12 USB 2.0 Enhanced Host Controller'
     class      = serial bus
     subclass   = USB
     cap 01[80] = powerspec 2  supports D0 D1 D2 D3  current D0
     cap 0a[88] = EHCI Debug Port at offset 0xa0 in map 0x14
 isab0@pci0:0:17:0:	class=0x060100 card=0xaa091106 chip=0x83241106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 PCI to ISA Bridge'
     class      = bridge
     subclass   = PCI-ISA
     cap 01[c0] = powerspec 2  supports D0 D3  current D0
 hostb6@pci0:0:17:7:	class=0x060000 card=0x324e1106 chip=0x324e1106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Internal Module Bus'
     class      = bridge
     subclass   = HOST-PCI
     cap 08[58] = HT interrupt
 hostb7@pci0:0:19:0:	class=0x060000 card=0x00000000 chip=0x324b1106
 rev=0x00 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 Host Bridge'
     class      = bridge
     subclass   = HOST-PCI
 pcib2@pci0:0:19:1:	class=0x060401 card=0x00000000 chip=0x324a1106
 rev=0x00 hdr=0x01
     vendor     = 'VIA Technologies Inc'
     device     = 'CX700 PCI to PCI Bridge'
     class      = bridge
     subclass   = PCI-PCI
 vgapci0@pci0:1:0:0:	class=0x030000 card=0x31571106 chip=0x31571106
 rev=0x03 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     class      = display
     subclass   = VGA
     cap 01[60] = powerspec 2  supports D0 D1 D2 D3  current D0
     cap 02[70] = AGP v3 8x 4x SBA disabled
 vr0@pci0:2:6:0:	class=0x020000 card=0x01051106 chip=0x31061106 rev=0x8b
 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = 'VT6105M/LOM Rhine III PCI Fast Ethernet Controller'
     class      = network
     subclass   = ethernet
     cap 01[44] = powerspec 2  supports D0 D1 D2 D3  current D0
 none0@pci0:128:1:0:	class=0x040300 card=0x32881106 chip=0x32881106
 rev=0x10 hdr=0x00
     vendor     = 'VIA Technologies Inc'
     device     = '??? VIA VT8251/8237A High Definition Audio Controller
 - HDA Codec Realtek ALC660'
     class      = multimedia
     cap 01[50] = powerspec 2  supports D0 D3  current D0
     cap 05[60] = MSI supports 1 message, 64 bit 
     cap 10[70] = PCI-Express 1 type 0
 
 dmesg:
 ----------------------------------------------------------------------------------------
 Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation.
 FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008
     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
 Timecounter "i8254" frequency 1193182 Hz quality 0
 CPU: VIA C7 Esther+RNG+AES+AES-CTR+SHA1+SHA256+RSA (999.76-MHz 686-class
 CPU)
   Origin = "CentaurHauls"  Id = 0x6a9  Stepping = 9
 
 Features=0x87c9baff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,PBE>
   Features2=0x81<SSE3,EST>
 real memory  = 1005518848 (958 MB)
 avail memory = 970293248 (925 MB)
 ACPI APIC Table: <CX700  AWRDACPI>
 ioapic0 <Version 0.3> irqs 0-23 on motherboard
 kbd1 at kbdmux0
 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413,
 RF5413)
 hptrr: HPT RocketRAID controller driver v1.1 (Feb 24 2008 19:59:27)
 acpi0: <CX700 AWRDACPI> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 acpi0: reservation of 100000, 3bdf0000 (3) failed
 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
 cpu0: <ACPI CPU> on acpi0
 est0: <Enhanced SpeedStep Frequency Control> on cpu0
 acpi_button0: <Power Button> on acpi0
 acpi_button1: <Sleep Button> on acpi0
 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
 pci0: <ACPI PCI bus> on pcib0
 agp0: <VIA VT3324 (CX700) host to PCI bridge> on hostb0
 agp0: aperture size is 128M
 pcib1: <PCI-PCI bridge> at device 1.0 on pci0
 pci1: <PCI bus> on pcib1
 vgapci0: <VGA-compatible display> mem
 0xa0000000-0xbfffffff,0xdd000000-0xddffffff irq 16 at device 0.0 on pci1
 atapci0: <VIA ATA controller> port
 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.0 on pci0
 ata0: <ATA channel 0> on atapci0
 ata0: [ITHREAD]
 ata1: <ATA channel 1> on atapci0
 ata1: [ITHREAD]
 uhci0: <VIA 83C572 USB controller> port 0xfe00-0xfe1f irq 20 at device
 16.0 on pci0
 uhci0: [GIANT-LOCKED]
 uhci0: [ITHREAD]
 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> on usb0
 uhub0: 2 ports with 2 removable, self powered
 uhci1: <VIA 83C572 USB controller> port 0xfd00-0xfd1f irq 22 at device
 16.1 on pci0
 uhci1: [GIANT-LOCKED]
 uhci1: [ITHREAD]
 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> on usb1
 uhub1: 2 ports with 2 removable, self powered
 uhci2: <VIA 83C572 USB controller> port 0xfc00-0xfc1f irq 21 at device
 16.2 on pci0
 uhci2: [GIANT-LOCKED]
 uhci2: [ITHREAD]
 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> on usb2
 uhub2: 2 ports with 2 removable, self powered
 ehci0: <VIA VT6202 USB 2.0 controller> mem 0xdffff000-0xdffff0ff irq 23
 at device 16.4 on pci0
 ehci0: [GIANT-LOCKED]
 ehci0: [ITHREAD]
 usb3: EHCI version 1.0
 usb3: companion controllers, 2 ports each: usb0 usb1 usb2
 usb3: <VIA VT6202 USB 2.0 controller> on ehci0
 usb3: USB revision 2.0
 uhub3: <VIA EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb3
 uhub3: 6 ports with 6 removable, self powered
 isab0: <PCI-ISA bridge> at device 17.0 on pci0
 isa0: <ISA bus> on isab0
 pcib2: <ACPI PCI-PCI bridge> at device 19.1 on pci0
 pci2: <ACPI PCI bus> on pcib2
 vr0: <VIA VT6105 Rhine III 10/100BaseTX> port 0xde00-0xdeff mem
 0xdfeff000-0xdfeff0ff irq 18 at device 6.0 on pci2
 vr0: Quirks: 0x0
 miibus0: <MII bus> on vr0
 ukphy0: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
 ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 vr0: using obsoleted if_watchdog interface
 vr0: Ethernet address: 00:40:63:f5:71:44
 vr0: [ITHREAD]
 pcib3: <ACPI Host-PCI bridge> on acpi0
 pci128: <ACPI PCI bus> on pcib3
 pci128: <multimedia> at device 1.0 (no driver attached)
 sio0: configured irq 4 not in bitmap of probed irqs 0
 sio0: port may not be enabled
 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
 sio0: [FILTER]
 pmtimer0 on isa0
 orm0: <ISA Option ROMs> at iomem
 0xc0000-0xcffff,0xd0000-0xd7fff,0xd8000-0xd9fff pnpid ORM0000 on isa0
 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
 atkbd0: <AT Keyboard> irq 1 on atkbdc0
 kbd0 at atkbd0
 atkbd0: [GIANT-LOCKED]
 atkbd0: [ITHREAD]
 ppc0: parallel port not found.
 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
 ukbd0: <vendor 0x1241 USB Keyboard, class 0/0, rev 1.10/2.80, addr 2> on
 uhub1
 kbd2 at ukbd0
 uhid0: <vendor 0x1241 USB Keyboard, class 0/0, rev 1.10/2.80, addr 2> on
 uhub1
 Timecounter "TSC" frequency 999758482 Hz quality 800
 Timecounters tick every 1.000 msec
 hptrr: no controller detected.
 ad2: 152627MB <SAMSUNG HM160HC LQ100-10> at ata1-master UDMA33
 Trying to mount root from ufs:/dev/ad2s1a
 
 /Krister
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=149720
 

From: Pyun YongHyeon <pyunyh@gmail.com>
To: Krister <krister@lenberg.se>
Cc: yongari@freebsd.org, bug-followup@FreeBSD.org
Subject: Re: kern/149720: [vr]: No network support for Via Rhine lll
Date: Sun, 22 Aug 2010 15:06:47 -0700

 On Sun, Aug 22, 2010 at 12:10:04PM +0000, Krister wrote:
 
 [...]
 
 >  
 >  Now since Via had released there own driver for FreeBSD 7.0 and older
 >  version I thought I would install it and recompile the kernel with that
 >  driver and be able to give you some more information.
 >  
 >  But I din'd have to after I had installed 7.0 the vr device worked out
 >  of the box. As before the only changed I have done to BIOS is to change
 >  to boot order, after the installation was done I had to change it back.
 >  
 
 The reason 8.1-RELEASE does not attach vr(4) to the controller
 comes from the fact which it didn't see the controller on
 8.1-RELEASE. I'm not sure whether this comes from slight code
 change in pci(4) between 7.0-RELEASE and 8.1-RELEASE.
 By chance, did you try booting with ACPI disabled?(You can choose
 the option in beastie menu or you can disable ACPI in BIOS if your
 motherboard gives that option.)
 
 >  So now I have a working network on my computer but I am using FreeBSD
 >  7.0.
 >  
 >  I also got some information for you. Hopefully it will help you somehow.
 >  
 >  By the way I will later try to install FreeBSD 7.3 and se if the network
 >  also works out of the box. If it does I will try install 8.0, if it
 >  dosn't I will install 7.2. So I can find out which version the network
 >  stops working.
 >  
 >  If you need anything let me know.
 >  
 
 As you said, it would be better to narrow down which FreeBSD
 version started to show the issue. Developers may know possible
 cause of breakage as it used to work without problems on old
 FreeBSD releases.

From: John Baldwin <jhb@freebsd.org>
To: pyunyh@gmail.com
Cc: krister@lenberg.se,
 yongari@freebsd.org,
 bug-followup@freebsd.org
Subject: Re: kern/149720: [if_vr]: No network support for Via Rhine lll
Date: Mon, 23 Aug 2010 09:31:52 -0400

 On Wednesday, August 18, 2010 1:40:59 pm Pyun YongHyeon wrote:
 > On Wed, Aug 18, 2010 at 09:47:59AM +0000, remko@freebsd.org wrote:
 > > Old Synopsis: No network support for Via Rhine lll
 > > New Synopsis: [if_vr]: No network support for Via Rhine lll
 > > 
 > > State-Changed-From-To: open->feedback
 > > State-Changed-By: remko
 > > State-Changed-When: Wed Aug 18 09:46:47 UTC 2010
 > > State-Changed-Why: 
 > > Pyun, can you have a look at this? As you mention on the forum
 > > this is a hard nut to crack, there are no network devices found.
 > > 
 > 
 > John, can you look why pci(4) does not recognize ethernet
 > controller on Via EPIA Pico-ITX?
 > It seems there is nothing can be done in driver until pci(4) see
 > the controller in question. Does pci(4) have issues in discovering
 > devices behind in a certain bridge?
 
 See if you have any "unusual" BIOS options.  I had to disable some sort of LAN 
 power saving BIOS option for my HP netbook before its mskc0 device would show 
 up in the PCI namespace.
 
 -- 
 John Baldwin

From: Krister <krister@lenberg.se>
To: bug-followup@FreeBSD.org, krister@lenberg.se
Cc:  
Subject: Re: kern/149720: [vr]: No network support for Via Rhine lll
Date: Sat, 28 Aug 2010 11:35:34 +0200

 I did an installation with FreeBSD 7.3 and the vr device works out of
 the box.
 
 After that I did an installation with FreeBSD 8.0 and the vr device
 did't work out of the box.
 
 >See if you have any "unusual" BIOS options. I had to disable some sort
 >of LAN 
 >power saving BIOS option for my HP netbook before its mskc0 device
 >would show 
 >up in the PCI namespace.
 
 I have not done ANY BIOS changes between these installations. The only
 BIOS changes that was made was the boot order so I was able to install.
 After the installation was done and the system rebooted I had to change
 the boot order back so my computer could boot the harddrive.
 
 >By chance, did you try booting with ACPI disabled?(You can choose
 >the option in beastie menu or you can disable ACPI in BIOS if your
 >motherboard gives that option.)
 
 I did after the installation of 8.0 and the vr device stated to work. I
 was able to configure it and I had now a network.
 
 I looked in the dmesg.boot and found this in 8.0:
 --------------------------------------------------------
 ...
 acpi0: <CX700 AWRDACPI> on motherboard
 acpi0: [ITHREAD]
 ACPI Error: Package List length (8) larger than NumElements count (2),
 truncated
  20090521 dsobject-590
 ACPI Error: Package List length (8) larger than NumElements count (2),
 truncated
  20090521 dsobject-590
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 ...
 --------------------------------------------------------
 
 In the dmesg 7.3 there is no error:
 --------------------------------------------------------
 ...
 acpi0: <CX700 AWRDACPI> on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of 0, a0000 (3) failed
 acpi0: reservation of 100000, 3bdf0000 (3) failed
 --------------------------------------------------------
 
 After I got the network to work in 8.0 I reinstalled 8.1 without the
 ACPI support and now the vr device worked out of the box.
 
 Is this a bug in FreeBSD 8.X since the vr device works with ACPI in 7.X?
 
 But now I am happy :)
 
 Thanks for the help.
 
 /Krister 
 
State-Changed-From-To: feedback->closed 
State-Changed-By: yongari 
State-Changed-When: Wed Sep 22 19:02:21 UTC 2010 
State-Changed-Why:  
Close, submitter confirms that it's not vr(4) issue. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=149720 
>Unformatted:
