OpenWrt/LEDE Project

  • Status Unconfirmed
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Base system
  • Assigned To No-one
  • Operating System All
  • Severity Low
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Matthias Walther - 27.05.2021

FS#3832 - [Regression] xrx200 switch affecting AVM Fritz!Box 7362SL

The 7362sl by AVM has two gigabit ports labeled 1+2 and two fast ethernet ports labled 3+4.

They all used to work, but with OpenWrt 21.02.0 only the two gigabit ports work. Port 3+4 are dead. Linked (layer1) can be established, no layer2 or higher traffic possible.

OpenWrt 19.07.7 Kernel 4.14.221 supports ports 3 + 4
Openwrt 21.02.0-rc1 Kernel 5.4.111 ports 3 + 4 are dead

```
root@OpenWrt:~# dmesg|grep -A5 -B5 PHY
[ 0.163028] pinctrl core: initialized pinctrl subsystem
[ 0.170653] NET: Registered protocol family 16
[ 0.183980] dcdc-xrx200 1f106a00.dcdc: Core Voltage : 1016 mV
[ 0.198588] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.205140] dma-xway 1e104100.dma: Init done - hw rev: 7, ports: 7, channels: 28
[ 0.216895] pcie-xrx200 1d900000.pcie: failed to get the PCIe PHY
[ 0.265910] usbcore: registered new interface driver usbfs
[ 0.271499] usbcore: registered new interface driver hub
[ 0.276869] usbcore: registered new device driver usb
[ 0.282522] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[ 0.294467] clocksource: Switched to clocksource MIPS
– [ 0.708199] NET: Registered protocol family 10
[ 0.715876] Segment Routing with IPv6
[ 0.718218] NET: Registered protocol family 17
[ 0.722769] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 0.735555] 8021q: 802.1Q VLAN Support v1.8
[ 0.746142] pcie-xrx200 1d900000.pcie: failed to get the PCIe PHY
[ 0.859313] libphy: lantiq,xrx200-mdio: probed
[ 0.869051] net-xrx200: invalid MAC, using random
[ 0.872575] Atheros 8030 ethernet 0:00: attached PHY driver [Atheros 8030 ethernet] (mii_bus:phy_addr=0:00, irq=POLL)
[ 0.883256] Atheros 8030 ethernet 0:01: attached PHY driver [Atheros 8030 ethernet] (mii_bus:phy_addr=0:01, irq=POLL)
[ 0.894242] Intel XWAY PHY11G (xRX v1.2 integrated) 0:11: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:11, irq=POLL)
[ 0.907971] Intel XWAY PHY11G (xRX v1.2 integrated) 0:13: attached PHY driver [Intel XWAY PHY11G (xRX v1.2 integrated)] (mii_bus:phy_addr=0:13, irq=POLL)
[ 1.046546] PCI host bridge /fpi@10000000/pcie@d900000 ranges:
[ 1.051221] PCI host bridge to bus 0000:00
[ 1.055083] pci_bus 0000:00: root bus resource [mem 0x1c000000-0x1cffffff]
[ 1.061969] pci_bus 0000:00: root bus resource [io 0x1d800000-0x1d8fffff]
[ 1.068840] pci_bus 0000:00: root bus resource [??? 0×00000000 flags 0×0]
```

Notably might be the line ”failed to get the PCIe PHY“ which does not appear in 19.07.7.

As I didn’t notice any changes regarding this particular device model, it might be a problem with the kernel driver for the switch module.

Project Manager
Hauke Mehrtens commented on 29.05.2021 10:02

Is a linkup or anything detected when you connect or disconnect the Ethernet cable?

