From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Sat, 19 Apr 2008 08:48:29 +0100 From: "Stefan Hajnoczi" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: [9fans] VIA Rhine II mii problems Topicbox-Message-UUID: 949b7286-ead3-11e9-9d60-3106f5b1d025 Hi, I just installed Plan 9 on a machine using a VIA Rhine II NIC. Unfortunately the driver is not successfully initializing the device. Placing print statements in ethervt6102.c shows that vt6102reset() is failing when mii() returns an empty PHY mask. The mii() function is probing each PHY from 0 to 31, but always finds that oui == 0. It never finds a PHY. Any hints? I understand the high-level details but don't have the knowledge to do anything other than poke around blindly now. lspci (from Linux): 00:00.0 Host bridge: VIA Technologies, Inc. PT894 Host Bridge 00:00.1 Host bridge: VIA Technologies, Inc. PT894 Host Bridge 00:00.2 Host bridge: VIA Technologies, Inc. PT894 Host Bridge 00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge 00:00.4 Host bridge: VIA Technologies, Inc. PT894 Host Bridge 00:00.5 PIC: VIA Technologies, Inc. PT894 I/O APIC Interrupt Controller 00:00.7 Host bridge: VIA Technologies, Inc. PT894 Host Bridge 00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge 00:0f.0 IDE interface: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80) 00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) 00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.3 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81) 00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86) 00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South] 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60) 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78) 01:00.0 VGA compatible controller: nVidia Corporation NV34 [GeForce FX 5200] (rev a1) lspci -v (from Linux): 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 78) Subsystem: ASUSTeK Computer Inc. Unknown device 80ed Flags: bus master, medium devsel, latency 64, IRQ 17 I/O ports at ee00 [size=256] Memory at febff800 (32-bit, non-prefetchable) [size=256] Capabilities: Kernel driver in use: via-rhine Kernel modules: via-rhine Thanks, Stefan