brcmfmac: brcmf_set_channel: set chanspec fail, reason -52
Describe the bug
I used the rpi5 with Mcuzone MPS2280P hat for SSD, I booted the archlinux arm from nvme SSD with linux-rpi.
RPi 5 still suddenly disconnects the internet and SSH and reports brcmfmac: brcmf_set_channel: set chanspec fail, reason -52 , especially when RPi 5 has file IO and msg output, for example, updating system, journalctl, downloading/uploading sth from/to internet
After extra settings (see Additional context), strangely, when I initially trigger to connect the internet this issue won't present, when the internet was reconnected, it would present, so this is quite similar to the issue reported to the linux kernel, see this mail list discussion, however, I'm still not sure, because after re-connecting the internet, it can't use internet like what additional note1 mentioned.
Without netctl/iwd/networkmanager starts, it's impossible to report
Steps to reproduce the behaviour
When I start the NetworkManger on Arch Linux ARM, I got the debug msg
brcmfmac: brcmf_set_channel: set chanspec ????? fail, reason -52Device (s)
Raspberry Pi 5
System
# cat /etc/issue
Arch Linux \r (\l)
# vcgencmd version
2024/02/16 15:28:41
Copyright (c) 2012 Broadcom
version 4c845bd3 (release) (embedded)# uname -a
Linux fruticicola 6.6.21-2-rpi #1 SMP PREEMPT Wed Mar 13 14:11:28 MDT 2024 aarch64 GNU/LinuxLogs
dmesg
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x414fd0b1]
[ 0.000000] Linux version 6.6.21-2-rpi (builduser@leming) (aarch64-unknown-linux-gnu-gcc (GCC) 12.1.0, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Wed Mar 13 14:11:28 MDT 2024
[ 0.000000] KASLR enabled
[ 0.000000] random: crng init done
[ 0.000000] Machine model: Raspberry Pi 5 Model B Rev 1.0
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: created CMA memory pool at 0x0000000002000000, size 320 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] OF: reserved mem: 0x0000000002000000..0x0000000015ffffff (327680 KiB) map reusable linux,cma
[ 0.000000] OF: reserved mem: 0x0000000000000000..0x000000000007ffff (512 KiB) nomap non-reusable atf@0
[ 0.000000] OF: reserved mem: 0x000000003fd165a0..0x000000003fd165e4 (0 KiB) nomap non-reusable nvram@0
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x0000000000000000-0x00000000ffffffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal [mem 0x0000000100000000-0x00000001ffffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000007ffff]
[ 0.000000] node 0: [mem 0x0000000000080000-0x000000003f7fffff]
[ 0.000000] node 0: [mem 0x0000000040000000-0x00000001ffffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000001ffffffff]
[ 0.000000] On node 0, zone DMA: 2048 pages in unavailable ranges
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.2
[ 0.000000] percpu: Embedded 30 pages/cpu s85416 r8192 d29272 u122880
[ 0.000000] pcpu-alloc: s85416 r8192 d29272 u122880 alloc=30*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: Virtualization Host Extensions
[ 0.000000] CPU features: detected: Hardware dirty bit management
[ 0.000000] CPU features: detected: Spectre-v4
[ 0.000000] CPU features: detected: Spectre-BHB
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] alternatives: applying boot alternatives
[ 0.000000] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 smsc95xx.macaddr=D8:3A:DD:E8:8E:21 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000 root=/dev/nvme0n1p2 rw rootwait console=ttyAMA10,115200 console=tty1 fsck.repair=yes
[ 0.000000] Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 2062336
[ 0.000000] mem auto-init: stack:all(zero), heap alloc:off, heap free:off
[ 0.000000] software IO TLB: area num 4.
[ 0.000000] software IO TLB: mapped [mem 0x00000000fbfff000-0x00000000fffff000] (64MB)
[ 0.000000] Memory: 7789120K/8380416K available (14528K kernel code, 2300K rwdata, 4528K rodata, 5056K init, 1049K bss, 263616K reserved, 327680K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 45526 entries in 178 pages
[ 0.000000] ftrace: allocated 178 pages with 4 groups
[ 0.000000] trace event string verifier disabled
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] Trampoline variant of Tasks RCU enabled.
[ 0.000000] Rude variant of Tasks RCU enabled.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns
[ 0.000000] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000150] Console: colour dummy device 80x25
[ 0.000154] printk: console [tty1] enabled
[ 0.000316] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=216000)
[ 0.000325] pid_max: default: 32768 minimum: 301
[ 0.000356] LSM: initializing lsm=capability,integrity
[ 0.000418] Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000445] Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.000764] cgroup: Disabling memory control group subsystem
[ 0.001222] RCU Tasks: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.001266] RCU Tasks Rude: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.001299] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[ 0.001379] rcu: Hierarchical SRCU implementation.
[ 0.001383] rcu: Max phase no-delay instances is 1000.
[ 0.001996] EFI services will not be available.
[ 0.002100] smp: Bringing up secondary CPUs ...
[ 0.002300] Detected PIPT I-cache on CPU1
[ 0.002345] CPU1: Booted secondary processor 0x0000000100 [0x414fd0b1]
[ 0.002565] Detected PIPT I-cache on CPU2
[ 0.002599] CPU2: Booted secondary processor 0x0000000200 [0x414fd0b1]
[ 0.002812] Detected PIPT I-cache on CPU3
[ 0.002843] CPU3: Booted secondary processor 0x0000000300 [0x414fd0b1]
[ 0.002872] smp: Brought up 1 node, 4 CPUs
[ 0.002891] SMP: Total of 4 processors activated.
[ 0.002895] CPU features: detected: 32-bit EL0 Support
[ 0.002899] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[ 0.002904] CPU features: detected: Common not Private translations
[ 0.002907] CPU features: detected: CRC32 instructions
[ 0.002912] CPU features: detected: RCpc load-acquire (LDAPR)
[ 0.002915] CPU features: detected: LSE atomic instructions
[ 0.002919] CPU features: detected: Privileged Access Never
[ 0.002922] CPU features: detected: RAS Extension Support
[ 0.002926] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[ 0.002965] CPU: All CPU(s) started at EL2
[ 0.002969] alternatives: applying system-wide alternatives
[ 0.004978] devtmpfs: initialized
[ 0.007973] Enabled cp15_barrier support
[ 0.007982] Enabled setend support
[ 0.008033] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.008043] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[ 0.011411] pinctrl core: initialized pinctrl subsystem
[ 0.011554] DMI not present or invalid.
[ 0.011723] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.012205] DMA: preallocated 1024 KiB GFP_KERNEL pool for atomic allocations
[ 0.012270] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.012363] DMA: preallocated 1024 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.012384] audit: initializing netlink subsys (disabled)
[ 0.012440] audit: type=2000 audit(0.008:1): state=initialized audit_enabled=0 res=1
[ 0.012575] thermal_sys: Registered thermal governor 'step_wise'
[ 0.012589] cpuidle: using governor menu
[ 0.012651] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.012684] ASID allocator initialised with 32768 entries
[ 0.012975] Serial: AMBA PL011 UART driver
[ 0.013936] bcm2835-mbox 107c013880.mailbox: mailbox enabled
[ 0.014292] 107d001000.serial: ttyAMA10 at MMIO 0x107d001000 (irq = 15, base_baud = 0) is a PL011 rev2
[ 0.014305] printk: console [ttyAMA10] enabled
[ 0.740830] raspberrypi-firmware soc:firmware: Attached to firmware from 2024-02-16T15:28:41, variant start_cd
[ 0.754885] raspberrypi-firmware soc:firmware: Firmware hash is 4c845bd300000000000000000000000000000000
[ 0.770830] Modules: 2G module region forced by RANDOMIZE_MODULE_REGION_FULL
[ 0.777911] Modules: 0 pages in range for non-PLT usage
[ 0.777913] Modules: 517376 pages in range for PLT usage
[ 0.855181] raid6: neonx8 gen() 7929 MB/s
[ 0.932817] raid6: neonx4 gen() 7872 MB/s
[ 1.005121] raid6: neonx2 gen() 6654 MB/s
[ 1.077426] raid6: neonx1 gen() 5264 MB/s
[ 1.149741] raid6: int64x8 gen() 3504 MB/s
[ 1.222050] raid6: int64x4 gen() 3688 MB/s
[ 1.294355] raid6: int64x2 gen() 3079 MB/s
[ 1.366665] raid6: int64x1 gen() 2532 MB/s
[ 1.370947] raid6: using algorithm neonx8 gen() 7929 MB/s
[ 1.444386] raid6: .... xor() 5984 MB/s, rmw enabled
[ 1.449367] raid6: using neon recovery algorithm
[ 1.454132] bcm2835-dma 1000010000.dma: DMA legacy API manager, dmachans=0x1
[ 1.461577] iommu: Default domain type: Translated
[ 1.466564] iommu: DMA domain TLB invalidation policy: strict mode
[ 1.472861] SCSI subsystem initialized
[ 1.476656] usbcore: registered new interface driver usbfs
[ 1.482168] usbcore: registered new interface driver hub
[ 1.487505] usbcore: registered new device driver usb
[ 1.492656] pps_core: LinuxPPS API ver. 1 registered
[ 1.497638] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[email protected]>
[ 1.506812] PTP clock support registered
[ 1.511005] vgaarb: loaded
[ 1.513810] clocksource: Switched to clocksource arch_sys_counter
[ 1.520030] VFS: Disk quotas dquot_6.6.0
[ 1.524585] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 1.531531] FS-Cache: Loaded
[ 1.534453] CacheFiles: Loaded
[ 1.539146] NET: Registered PF_INET protocol family
[ 1.544196] IP idents hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 1.554155] tcp_listen_portaddr_hash hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 1.562776] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 1.570558] TCP established hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 1.578788] TCP bind hash table entries: 65536 (order: 9, 2097152 bytes, linear)
[ 1.587832] TCP: Hash tables configured (established 65536 bind 65536)
[ 1.594533] MPTCP token hash table entries: 8192 (order: 5, 196608 bytes, linear)
[ 1.602168] UDP hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 1.609082] UDP-Lite hash table entries: 4096 (order: 5, 131072 bytes, linear)
[ 1.616490] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 1.622293] RPC: Registered named UNIX socket transport module.
[ 1.628244] RPC: Registered udp transport module.
[ 1.632963] RPC: Registered tcp transport module.
[ 1.637682] RPC: Registered tcp-with-tls transport module.
[ 1.643186] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.649655] PCI: CLS 0 bytes, default 64
[ 1.653657] Trying to unpack rootfs image as initramfs...
[ 1.659208] kvm [1]: IPA Size Limit: 40 bits
[ 1.663525] kvm [1]: vgic interrupt IRQ9
[ 1.667477] kvm [1]: VHE mode initialized successfully
[ 1.673029] Initialise system trusted keyrings
[ 1.677549] workingset: timestamp_bits=46 max_order=21 bucket_order=0
[ 1.684046] zbud: loaded
[ 1.686768] NFS: Registering the id_resolver key type
[ 1.691855] Key type id_resolver registered
[ 1.696051] Key type id_legacy registered
[ 1.700081] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.706813] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 1.714463] xor: measuring software checksum speed
[ 1.720271] 8regs : 9926 MB/sec
[ 1.725648] 32regs : 9835 MB/sec
[ 1.730745] arm64_neon : 13566 MB/sec
[ 1.735115] xor: using function: arm64_neon (13566 MB/sec)
[ 1.740622] Key type asymmetric registered
[ 1.744731] Asymmetric key parser 'x509' registered
[ 1.749646] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 1.757130] io scheduler mq-deadline registered
[ 1.761678] io scheduler kyber registered
[ 1.765714] io scheduler bfq registered
[ 1.769835] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7c502000, parent irq: 26)
[ 1.778998] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d503000, parent irq: 27)
[ 1.786746] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508380, parent irq: 28)
[ 1.794487] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d508400, parent irq: 29)
[ 1.802234] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7d510600, parent irq: 30)
[ 1.811381] irq_brcmstb_l2: registered L2 intc (/soc/intc@7d517b00, parent irq: 31)
[ 1.820457] simple-framebuffer 3f800000.framebuffer: framebuffer at 0x3f800000, 0x3f4800 bytes
[ 1.829155] simple-framebuffer 3f800000.framebuffer: format=r5g6b5, mode=1920x1080x16, linelength=3840
[ 1.832636] Freeing initrd memory: 8452K
[ 1.844088] Console: switching to colour frame buffer device 240x67
[ 1.851900] simple-framebuffer 3f800000.framebuffer: fb0: simplefb registered!
[ 1.892945] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled
[ 1.899674] 107d50c000.serial: ttyS0 at MMIO 0x107d50c000 (irq = 33, base_baud = 6000000) is a Broadcom BCM7271 UART
[ 1.910311] serial serial0: tty port ttyS0 registered
[ 1.915695] iproc-rng200 107d208000.rng: hwrng registered
[ 1.921177] vc-mem: phys_addr:0x00000000 mem_base=0x3fc00000 mem_size:0x40000000(1024 MiB)
[ 1.929721] bcm2712-iommu-cache 1000005b00.iommuc: bcm2712_iommu_cache_probe
[ 1.938843] brd: module loaded
[ 1.943448] loop: module loaded
[ 1.946728] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.954115] Loading iSCSI transport class v2.0-870.
[ 1.959939] usbcore: registered new device driver r8152-cfgselector
[ 1.966251] usbcore: registered new interface driver r8152
[ 1.971769] usbcore: registered new interface driver lan78xx
[ 1.977460] usbcore: registered new interface driver smsc95xx
[ 1.983290] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 1.989084] dwc_otg: FIQ enabled
[ 1.989085] dwc_otg: NAK holdoff enabled
[ 1.989087] dwc_otg: FIQ split-transaction FSM enabled
[ 1.989089] Module dwc_common_port init
[ 1.989224] usbcore: registered new interface driver uas
[ 1.994572] usbcore: registered new interface driver usb-storage
[ 2.000701] mousedev: PS/2 mouse device common for all mice
[ 2.014308] rpi-rtc soc:rpi_rtc: registered as rtc0
[ 2.020713] rpi-rtc soc:rpi_rtc: setting system clock to 2024-03-17T15:54:49 UTC (1710690889)
[ 2.029625] bcm2835-wdt bcm2835-wdt: Poweroff handler already present!
[ 2.036192] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 2.044985] sdhci: Secure Digital Host Controller Interface driver
[ 2.051213] sdhci: Copyright(c) Pierre Ossman
[ 2.055613] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.061443] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.067503] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
[ 2.073981] hid: raw HID events driver (C) Jiri Kosina
[ 2.079152] usbcore: registered new interface driver usbhid
[ 2.084747] usbhid: USB HID core driver
[ 2.088815] hw perfevents: enabled with armv8_cortex_a76 PMU driver, 7 counters available
[ 2.097155] NET: Registered PF_PACKET protocol family
[ 2.102276] Key type dns_resolver registered
[ 2.109759] registered taskstats version 1
[ 2.113920] Loading compiled-in X.509 certificates
[ 2.120566] Key type .fscrypt registered
[ 2.124810] Key type fscrypt-provisioning registered
[ 2.130520] Btrfs loaded, zoned=no, fsverity=yes
[ 2.135986] brcm-pcie 1000110000.pcie: host bridge /axi/pcie@110000 ranges:
[ 2.143308] brcm-pcie 1000110000.pcie: No bus range found for /axi/pcie@110000, using [bus 00-ff]
[ 2.152897] brcm-pcie 1000110000.pcie: MEM 0x1b00000000..0x1bfffffffb -> 0x0000000000
[ 2.161490] brcm-pcie 1000110000.pcie: MEM 0x1800000000..0x1affffffff -> 0x0400000000
[ 2.170088] brcm-pcie 1000110000.pcie: IB MEM 0x0000000000..0x0fffffffff -> 0x1000000000
[ 2.179841] brcm-pcie 1000110000.pcie: Forcing gen 3
[ 2.185263] brcm-pcie 1000110000.pcie: PCI host bridge to bus 0000:00
[ 2.192012] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.197798] pci_bus 0000:00: root bus resource [mem 0x1b00000000-0x1bfffffffb] (bus address [0x00000000-0xfffffffb])
[ 2.208651] pci_bus 0000:00: root bus resource [mem 0x1800000000-0x1affffffff pref] (bus address [0x400000000-0x6ffffffff])
[ 2.220118] pci 0000:00:00.0: [14e4:2712] type 01 class 0x060400
[ 2.226445] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 2.232792] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 2.345811] brcm-pcie 1000110000.pcie: link up, 8.0 GT/s PCIe x1 (!SSC)
[ 2.352746] pci 0000:01:00.0: [1e49:0071] type 00 class 0x010802
[ 2.359064] pci 0000:01:00.0: reg 0x10: [mem 0x1b00000000-0x1b00003fff 64bit]
[ 2.366652] pci 0000:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 63.012 Gb/s with 16.0 GT/s PCIe x4 link)
[ 2.393834] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 2.400854] pci 0000:00:00.0: BAR 8: assigned [mem 0x1b00000000-0x1b000fffff]
[ 2.408305] pci 0000:01:00.0: BAR 0: assigned [mem 0x1b00000000-0x1b00003fff 64bit]
[ 2.416283] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 2.421549] pci 0000:00:00.0: bridge window [mem 0x1b00000000-0x1b000fffff]
[ 2.429000] pci 0000:00:00.0: Max Payload Size set to 512/ 512 (was 128), Max Read Rq 512Source: raspberrypi/linux