[BPI-R3] Unable to activate WED on snapshot

Hello, when I try to enable WED, this boot error occur

[    9.147445] mt7986-wmac 18000000.wmac: attaching wed device 0 version 2
[    9.156368] ------------[ cut here ]------------
[    9.160971] WARNING: CPU: 3 PID: 822 at __alloc_pages+0x1cc/0x240
[    9.167052] Modules linked in: mt7915e(+) mt76_connac_lib mt76 mac80211 cfg80211 slhc sfp nfnetlink nf_reject_ipv6 nf_reject_ipv4 nf_log_syslog nf_defrag_ipv6 nf_defrag_ipv4 mdio_i2c libcrc32c crc_ccitt compat crypto_safexcel pwm_fan hwmon i2c_gpio i2c_algo_bit sha1_generic seqiv md5 des_generic libdes authencesn authenc leds_gpio xhci_plat_hcd xhci_pci xhci_mtk_hcd xhci_hcd gpio_button_hotplug usbcore usb_common
[    9.203608] CPU: 3 PID: 822 Comm: kmodloader Not tainted 5.15.80 #0
[    9.209855] Hardware name: Bananapi BPI-R3 (DT)
[    9.214368] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    9.221308] pc : __alloc_pages+0x1cc/0x240
[    9.225388] lr : __dma_direct_alloc_pages.constprop.0+0x7c/0x18c
[    9.231378] sp : ffffffc00961b6c0
[    9.234676] x29: ffffffc00961b6c0 x28: 0000000000002000 x27: 0000000000000800
[    9.241792] x26: 00000000fffffffa x25: ffffffc008a03000 x24: fffffffe00000000
[    9.248907] x23: ffffffffffffffff x22: 000fffffffffffff x21: 0000000000000034
[    9.256022] x20: ffffff80000c9810 x19: 0000000000000cc1 x18: 0000000000000107
[    9.263137] x17: 0000000000001668 x16: 00000000000014e8 x15: 0000000000000000
[    9.270252] x14: 0000000000000048 x13: 0000000000000001 x12: 0000000000000000
[    9.277366] x11: 0000000000000002 x10: 0000000000000000 x9 : 0000000000000000
[    9.284480] x8 : ffffff800521f84c x7 : 0000000000000000 x6 : 0000000000000cc0
[    9.291595] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
[    9.298709] x2 : 0000000000000000 x1 : 0000000000000034 x0 : 0000000000000cc1
[    9.305825] Call trace:
[    9.308256]  __alloc_pages+0x1cc/0x240
[    9.311989]  __dma_direct_alloc_pages.constprop.0+0x7c/0x18c
[    9.317630]  dma_direct_alloc+0x5c/0x310
[    9.321537]  dma_alloc_attrs+0x78/0x9c
[    9.325270]  mtk_wed_attach+0x288/0x820
[    9.329093]  mt7915_mmio_wed_init+0x12c/0x210 [mt7915e]
[    9.334313]  mt7915_mmio_probe+0x938/0x1990 [mt7915e]
[    9.339351]  platform_probe+0x64/0xd0
[    9.343000]  really_probe.part.0+0x98/0x2f4
[    9.347167]  __driver_probe_device+0x94/0x13c
[    9.351506]  driver_probe_device+0x40/0x114
[    9.355672]  __driver_attach+0x7c/0x180
[    9.359491]  bus_for_each_dev+0x5c/0x90
[    9.363314]  driver_attach+0x20/0x2c
[    9.366874]  bus_add_driver+0x100/0x1f0
[    9.370694]  driver_register+0x74/0x120
[    9.374514]  __platform_driver_register+0x24/0x30
[    9.379199]  init_module+0x74/0x1000 [mt7915e]
[    9.383632]  do_one_initcall+0x4c/0x1b0
[    9.387452]  do_init_module+0x40/0x1cc
[    9.391186]  load_module+0x1d10/0x2404
[    9.394919]  __do_sys_init_module+0x118/0x1b0
[    9.399258]  __arm64_sys_init_module+0x18/0x20
[    9.403684]  invoke_syscall.constprop.0+0x4c/0xe0
[    9.408371]  do_el0_svc+0x48/0xe0
[    9.411670]  el0_svc+0x14/0x50
[    9.414714]  el0t_64_sync_handler+0x9c/0x120
[    9.418967]  el0t_64_sync+0x158/0x15c
[    9.422614] ---[ end trace 344afcd7be60b3e8 ]---

does WED work for you guys?

and one more thing, I keep getting these kernel warnings br-wan: received packet on eth1 with own address as source address could it be coming from my SFP module?

Have not tried wed yet (don’t know how to activate/test it manually). But i’ve seen this patchset:

https://patchwork.kernel.org/project/linux-mediatek/list/?series=702619

Oh that can explain the mess that comes right after the initi failure! I wonder why it fails though… What about the same address packets on SFP1 port, have you encountered that?

Have not seen this message yet,but have not tried bridging. Working directly over sfp1

For wed trace maybe you need updated uboot…daniel posted a patch for increasing lmb (he had boot failures,but maybe you hit oom later).

https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/

Thanks, but that patch is already in the openwrt master branch if I’m not mistaken

Hey @dangowrt , should WED work on latest snapshot?

The new commits on the master branch didn’t help, although I don’t see the call stack anymore.