OpenWrt/LEDE Project

  • Status Closed
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Kernel
  • Assigned To No-one
  • Operating System All
  • Severity Medium
  • Priority Very Low
  • Reported Version Trunk
  • Due in Version Undecided
  • Due Date Undecided
  • Private
Attached to Project: OpenWrt/LEDE Project
Opened by Arınç - 26.05.2021
Last edited by Petr Štetiar - 13.09.2021

FS#3827 - dsa: bcm53012: improper frames arrive, break communication

Device: Asus RT-AC88U
OpenWrt: trunk at commit efee640716ed4f3273ea3e24e0b0b0d9b792433a with my additions for device support for Asus RT-AC88U. Device support commit: https://github.com/arinc9/openwrt/commit/05053824d5cd2dfb68ea53a5463a76499882f204

Communication is broken using DSA driver for BCM53012 switch.
Packets arrive with wrong EtherType, `eth:ethertype:data`
Only some types of ICMPv6 packets arrive properly.

A packet capture from a PC listening on one of the LAN ports is in the attachments.
ARP packets are sent from the router to all LAN ports.

B53, NET_DSA_TAG_BRCM_COMMON, NET_DSA_TAG_BRCM & NET_DSA_TAG_BRCM_PREPEND are enabled and swconfig driver is disabled on kernel menuconfig.

RT-AC88U uses port 7 & eth1 for CPU. Communication works fine on swconfig driver.

The issue might be reproduced on any devices using a BCM53012 switch, such as Linksys EA9500 (Linksys Panamera).

DT of RT-AC88U for BCM53012 configuration:

&srab {
	compatible = "brcm,bcm53012-srab", "brcm,bcm5301x-srab";
	status = "okay";
	dsa,member = <0 0>;

	ports {
		#address-cells = <1>;
		#size-cells = <0>;

		port@0 {
			reg = <0>;
			label = "lan4";
		};

		port@1 {
			reg = <1>;
			label = "lan3";
		};

		port@2 {
			reg = <2>;
			label = "lan2";
		};

		port@3 {
			reg = <3>;
			label = "lan1";
		};

		port@4 {
			reg = <4>;
			label = "wan";
		};

		port@5 {
			reg = <5>;
			ethernet = <&gmac0>;
			label = "cpu";
			status = "disabled";

			fixed-link {
				speed = <1000>;
				full-duplex;
			};
		};

		port@7 {
			reg = <7>;
			ethernet = <&gmac1>;
			label = "cpu";

			fixed-link {
				speed = <1000>;
				full-duplex;
			};
		};

		port@8 {
			reg = <8>;
			ethernet = <&gmac2>;
			label = "cpu";
			status = "disabled";

			fixed-link {
				speed = <1000>;
				full-duplex;
			};
		};
	};
};
Closed by  Petr Štetiar
13.09.2021 12:57
Reason for closing:  Fixed
Additional comments about closing:  

Fixed via https:/ /git.openwrt.org/854a4de10c9245fb0af0a70 76b53dd6e6a5419d2

Arınç commented on 26.05.2021 13:17