Could you please post the output of these files from the working version and the broken version:
/sys/kernel/debug/pinctrl/pinctrl-maps
/sys/kernel/debug/pinctrl/*/pinmux-pins

Matthias Walther commented on 02.06.2021 00:21

19.07.7 (working):

root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/pinctrl-maps 
Pinctrl maps:
device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group mdio
function mdio

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io37
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io44
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand ale
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cle
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cs1
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rd
function ebu

device 1e100b10.pinmux
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rdy
function ebu

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io21
config 00010001
config 00040001

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_di
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_do
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_clk
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_cs4
function spi

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_do
config 00040001

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_clk
config 00040001

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_cs4
config 00040001
root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/*/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (io0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (io1): (MUX UNCLAIMED) XWAY GPIO:463
pin 2 (io2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 3 (io3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (io4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 5 (io5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 6 (io6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 7 (io7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 8 (io8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (io9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (io10): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_cs4
pin 11 (io11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 12 (io12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 13 (io13): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand ale
pin 14 (io14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (io15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 16 (io16): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_di
pin 17 (io17): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_do
pin 18 (io18): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_clk
pin 19 (io19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (io20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (io21): (MUX UNCLAIMED) XWAY GPIO:483
pin 22 (io22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (io23): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand cs1
pin 24 (io24): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand cle
pin 25 (io25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (io26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (io27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (io28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 29 (io29): (MUX UNCLAIMED) XWAY GPIO:491
pin 30 (io30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 31 (io31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (io32): (MUX UNCLAIMED) XWAY GPIO:494
pin 33 (io33): (MUX UNCLAIMED) XWAY GPIO:495
pin 34 (io34): (MUX UNCLAIMED) XWAY GPIO:496
pin 35 (io35): (MUX UNCLAIMED) XWAY GPIO:497
pin 36 (io36): (MUX UNCLAIMED) XWAY GPIO:498
pin 37 (io37): (MUX UNCLAIMED) XWAY GPIO:499
pin 38 (io38): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (io39): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (io40): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (io41): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 42 (io42): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function mdio group mdio
pin 43 (io43): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function mdio group mdio
pin 44 (io44): (MUX UNCLAIMED) XWAY GPIO:506
pin 45 (io45): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (io46): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (io47): (MUX UNCLAIMED) XWAY GPIO:509
pin 48 (io48): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand rdy
pin 49 (io49): 1e100b10.pinmux (GPIO UNCLAIMED) (HOG) function ebu group nand rd

21.02.0-rc1 (not working):

root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/pinctrl-maps 
Pinctrl maps:
device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io37
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io44
config 00000000
config 00040001

device 1e100b10.pinmux
state default
type CONFIGS_PIN (3)
controlling device 1e100b10.pinmux
pin io21
config 00010001
config 00040001

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cle
function ebu

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand ale
function ebu

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rd
function ebu

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand cle
config 00000000
config 00010000
config 00040001

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand ale
config 00000000
config 00010000
config 00040001

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand rd
config 00000000
config 00010000
config 00040001

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand rdy
function ebu

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand rdy
config 00000002
config 00040000

device 14000000.flash
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group nand cs1
function ebu

device 14000000.flash
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group nand cs1
config 00000000
config 00010000

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_di
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_do
function spi

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_clk
function spi

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_do
config 00040001

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_clk
config 00040001

device 1e100800.spi
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group spi_cs4
function spi

device 1e100800.spi
state default
type CONFIGS_GROUP (4)
controlling device 1e100b10.pinmux
group spi_cs4
config 00040001

device 1e108000.eth
state default
type MUX_GROUP (2)
controlling device 1e100b10.pinmux
group mdio
function mdio
root@OpenWrt:~# cat /sys/kernel/debug/pinctrl/*/pinmux-pins
Pinmux settings per pin
Format: pin (name): mux_owner gpio_owner hog?
pin 0 (io0): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 1 (io1): (MUX UNCLAIMED) XWAY GPIO:463
pin 2 (io2): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 3 (io3): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 4 (io4): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 5 (io5): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 6 (io6): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 7 (io7): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 8 (io8): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 9 (io9): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 10 (io10): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_cs4
pin 11 (io11): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 12 (io12): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 13 (io13): 14000000.flash (GPIO UNCLAIMED) function ebu group nand ale
pin 14 (io14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 15 (io15): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 16 (io16): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_di
pin 17 (io17): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_do
pin 18 (io18): 1e100800.spi (GPIO UNCLAIMED) function spi group spi_clk
pin 19 (io19): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 20 (io20): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 21 (io21): (MUX UNCLAIMED) XWAY GPIO:483
pin 22 (io22): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 23 (io23): 14000000.flash (GPIO UNCLAIMED) function ebu group nand cs1
pin 24 (io24): 14000000.flash (GPIO UNCLAIMED) function ebu group nand cle
pin 25 (io25): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 26 (io26): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 27 (io27): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 28 (io28): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 29 (io29): (MUX UNCLAIMED) XWAY GPIO:491
pin 30 (io30): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 31 (io31): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 32 (io32): (MUX UNCLAIMED) XWAY GPIO:494
pin 33 (io33): (MUX UNCLAIMED) XWAY GPIO:495
pin 34 (io34): (MUX UNCLAIMED) XWAY GPIO:496
pin 35 (io35): (MUX UNCLAIMED) XWAY GPIO:497
pin 36 (io36): (MUX UNCLAIMED) XWAY GPIO:498
pin 37 (io37): (MUX UNCLAIMED) XWAY GPIO:499
pin 38 (io38): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 39 (io39): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 40 (io40): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 41 (io41): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 42 (io42): 1e108000.eth (GPIO UNCLAIMED) function mdio group mdio
pin 43 (io43): 1e108000.eth (GPIO UNCLAIMED) function mdio group mdio
pin 44 (io44): (MUX UNCLAIMED) XWAY GPIO:506
pin 45 (io45): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 46 (io46): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 47 (io47): (MUX UNCLAIMED) XWAY GPIO:509
pin 48 (io48): 14000000.flash (GPIO UNCLAIMED) function ebu group nand rdy
pin 49 (io49): 14000000.flash (GPIO UNCLAIMED) function ebu group nand rd

I also looked into the git history. Maybe this commit has something to do with the regression:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=f8ea7c53fd227a9c21f0ca45a2c3345312ea54b5

Matthias Walther commented on 02.06.2021 07:48

Oh, just saw, forgot to answer your question: The physical link (layer-1) is there. If I connect port 3 or 4 to a switch, it shows me 100 Mbit/s.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing