NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/55016: VIA OUI is non-bitreverse value



>Number:         55016
>Category:       kern
>Synopsis:       VIA OUI is non-bitreverse value
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 25 22:05:00 +0000 2020
>Originator:     Andrius V
>Release:        NetBSD 9
>Organization:
>Environment:
>Description:
VIA OUI is defined with the official 0x004063 value in miidevs, which in turn was copied from OpenBSD (relatively recently, rev=1.135). However, NetBSD recognizes VIA OUI as 0x0002c6, which coincidently matches with DATATRACK (unused?) value. Besides my own board, I verified that value is consistent with various vr0 dmesg reports in nycbug dmesg service and NetBSD mailing lists. Because of this VT6103 PHY description is not matched by ukphy driver.

Patch provided below. Tested with miiverbose enabled:

ukphy0 at vr0 phy 1: VT6103 10/100 PHY (OUI 0x0002c6, model 0x0032), rev. 10
>How-To-Repeat:

>Fix:
diff --git a/sys/dev/mii/miidevs b/sys/dev/mii/miidevs
index a357a746498..ef43d1376ef 100644
--- a/sys/dev/mii/miidevs
+++ b/sys/dev/mii/miidevs
@@ -70,7 +70,6 @@ oui RALINK2                   0x0017a5        Ralink Technology
 oui AQUANTIA                   0x0017b6        Aquantia Corporation
 oui BROADCOM3                  0x001be9        Broadcom Corporation
 oui LEVEL1                     0x00207b        Level 1
-oui VIA                                0x004063        VIA Technologies
 oui MARVELL                    0x005043        Marvell Semiconductor
 oui QUALSEMI                   0x006051        Quality Semiconductor
 oui AMLOGIC                    0x006051        Amlogic
@@ -96,6 +95,7 @@ oui RENESAS                   0x749050        Renesas
 /* Unregistered or wrong OUI */
 oui yyREALTEK                  0x000004        Realtek
 oui yyAMD                      0x000058        Advanced Micro Devices
+oui xxVIA                      0x0002c6        VIA Technologies
 oui xxMYSON                    0x00032d        Myson Technology
 oui xxTSC                      0x00039c        TDK Semiconductor
 oui xxASIX                     0x000674        Asix Semiconductor
@@ -399,8 +399,8 @@ model xxTSC 78Q2120         0x0014 78Q2120 10/100 media interface
 model xxTSC 78Q2121            0x0015 78Q2121 100BASE-TX media interface
 
 /* VIA Technologies PHYs */
-model VIA VT6103               0x0032  VT6103 10/100 PHY
-model VIA VT6103_2             0x0034  VT6103 10/100 PHY
+model xxVIA VT6103             0x0032  VT6103 10/100 PHY
+model xxVIA VT6103_2           0x0034  VT6103 10/100 PHY
 
 /* Vitesse PHYs (Now Microsemi) */
 model xxVITESSE VSC8601                0x0002 VSC8601 10/100/1000 PHY



Home | Main Index | Thread Index | Old Index