I forgot to include the bootlog:

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.121 (user@arinc9) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r16767-4744a4b6fd)) #0 SMP Tue May 25 17:00:11 2021
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Asus RT-AC88U
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
[    0.000000] percpu: Embedded 14 pages/cpu s26700 r8192 d22452 u57344
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130784
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 510752K/524288K available (5052K kernel code, 148K rwdata, 1276K rodata, 1024K init, 284K bss, 13536K reserved, 0K cma-reserved, 393216K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x3a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000000] random: get_random_bytes called from start_kernel+0x2f0/0x4a0 with crng_init=0
[    0.000008] sched_clock: 64 bits at 700MHz, resolution 1ns, wraps every 4398046511103ns
[    0.000021] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xa17102bcf3, max_idle_ns: 440795224838 ns
[    0.000038] Switching to timer-based delay loop, resolution 1ns
[    0.000194] Calibrating delay loop (skipped), value calculated using timer frequency.. 1400.00 BogoMIPS (lpj=7000000)
[    0.000203] pid_max: default: 32768 minimum: 301
[    0.000298] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000305] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000852] CPU: Testing write buffer coherency: ok
[    0.000883] CPU0: Spectre v2: using BPIALL workaround
[    0.001131] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001496] Setting up static identity map for 0x100000 - 0x10003c
[    0.001604] rcu: Hierarchical SRCU implementation.
[    0.001828] smp: Bringing up secondary CPUs ...
[    0.002402] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.002408] CPU1: Spectre v2: using BPIALL workaround
[    0.002492] smp: Brought up 1 node, 2 CPUs
[    0.002499] SMP: Total of 2 processors activated (2800.00 BogoMIPS).
[    0.002504] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.002507] CPU: This may indicate a broken bootloader or firmware.
[    0.004308] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.004326] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.004444] pinctrl core: initialized pinctrl subsystem
[    0.004698] NET: Registered protocol family 16
[    0.005478] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.016183] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.017257] clocksource: Switched to clocksource arm_global_timer
[    0.017827] thermal_sys: Registered thermal governor 'step_wise'
[    0.018252] NET: Registered protocol family 2
[    0.018381] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.018721] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.018750] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.018763] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.018776] TCP: Hash tables configured (established 1024 bind 1024)
[    0.018876] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.018909] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.019076] NET: Registered protocol family 1
[    0.019101] PCI: CLS 0 bytes, default 64
[    0.020035] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.023920] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.023937] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.024826] bounce: pool size: 64 pages
[    0.027487] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.028017] printk: console [ttyS0] disabled
[    0.028079] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 7812500) is a 16550
[    0.497706] printk: console [ttyS0] enabled
[    0.502564] bcm2835-rng 18004000.rng: hwrng registered
[    0.513135] nand: device found, Manufacturer ID: 0xc8, Chip ID: 0xd1
[    0.519506] nand: ESMT NAND 128MiB 3,3V 8-bit
[    0.523893] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.531488] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.541436] Scanning device for bad blocks
[    0.564105] random: fast init done
[    1.175851] random: crng init done
[    1.458421] 3 fixed-partitions partitions found on MTD device brcmnand.0
[    1.465147] Creating 3 MTD partitions on "brcmnand.0":
[    1.470300] 0x000000000000-0x000000080000 : "boot"
[    1.475606] 0x000000080000-0x000000200000 : "nvram"
[    1.481150] 0x000000200000-0x000008000000 : "firmware"
[    1.487830] 2 trx partitions found on MTD device firmware
[    1.493272] Creating 2 MTD partitions on "firmware":
[    1.498248] 0x00000000001c-0x000000400000 : "linux"
[    1.503795] 0x000000400000-0x000007e00000 : "ubi"
[    1.509785] bcm_iproc 18029200.spi: using bspi-mspi mode
[    1.516033] libphy: iProc MDIO bus: probed
[    1.520151] iproc-mdio 18003000.mdio: Broadcom iProc MDIO bus at 0xde060904
[    1.527492] libphy: mdio_mux: probed
[    1.531663] libphy: Fixed MDIO Bus: probed
[    1.536026] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p0 not found
[    1.543540] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p1 not found
[    1.551037] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p2 not found
[    1.558550] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p3 not found
[    1.566056] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p4 not found
[    1.573558] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p5 not found
[    1.581056] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p7 not found
[    1.588553] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p8 not found
[    1.596086] b53_common: found switch: BCM53012, rev 0
[    1.601289] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    1.607354] bcma-host-soc 18000000.axi: bus0: Found chip with id 53030, rev 0x00 and package 0x00
[    1.616327] bcma-host-soc 18000000.axi: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    1.626908] bcma-host-soc 18000000.axi: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x05, class 0x0)
[    1.637658] bcma-host-soc 18000000.axi: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x04, class 0x0)
[    1.647646] bcma-host-soc 18000000.axi: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    1.658060] bcma-host-soc 18000000.axi: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    1.668463] bcma-host-soc 18000000.axi: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    1.678873] bcma-host-soc 18000000.axi: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x07, class 0x0)
[    1.689227] bcma-host-soc 18000000.axi: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    1.699763] bcma-host-soc 18000000.axi: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    1.710323] bcma-host-soc 18000000.axi: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x07, class 0x0)
[    1.720894] bcma-host-soc 18000000.axi: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x07, class 0x0)
[    1.732925] bcma-host-soc 18000000.axi: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x07, class 0x0)
[    1.743310] bcma-host-soc 18000000.axi: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x07, class 0x0)
[    1.753709] bcma-host-soc 18000000.axi: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    1.763920] bcma-host-soc 18000000.axi: bus0: Core 14 found: I2S (manuf 0x4BF, id 0x834, rev 0x03, class 0x0)
[    1.773964] bcma-host-soc 18000000.axi: bus0: Core 15 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    1.785318] bcma-host-soc 18000000.axi: bus0: Core 16 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    1.798057] bcma-host-soc 18000000.axi: bus0: Core 17 found: ROM (manuf 0x4BF, id 0x508, rev 0x08, class 0x0)
[    1.808113] bcma-host-soc 18000000.axi: bus0: Core 18 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    1.819725] bcma-host-soc 18000000.axi: bus0: Core 19 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    1.831161] bcma-host-soc 18000000.axi: bus0: Flash type not supported
[    1.850962] bgmac_bcma bcma0:3: Found PHY addr: 0
[    1.855713] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    1.862258] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    1.868548] bgmac_bcma bcma0:3: Using random MAC: ae:f3:0f:68:cd:6f
[    1.875478] b53-srab-switch b53-srab-switch: invalid resource
[    1.881258] b53-srab-switch: probe of b53-srab-switch failed with error -12
[    1.888848] bgmac_bcma bcma0:4: Found PHY addr: 30 (NOREGS)
[    1.894464] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    1.902123] bgmac_bcma bcma0:5: Found PHY addr: 0
[    1.906886] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    1.913449] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    1.919732] bgmac_bcma bcma0:5: Using random MAC: 2e:c0:9a:8f:1a:aa
[    1.927137] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    1.932439] bgmac_bcma: probe of bcma0:6 failed with error -524
[    2.052411] pcie_iproc_bcma bcma0:7: link: UP
[    2.056869] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    2.063171] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    2.070064] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.078017] pci 0000:00:00.0: [14e4:d612] type 01 class 0x060400
[    2.084049] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.093728] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.103412] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x1c may corrupt adjacent RW1C bits
[    2.113180] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x1c may corrupt adjacent RW1C bits
[    2.122952] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    2.132743] pci 0000:00:00.0: PME# supported from D0 D3hot D3cold
[    2.138854] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4c may corrupt adjacent RW1C bits
[    2.149302] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    2.159080] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[    2.168766] pci_bus 0000:00: 1-byte config write to 0000:00:00.0 offset 0xc may corrupt adjacent RW1C bits
[    2.178440] PCI: bus0: Fast back to back transfers disabled
[    2.184031] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.192051] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x3e may corrupt adjacent RW1C bits
[    2.201922] pci 0000:01:00.0: [14e4:4365] type 00 class 0x028000
[    2.207991] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.214808] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
[    2.221618] pci 0000:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
[    2.228940] pci 0000:01:00.0: supports D1 D2
[    2.233856] PCI: bus1: Fast back to back transfers disabled
[    2.239449] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    2.246093] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    2.252742] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x08bfffff]
[    2.259542] pci 0000:00:00.0: BAR 9: assigned [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.267314] pci 0000:01:00.0: BAR 2: assigned [mem 0x08000000-0x087fffff 64bit]
[    2.274648] pci 0000:01:00.0: BAR 4: assigned [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.282419] pci 0000:01:00.0: BAR 0: assigned [mem 0x08800000-0x08807fff 64bit]
[    2.289751] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.294728] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x08bfffff]
[    2.301530] pci 0000:00:00.0:   bridge window [mem 0x08c00000-0x08cfffff 64bit pref]
[    2.422408] pcie_iproc_bcma bcma0:8: link: UP
[    2.426863] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    2.433158] pci_bus 0001:00: root bus resource [mem 0x20000000-0x27ffffff]
[    2.440045] pci_bus 0001:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.447996] pci 0001:00:00.0: [14e4:d612] type 01 class 0x060400
[    2.454067] pci 0001:00:00.0: PME# supported from D0 D3hot D3cold
[    2.460819] PCI: bus0: Fast back to back transfers disabled
[    2.466428] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.474555] pci 0001:01:00.0: [14e4:4365] type 00 class 0x028000
[    2.480614] pci 0001:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.487431] pci 0001:01:00.0: reg 0x18: [mem 0x00000000-0x007fffff 64bit]
[    2.494249] pci 0001:01:00.0: reg 0x20: [mem 0x00000000-0x000fffff 64bit pref]
[    2.501570] pci 0001:01:00.0: supports D1 D2
[    2.506486] PCI: bus1: Fast back to back transfers disabled
[    2.512075] pci_bus 0001:01: busn_res: [bus 01-ff] end is updated to 01
[    2.518717] pci_bus 0001:00: busn_res: [bus 00-ff] end is updated to 01
[    2.525368] pci 0001:00:00.0: BAR 8: assigned [mem 0x20000000-0x20bfffff]
[    2.532170] pci 0001:00:00.0: BAR 9: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.539942] pci 0001:01:00.0: BAR 2: assigned [mem 0x20000000-0x207fffff 64bit]
[    2.547283] pci 0001:01:00.0: BAR 4: assigned [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.555055] pci 0001:01:00.0: BAR 0: assigned [mem 0x20800000-0x20807fff 64bit]
[    2.562387] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.567363] pci 0001:00:00.0:   bridge window [mem 0x20000000-0x20bfffff]
[    2.574170] pci 0001:00:00.0:   bridge window [mem 0x20c00000-0x20cfffff 64bit pref]
[    2.702408] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    2.708606] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    2.714541] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    2.721416] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    2.730450] bcma-host-soc 18000000.axi: bus0: Bus registered
[    2.736956] NET: Registered protocol family 10
[    2.742297] Segment Routing with IPv6
[    2.746061] NET: Registered protocol family 17
[    2.750681] 8021q: 802.1Q VLAN Support v1.8
[    2.754931] Registering SWP/SWPB emulation handler
[    2.762732] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p0 not found
[    2.770246] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p1 not found
[    2.777774] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p2 not found
[    2.785279] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p3 not found
[    2.792778] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p4 not found
[    2.800277] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p5 not found
[    2.807781] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p7 not found
[    2.815287] b53-srab-switch 18007000.ethernet-switch: IRQ link_state_p8 not found
[    2.822822] b53_common: found switch: BCM53012, rev 0
[    3.022571] libphy: dsa slave smi: probed
[    3.052421] b53-srab-switch 18007000.ethernet-switch lan4 (uninitialized): PHY [dsa-0.0:00] driver [Generic PHY]
[    3.092426] b53-srab-switch 18007000.ethernet-switch lan3 (uninitialized): PHY [dsa-0.0:01] driver [Generic PHY]
[    3.132419] b53-srab-switch 18007000.ethernet-switch lan2 (uninitialized): PHY [dsa-0.0:02] driver [Generic PHY]
[    3.172425] b53-srab-switch 18007000.ethernet-switch lan1 (uninitialized): PHY [dsa-0.0:03] driver [Generic PHY]
[    3.212421] b53-srab-switch 18007000.ethernet-switch wan (uninitialized): PHY [dsa-0.0:04] driver [Generic PHY]
[    3.223073] b53-srab-switch 18007000.ethernet-switch: Using legacy PHYLIB callbacks. Please migrate to PHYLINK!
[    3.233580] DSA: tree 0 setup
[    3.237143] UBI: auto-attach mtd4
[    3.240468] ubi0: attaching mtd4
[    3.569091] ubi0: scanning is finished
[    3.606843] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 919 LEBs
[    3.613851] ubi0: attached mtd4 (name "ubi", size 122 MiB)
[    3.619349] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.626246] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.633052] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.640029] ubi0: good PEBs: 976, bad PEBs: 0, corrupted PEBs: 0
[    3.646047] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.653289] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1621962011
[    3.662445] ubi0: available PEBs: 0, total reserved PEBs: 976, PEBs reserved for bad PEB handling: 20
[    3.671718] ubi0: background thread "ubi_bgt0d" started, PID 496
[    3.681792] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.687307] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.709252] VFS: Mounted root (squashfs filesystem) readonly on device 259:0.
[    3.717261] Freeing unused kernel memory: 1024K
[    3.752500] Run /sbin/init as init process
[    4.037201] init: Console is alive
[    4.040880] init: - watchdog -
[    4.349395] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.423432] usbcore: registered new interface driver usbfs
[    4.429010] usbcore: registered new interface driver hub
[    4.434435] usbcore: registered new device driver usb
[    4.442436] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.449728] ehci-fsl: Freescale EHCI Host controller driver
[    4.456886] ehci-platform: EHCI generic platform driver
[    4.464414] ehci-platform 18021000.usb: EHCI Host Controller
[    4.470176] ehci-platform 18021000.usb: new USB bus registered, assigned bus number 1
[    4.472180] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.478247] ehci-platform 18021000.usb: irq 37, io mem 0x18021000
[    4.485228] ohci-platform: OHCI generic platform driver
[    4.495909] ohci-platform 18022000.usb: Generic Platform OHCI controller
[    4.502702] ohci-platform 18022000.usb: new USB bus registered, assigned bus number 2
[    4.510698] ohci-platform 18022000.usb: irq 37, io mem 0x18022000
[    4.520175] ehci-platform 18021000.usb: USB 2.0 started, EHCI 1.00
[    4.526928] hub 1-0:1.0: USB hub found
[    4.530899] hub 1-0:1.0: 2 ports detected
[    4.586882] hub 2-0:1.0: USB hub found
[    4.590695] hub 2-0:1.0: 2 ports detected
[    4.700102] xhci-hcd 18023000.usb: xHCI Host Controller
[    4.705377] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 3
[    4.713010] xhci-hcd 18023000.usb: hcc params 0x02501164 hci version 0x100 quirks 0x0000001000010010
[    4.722217] xhci-hcd 18023000.usb: irq 38, io mem 0x18023000
[    4.728572] hub 3-0:1.0: USB hub found
[    4.732474] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    4.739751] xhci-hcd 18023000.usb: xHCI Host Controller
[    4.745069] xhci-hcd 18023000.usb: new USB bus registered, assigned bus number 4
[    4.752506] xhci-hcd 18023000.usb: Host supports USB 3.0 SuperSpeed
[    4.760168] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.768694] hub 4-0:1.0: USB hub found
[    4.772560] hub 4-0:1.0: 1 port detected
[    4.778356] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.802621] init: - preinit -
/bin/board_detect: /etc/board.d/01_leds: line 13: ucidef_set_led_none: not found
/bin/board_detect: /etc/board.d/01_leds: line 15: ucidef_set_led_none: not found
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   11.083184] UBIFS (ubi0:1): default file-system created
[   11.089114] UBIFS (ubi0:1): Mounting in unauthenticated mode
[   11.094909] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 641
[   11.165643] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   11.173519] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.183461] UBIFS (ubi0:1): FS size: 115294208 bytes (109 MiB, 908 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[   11.194094] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   11.200725] UBIFS (ubi0:1): media format: w5/r0 (latest is w5/r0), UUID 8363B36D-57EB-47C0-A64E-8D3F1EC36961, small LPT model
[   11.213820] mount_root: overlay filesystem has not been fully initialized yet
[   11.221168] mount_root: switching to ubifs overlay
[   11.229730] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.263525] procd: - early -
[   11.266469] procd: - watchdog -
[   11.812495] procd: - watchdog -
[   11.848933] procd: - ubus -
[   11.903924] procd: - init -
Please press Enter to activate this console.
[   12.194154] urngd: v1.0.2 started.
[   12.203987] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.253040] Loading modules backported from Linux version v5.10.34-0-g0aa66717f684
[   12.260634] Backport generated by backports.git v5.10.34-1-0-g7b5533e1
[   12.279860] xt_time: kernel timezone is -0000
[   12.301217] PPP generic driver version 2.4.2
[   12.306434] NET: Registered protocol family 24
[   12.319179] usbcore: registered new interface driver brcmfmac
[   12.325112] pci_generic_config_write32: 50 callbacks suppressed
[   12.325124] pci_bus 0000:01: 1-byte config write to 0000:01:00.0 offset 0x3c may corrupt adjacent RW1C bits
[   12.340860] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4c may corrupt adjacent RW1C bits
[   12.350637] pci 0000:00:00.0: enabling device (0140 -> 0142)
[   12.356317] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   12.365998] pci_bus 0000:00: 2-byte config write to 0000:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   12.375677] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4c may corrupt adjacent RW1C bits
[   12.385440] brcmfmac 0000:01:00.0: enabling device (0140 -> 0142)
[   12.391545] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   12.401223] pci_bus 0000:01: 2-byte config write to 0000:01:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   12.572457] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   12.794346] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.txt failed with error -2
[   12.805477] brcmfmac 0000:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   13.145147] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   13.153970] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   13.165234] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43664/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   13.205075] pci_bus 0001:01: 1-byte config write to 0001:01:00.0 offset 0x3c may corrupt adjacent RW1C bits
[   13.214942] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4c may corrupt adjacent RW1C bits
[   13.224737] pci 0001:00:00.0: enabling device (0140 -> 0142)
[   13.230417] pci_bus 0001:00: 2-byte config write to 0001:00:00.0 offset 0x4 may corrupt adjacent RW1C bits
[   13.240187] brcmfmac 0001:01:00.0: enabling device (0140 -> 0142)
[   13.441212] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   13.454065] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.asus,rt-ac88u.txt failed with error -2
[   13.465213] brcmfmac 0001:01:00.0: Direct firmware load for brcm/brcmfmac4366c-pcie.txt failed with error -2
[   13.805137] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4366c-pcie for chip BCM43664/4
[   13.813928] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[   13.825234] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43664/4 wl0: Nov  5 2018 03:19:56 version 10.28.2 (r769115) FWID 01-d2cbb8fd
[   13.853241] kmodloader: done loading kernel modules from /etc/modules.d/*
[   25.484511] bgmac_bcma bcma0:4 eth1: Link is Up - 1Gbps/Full - flow control off
[   25.493938] b53-srab-switch 18007000.ethernet-switch lan1: configuring for phy/gmii link mode
[   25.510386] 8021q: adding VLAN 0 to HW filter on device lan1
[   25.590245] b53-srab-switch 18007000.ethernet-switch lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   25.590472] br-lan: port 1(lan1) entered blocking state
[   25.604936] br-lan: port 1(lan1) entered disabled state
[   25.610471] device lan1 entered promiscuous mode
[   25.615149] device eth1 entered promiscuous mode
[   25.620013] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[   25.652825] br-lan: port 1(lan1) entered blocking state
[   25.658069] br-lan: port 1(lan1) entered forwarding state
[   25.678830] b53-srab-switch 18007000.ethernet-switch lan2: configuring for phy/gmii link mode
[   25.692709] 8021q: adding VLAN 0 to HW filter on device lan2
[   25.772827] br-lan: port 2(lan2) entered blocking state
[   25.778092] br-lan: port 2(lan2) entered disabled state
[   25.783730] device lan2 entered promiscuous mode
[   25.814220] b53-srab-switch 18007000.ethernet-switch lan3: configuring for phy/gmii link mode
[   25.830341] 8021q: adding VLAN 0 to HW filter on device lan3
[   25.910883] br-lan: port 3(lan3) entered blocking state
[   25.916134] br-lan: port 3(lan3) entered disabled state
[   25.921639] device lan3 entered promiscuous mode
[   25.951842] b53-srab-switch 18007000.ethernet-switch lan4: configuring for phy/gmii link mode
[   25.970404] 8021q: adding VLAN 0 to HW filter on device lan4
[   26.050733] br-lan: port 4(lan4) entered blocking state
[   26.056014] br-lan: port 4(lan4) entered disabled state
[   26.058808] leds white:usb2: Failed to get trigger sources for /leds/usb2
[   26.061776] device lan4 entered promiscuous mode
[   26.068116] leds white:usb2: Failed to get trigger sources for /leds/usb2
[   26.079527] leds white:usb2: Failed to get trigger sources for /leds/usb2
[   26.086361] leds white:usb2: Failed to get trigger sources for /leds/usb2
[   26.093194] leds white:usb2: Failed to get trigger sources for /leds/usb2
[   26.107341] b53-srab-switch 18007000.ethernet-switch wan: configuring for phy/gmii link mode
[   26.110627] leds white:usb3: Failed to get trigger sources for /leds/usb3
[   26.120356] 8021q: adding VLAN 0 to HW filter on device wan
[   26.122681] leds white:usb3: Failed to get trigger sources for /leds/usb3
[   26.135076] leds white:usb3: Failed to get trigger sources for /leds/usb3
[   26.141885] leds white:usb3: Failed to get trigger sources for /leds/usb3
[   26.148714] leds white:usb3: Failed to get trigger sources for /leds/usb3
[   26.492522] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Arınç commented on 07.09.2021 09:38

This bug can be closed. A specific change on the dsa source code fixes this issue.

  In drivers/net/dsa/b53/b53_common.c, change
  .cpu_port = B53_CPU_PORT_25
  to
  .cpu_port = B53_CPU_PORT

This issue also occured on Linksys EA9500 using the same bcm53012 switch.
https://patchwork.ozlabs.org/project/linux-imx/patch/1489590033-4946-1-git-send-email-npcomplete13@gmail.com/#1746111

This patch which was very recently merged to master fixes this issue:

https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=854a4de10c9245fb0af0a7076b53dd6e6a5419d2

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing