[BPI-R4] how to activate key B PCIe2 @ 11280000? [solved]

The main driver bound with the modem, so that’s ok now at least. Maybe share your full kernel log (dmesg) so we can know what’s missing.

Also ModemManager sometimes fails to detect the T99W175 modem depending on the firmware version of the modem. However, OpenWrt umbim (and luci-proto-mbim) should always work.

Here:

root@bpi-r4:/# rmmod mhi_wwan_ctrl
[  692.447179] wwan wwan0: port wwan0at0 disconnected
[  692.452114] wwan wwan0: port wwan0mbim0 disconnected
[  692.457198] wwan wwan0: port wwan0qcdm0 disconnected
root@bpi-r4:/# modprobe mhi_wwan_ctrl
[  704.615764] mhi-pci-generic 0003:01:00.0: PME# disabled
[  704.621003] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[  704.652384] wwan wwan0: port wwan0qcdm0 attached
[  704.657207] wwan wwan0: port wwan0mbim0 attached
[  704.662015] wwan wwan0: port wwan0at0 attached
root@bpi-r4:/# ls -l /dev/wwan0*
crw-------    1 root     root      247,   2 Jun  4 03:02 /dev/wwan0at0
crw-------    1 root     root      247,   1 Jun  4 03:02 /dev/wwan0mbim0
crw-------    1 root     root      247,   0 Jun  4 03:02 /dev/wwan0qcdm0
root@bpi-r4:/# umbim -d /dev/wwan0mbim0 caps
[  593.810784] mhi-pci-generic 0003:01:00.0: PME# disabled
[  593.816033] mhi-pci-generic 0003:01:00.0: enabling bus mastering
  devicetype: 0001 - embedded
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 8000007C
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 000F
  deviceid: XXXXXXXXXXXXXXX
  firmwareinfo: T99W175.T3.0.0.4.5.CU.002
031
  hardwareinfo: Snapdragon(TM) X55

Hmm so I rebooted and now there are some wwan0 devices. The same 3 you list actually. I’ll put dmesg at the end of this post.

Interestingly modprob mhi_wwan_ctrl tells me

modprobe: FATAL: Module mhi_wwan_ctrl not found in directory /lib/modules/6.6.32

But opkg install kmod-mhi-wwan-ctrl says “installed in root is up to date”

root@zombie-home:~# umbim -d /dev/wwan0mbim0 caps
  devicetype: 0001 - embedded
  cellularclass: 0001
  voiceclass: 0001 - no-voice
  simclass: 0002
  dataclass: 0000
  smscaps: 0003
  controlcaps: 0001
  maxsessions: 000F
  deviceid: ******
  firmwareinfo: T99W175.F0.0.0.5.4.GC.004
062
  hardwareinfo: DELL Snapdragon X55

I tried going in through luci web interface and adding a new network interface using protocol MBIM Cellular, APN fast.t-mobile.com (what I found online for t-mo which is the sim card type I have in sim1). And pointed it at device /dev/wwan0mbim0. After adding that interface and saving and applying it shows up with “Error: Network device is not present”

dmesg:

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd090]
[    0.000000] Linux version 6.6.32 (builder@buildhost) (aarch64-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r26504-d4acd05218) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Sun Jun  2 20:43:46 2024
[    0.000000] Machine model: Bananapi BPI-R4
[    0.000000] OF: reserved mem: 0x0000000042ff0000..0x0000000042ffffff (64 KiB) map non-reusable ramoops@42ff0000
[    0.000000] OF: reserved mem: 0x0000000043000000..0x000000004304ffff (320 KiB) nomap non-reusable secmon@43000000
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x00000000ffffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   [mem 0x0000000100000000-0x000000013fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000042ffffff]
[    0.000000]   node   0: [mem 0x0000000043000000-0x000000004304ffff]
[    0.000000]   node   0: [mem 0x0000000043050000-0x000000013fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000013fffffff]
[    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.4
[    0.000000] percpu: Embedded 18 pages/cpu s35048 r8192 d30488 u73728
[    0.000000] pcpu-alloc: s35048 r8192 d30488 u73728 alloc=18*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: GIC system register CPU interface
[    0.000000] CPU features: detected: Spectre-BHB
[    0.000000] CPU features: kernel page table isolation disabled by kernel configuration
[    0.000000] alternatives: applying boot alternatives
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear)
[    0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 1032192
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] software IO TLB: area num 4.
[    0.000000] software IO TLB: mapped [mem 0x00000000fa7b6000-0x00000000fe7b6000] (64MB)
[    0.000000] Memory: 4034116K/4194304K available (8768K kernel code, 900K rwdata, 2564K rodata, 384K init, 304K bss, 160188K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[    0.000000] GICv3: 416 SPIs implemented
[    0.000000] GICv3: 0 Extended SPIs implemented
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GICv3: GICv3 features: 16 PPIs
[    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x000000000c080000
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] arch_timer: cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000000] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000060] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.000066] pid_max: default: 32768 minimum: 301
[    0.002140] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.002153] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.003638] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.003921] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1.
[    0.003999] rcu: Hierarchical SRCU implementation.
[    0.004001] rcu: 	Max phase no-delay instances is 1000.
[    0.004281] smp: Bringing up secondary CPUs ...
[    0.004493] Detected VIPT I-cache on CPU1
[    0.004526] GICv3: CPU1: found redistributor 1 region 0:0x000000000c0a0000
[    0.004547] CPU1: Booted secondary processor 0x0000000001 [0x411fd090]
[    0.004793] Detected VIPT I-cache on CPU2
[    0.004813] GICv3: CPU2: found redistributor 2 region 0:0x000000000c0c0000
[    0.004823] CPU2: Booted secondary processor 0x0000000002 [0x411fd090]
[    0.005052] Detected VIPT I-cache on CPU3
[    0.005072] GICv3: CPU3: found redistributor 3 region 0:0x000000000c0e0000
[    0.005082] CPU3: Booted secondary processor 0x0000000003 [0x411fd090]
[    0.005111] smp: Brought up 1 node, 4 CPUs
[    0.005115] SMP: Total of 4 processors activated.
[    0.005118] CPU features: detected: 32-bit EL0 Support
[    0.005120] CPU features: detected: CRC32 instructions
[    0.005137] spectre-bhb mitigation disabled by compile time option
[    0.005151] CPU features: emulated: Privileged Access Never (PAN) using TTBR0_EL1 switching
[    0.005153] CPU: All CPU(s) started at EL2
[    0.005155] alternatives: applying system-wide alternatives
[    0.008247] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008259] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.009212] pinctrl core: initialized pinctrl subsystem
[    0.010065] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.010343] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations
[    0.010443] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.010537] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.010797] thermal_sys: Registered thermal governor 'fair_share'
[    0.010800] thermal_sys: Registered thermal governor 'bang_bang'
[    0.010801] thermal_sys: Registered thermal governor 'step_wise'
[    0.010803] thermal_sys: Registered thermal governor 'user_space'
[    0.010842] ASID allocator initialised with 65536 entries
[    0.011587] pstore: Using crash dump compression: deflate
[    0.011592] printk: console [ramoops-1] enabled
[    0.011812] pstore: Registered ramoops as persistent store backend
[    0.011817] ramoops: using 0x10000@0x42ff0000, ecc: 0
[    0.018612] Modules: 29504 pages in range for non-PLT usage
[    0.018619] Modules: 521024 pages in range for PLT usage
[    0.019292] cryptd: max_cpu_qlen set to 1000
[    0.020025] SCSI subsystem initialized
[    0.020099] libata version 3.00 loaded.
[    0.020955] clocksource: Switched to clocksource arch_sys_counter
[    0.022610] NET: Registered PF_INET protocol family
[    0.022740] IP idents hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.025274] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear)
[    0.025298] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.025308] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear)
[    0.025407] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes, linear)
[    0.025819] TCP: Hash tables configured (established 32768 bind 32768)
[    0.025909] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.025967] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear)
[    0.026303] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.026345] PCI: CLS 0 bytes, default 64
[    0.027285] workingset: timestamp_bits=46 max_order=20 bucket_order=0
[    0.031000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.031006] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.048946] jitterentropy: Initialization failed with host not compliant with requirements: 9
[    0.048990] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.049874] mtk-xsphy soc:xphy@11e10000: failed to get ref_clk(id-1)
[    0.050395] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.050414] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.050426] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.050438] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.050525] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.050535] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.050545] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.050554] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.050573] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.050581] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.050642] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.050652] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.050661] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.050671] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.050687] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.050695] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.050767] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.050777] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.050787] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.050796] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.050811] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.050819] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    0.055174] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    0.057323] printk: console [ttyS0] disabled
[    0.077610] 11000000.serial: ttyS0 at MMIO 0x11000000 (irq = 99, base_baud = 2500000) is a ST16650V2
[    0.077646] printk: console [ttyS0] enabled
[    1.000868] 11000100.serial: ttyS1 at MMIO 0x11000100 (irq = 100, base_baud = 2500000) is a ST16650V2
[    1.030740] 11000200.serial: ttyS2 at MMIO 0x11000200 (irq = 101, base_baud = 2500000) is a ST16650V2
[    1.042635] loop: module loaded
[    1.047053] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.052393] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.060618] 2 fixed-partitions partitions found on MTD device spi0.0
[    1.066986] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    1.073914] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    1.080928] Creating 2 MTD partitions on "spi0.0":
[    1.085719] 0x000000000000-0x000000200000 : "bl2"
[    1.091801] 0x000000200000-0x000008000000 : "ubi"
[    1.168623] ubi0: default fastmap pool size: 50
[    1.173165] ubi0: default fastmap WL pool size: 25
[    1.177944] ubi0: attaching mtd1
[    1.998153] ubi0: scanning is finished
[    2.011781] ubi0: attached mtd1 (name "ubi", size 126 MiB)
[    2.017264] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.024134] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.030908] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.037860] ubi0: good PEBs: 1008, bad PEBs: 0, corrupted PEBs: 0
[    2.043942] ubi0: user volume: 7, internal volumes: 1, max. volumes count: 128
[    2.051152] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
[    2.059489] ubi0: available PEBs: 0, total reserved PEBs: 1008, PEBs reserved for bad PEB handling: 20
[    2.068786] ubi0: background thread "ubi_bgt0d" started, PID 314
[    2.068872] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    2.081751] OF: Bad cell count for /soc/spi@11007000/spi_nand@0/partitions
[    2.090311] block ubiblock0_4: created from ubi0:4(fit)
[    2.222367] i2c_dev: i2c /dev entries driver
[    2.229623] mtk-wdt 1001c000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    2.237680] mtk-cpufreq mtk-cpufreq: failed to initialize dvfs info for cpu0
[    2.245375] NET: Registered PF_INET6 protocol family
[    2.250762] Segment Routing with IPv6
[    2.254443] In-situ OAM (IOAM) with IPv6
[    2.258384] NET: Registered PF_PACKET protocol family
[    2.263444] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[    2.276477] 8021q: 802.1Q VLAN Support v1.8
[    2.293014] phy phy-soc:[email protected]: type_sw - reg 0x218, index 0
[    2.300171] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.307512] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.313796] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.322238] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.359287] mtk-msdc 11230000.mmc: Final PAD_DS_TUNE: 0x13014
[    2.365158] mmc0: new HS400 MMC card at address 0001
[    2.370720] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
[    2.376282] Alternate GPT is invalid, using primary GPT.
[    2.381843]  mmcblk0: p1 p2 p3 p4 p5 p128
[    2.386684] mmcblk0boot0: mmc0:0001 8GTF4R 4.00 MiB
[    2.392175] mmcblk0boot1: mmc0:0001 8GTF4R 4.00 MiB
[    2.397264] mmcblk0rpmb: mmc0:0001 8GTF4R 512 KiB, chardev (248:0)
[    2.616515] mtk-pcie-gen3 11280000.pcie: set IO trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x200000
[    2.627903] mtk-pcie-gen3 11280000.pcie: set MEM trans window[1]: cpu_addr = 0x20200000, pci_addr = 0x20200000, size = 0x200000
[    2.639367] mtk-pcie-gen3 11280000.pcie: set MEM trans window[2]: cpu_addr = 0x20400000, pci_addr = 0x20400000, size = 0x400000
[    2.650831] mtk-pcie-gen3 11280000.pcie: set MEM trans window[3]: cpu_addr = 0x20800000, pci_addr = 0x20800000, size = 0x800000
[    2.662295] mtk-pcie-gen3 11280000.pcie: set MEM trans window[4]: cpu_addr = 0x21000000, pci_addr = 0x21000000, size = 0x1000000
[    2.673845] mtk-pcie-gen3 11280000.pcie: set MEM trans window[5]: cpu_addr = 0x22000000, pci_addr = 0x22000000, size = 0x2000000
[    2.685395] mtk-pcie-gen3 11280000.pcie: set MEM trans window[6]: cpu_addr = 0x24000000, pci_addr = 0x24000000, size = 0x4000000
[    2.697190] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0003:00
[    2.703803] pci_bus 0003:00: root bus resource [bus 00-ff]
[    2.709279] pci_bus 0003:00: root bus resource [io  0x0000-0x1fffff] (bus address [0x20000000-0x201fffff])
[    2.718921] pci_bus 0003:00: root bus resource [mem 0x20200000-0x27ffffff]
[    2.725787] pci_bus 0003:00: scanning bus
[    2.729807] pci 0003:00:00.0: [14c3:7988] type 01 class 0x060400
[    2.735819] pci 0003:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.742660] pci 0003:00:00.0: PME# supported from D0 D3hot D3cold
[    2.748743] pci 0003:00:00.0: PME# disabled
[    2.754052] pci_bus 0003:00: fixups for bus
[    2.758227] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    2.764920] pci 0003:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.772918] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    2.779657] pci_bus 0003:01: scanning bus
[    2.783682] pci 0003:01:00.0: [105b:e0b0] type 00 class 0x0d4000
[    2.789696] pci 0003:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    2.796487] pci 0003:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[    2.803389] pci 0003:01:00.0: PME# supported from D0 D3hot D3cold
[    2.809473] pci 0003:01:00.0: PME# disabled
[    2.813683] pci 0003:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0003:00:00.0 (capable of 31.506 Gb/s with 16.0 GT/s PCIe x2 link)
[    2.850988] pci_bus 0003:01: fixups for bus
[    2.855161] pci_bus 0003:01: bus scan returning with max=01
[    2.860722] pci_bus 0003:01: busn_res: [bus 01-ff] end is updated to 01
[    2.867332] pci_bus 0003:00: bus scan returning with max=01
[    2.872907] pci 0003:00:00.0: BAR 8: assigned [mem 0x20200000-0x202fffff]
[    2.879684] pci 0003:00:00.0: BAR 0: assigned [mem 0x20300000-0x20307fff 64bit]
[    2.886989] pci 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    2.894298] pci 0003:01:00.0: BAR 2: assigned [mem 0x20201000-0x20201fff 64bit]
[    2.901605] pci 0003:00:00.0: PCI bridge to [bus 01]
[    2.906560] pci 0003:00:00.0:   bridge window [mem 0x20200000-0x202fffff]
[    2.913350] pci 0003:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.921791] pci 0003:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.930298] pcieport 0003:00:00.0: assign IRQ: got 112
[    2.935434] pcieport 0003:00:00.0: enabling device (0000 -> 0002)
[    2.941527] pcieport 0003:00:00.0: enabling bus mastering
[    2.947284] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    2.955725] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
[    2.964154] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
[    2.972584] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
[    2.981011] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
[    2.989435] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
[    2.997861] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6
[    3.006290] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7
[    3.014717] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    3.023142] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    3.031568] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    3.040079] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    3.048591] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    3.057104] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    3.065617] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    3.074130] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15
[    3.082644] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16
[    3.091246] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17
[    3.099843] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18
[    3.108443] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19
[    3.117044] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20
[    3.125644] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21
[    3.134245] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22
[    3.142845] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23
[    3.151445] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24
[    3.160043] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25
[    3.168642] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26
[    3.177242] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27
[    3.185841] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28
[    3.194441] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29
[    3.203041] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30
[    3.211643] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31
[    3.220652] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    3.229150] pcieport 0003:00:00.0: PME: Signaling with IRQ 113
[    3.235088] pcieport 0003:00:00.0: AER: enabled with IRQ 113
[    3.240774] pcieport 0003:00:00.0: save config 0x00: 0x798814c3
[    3.246691] pcieport 0003:00:00.0: save config 0x04: 0x00100406
[    3.252603] pcieport 0003:00:00.0: save config 0x08: 0x06040001
[    3.258512] pcieport 0003:00:00.0: save config 0x0c: 0x00010000
[    3.264421] pcieport 0003:00:00.0: save config 0x10: 0x20300004
[    3.270329] pcieport 0003:00:00.0: save config 0x14: 0x00000000
[    3.276238] pcieport 0003:00:00.0: save config 0x18: 0x00010100
[    3.282148] pcieport 0003:00:00.0: save config 0x1c: 0x000001f1
[    3.288056] pcieport 0003:00:00.0: save config 0x20: 0x20202020
[    3.293965] pcieport 0003:00:00.0: save config 0x24: 0x0001fff1
[    3.299873] pcieport 0003:00:00.0: save config 0x28: 0x00000000
[    3.305782] pcieport 0003:00:00.0: save config 0x2c: 0x00000000
[    3.311692] pcieport 0003:00:00.0: save config 0x30: 0x00000000
[    3.317600] pcieport 0003:00:00.0: save config 0x34: 0x00000080
[    3.323510] pcieport 0003:00:00.0: save config 0x38: 0x00000000
[    3.329417] pcieport 0003:00:00.0: save config 0x3c: 0x00020170
[    3.335664] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    3.342978] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    3.349242] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    3.357676] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    3.700956] mtk-pcie-gen3 11290000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    3.709745] mtk-pcie-gen3: probe of 11290000.pcie failed with error -110
[    3.716684] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.723997] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.730257] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.738690] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    4.080967] mtk-pcie-gen3 11300000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.089747] mtk-pcie-gen3: probe of 11300000.pcie failed with error -110
[    4.096611] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    4.103922] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    4.110182] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    4.118614] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.460967] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.469746] mtk-pcie-gen3: probe of 11310000.pcie failed with error -110
[    4.476928] FIT: Detected U-Boot 2024.01-OpenWrt-r25899-98235e60ed
[    4.483111] FIT: Selected configuration: "config-mt7988a-bananapi-bpi-r4" (OpenWrt bananapi_bpi-r4)
[    4.492154] FIT:           kernel sub-image 0x00001000..0x0058c037 "kernel-1" (ARM64 OpenWrt Linux-6.6.32) 
[    4.501889] FIT:          flat_dt sub-image 0x0058d000..0x00597921 "fdt-1" (ARM64 OpenWrt bananapi_bpi-r4 device tree blob) 
[    4.513100] FIT:          flat_dt sub-image 0x00598000..0x00598611 "fdt-mt7988a-bananapi-bpi-r4-emmc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-emmc) 
[    4.529429] FIT:          flat_dt sub-image 0x00599000..0x0059911c "fdt-mt7988a-bananapi-bpi-r4-rtc" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-rtc) 
[    4.545587] FIT:          flat_dt sub-image 0x0059a000..0x0059a5c9 "fdt-mt7988a-bananapi-bpi-r4-sd" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-sd) 
[    4.561570] FIT:          flat_dt sub-image 0x0059b000..0x0059b8eb "fdt-mt7988a-bananapi-bpi-r4-wifi-mt7996a" (ARM64 OpenWrt bananapi_bpi-r4 device tree overlay mt7988a-bananapi-bpi-r4-wifi-mt7996a) 
[    4.579286] FIT:       filesystem sub-image 0x0059c000..0x012ddfff "rootfs-1" (ARM64 OpenWrt bananapi_bpi-r4 rootfs) 
[    4.590116] block mmcblk0p5: mapped 1 uImage.FIT filesystem sub-image as /dev/fit0
[    4.597851] block mmcblk0p5: mapped remaing space as /dev/fitrw
[    4.742461] mtk_soc_eth 15100000.ethernet: generated random MAC address 65:74:68:25:64:00
[    4.752843] mtk_soc_eth 15100000.ethernet eth0: mediatek frame engine at 0xffffffc082780000, irq 103
[    4.762516] mtk_soc_eth 15100000.ethernet eth1: mediatek frame engine at 0xffffffc082780000, irq 103
[    4.772195] mtk_soc_eth 15100000.ethernet eth2: mediatek frame engine at 0xffffffc082780000, irq 103
[    4.865788] mt7530-mmio 15020000.switch: configuring for fixed/internal link mode
[    4.873298] mt7530-mmio 15020000.switch: Link is Up - 10Gbps/Full - flow control rx/tx
[    4.897643] mt7530-mmio 15020000.switch wan (uninitialized): PHY [mt7530-0:00] driver [MediaTek MT7988 PHY] (irq=115)
[    4.932981] mt7530-mmio 15020000.switch lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7988 PHY] (irq=116)
[    4.968254] mt7530-mmio 15020000.switch lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7988 PHY] (irq=117)
[    5.003490] mt7530-mmio 15020000.switch lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7988 PHY] (irq=118)
[    5.014495] mtk_soc_eth 15100000.ethernet eth0: entered promiscuous mode
[    5.021213] DSA: tree 0 setup
[    5.024782] UBI: auto-attach mtd1
[    5.028090] ubi: mtd1 is already attached to ubi0
[    5.032792] UBI error: cannot attach mtd1
[    5.036848] clk: Disabling unused clocks
[    5.043402] VFS: Mounted root (squashfs filesystem) readonly on device 259:1.
[    5.050613] Freeing unused kernel memory: 384K
[    5.055097] Run /sbin/init as init process
[    5.059183]   with arguments:
[    5.062142]     /sbin/init
[    5.064837]   with environment:
[    5.067967]     HOME=/
[    5.070314]     TERM=linux
[    5.167856] init: Console is alive
[    5.171359] init: - watchdog -
[    5.483222] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    5.521896] usbcore: registered new interface driver usbfs
[    5.527408] usbcore: registered new interface driver hub
[    5.532768] usbcore: registered new device driver usb
[    5.538313] gpio_button_hotplug: loading out-of-tree module taints kernel.
[    5.548202] xhci-mtk 11200000.usb: supply vbus not found, using dummy regulator
[    5.555609] xhci-mtk 11200000.usb: supply vusb33 not found, using dummy regulator
[    5.563526] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.568752] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 1
[    5.579261] xhci-mtk 11200000.usb: hcc params 0x01403f99 hci version 0x110 quirks 0x0000000000200010
[    5.588416] xhci-mtk 11200000.usb: irq 119, io mem 0x11200000
[    5.594230] xhci-mtk 11200000.usb: xHCI Host Controller
[    5.599445] xhci-mtk 11200000.usb: new USB bus registered, assigned bus number 2
[    5.606857] xhci-mtk 11200000.usb: Host supports USB 3.2 Enhanced SuperSpeed
[    5.614185] hub 1-0:1.0: USB hub found
[    5.617942] hub 1-0:1.0: 1 port detected
[    5.622057] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.630345] hub 2-0:1.0: USB hub found
[    5.634166] hub 2-0:1.0: 1 port detected
[    5.640563] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    5.650391] init: - preinit -
[    5.857090] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[    5.865247] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[    5.879498] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[    6.090958] usb 1-1: new high-speed USB device number 2 using xhci-mtk
[    6.285039] hub 1-1:1.0: USB hub found
[    6.288954] hub 1-1:1.0: 5 ports detected
[    6.431771] usb 2-1: new SuperSpeed USB device number 2 using xhci-mtk
[    6.470861] hub 2-1:1.0: USB hub found
[    6.474758] hub 2-1:1.0: 4 ports detected
[    6.980962] usb 1-1.5: new high-speed USB device number 3 using xhci-mtk
[    7.200959] random: crng init done
[    7.988931] EXT4-fs (fitrw): recovery complete
[    7.993995] EXT4-fs (fitrw): mounted filesystem d75c11ed-df61-42e1-bcca-62d7a84e779f r/w with ordered data mode. Quota mode: disabled.
[    8.006783] mount_root: switching to ext4 overlay
[    8.012375] overlayfs: null uuid detected in lower fs '/', falling back to xino=off,index=off,nfs_export=off.
[    8.023469] urandom-seed: Seeding with /etc/urandom.seed
[    8.057193] procd: - early -
[    8.060115] procd: - watchdog -
[    8.593084] procd: - watchdog -
[    8.596401] procd: - ubus -
[    8.749552] procd: - init -
[    8.938459] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.991622] pca954x 1-0070: supply vdd not found, using dummy regulator
[    8.998972] i2c i2c-1: Added multiplexed i2c bus 2
[    9.004017] i2c i2c-1: Added multiplexed i2c bus 3
[    9.008922] i2c i2c-1: Added multiplexed i2c bus 4
[    9.013863] i2c i2c-1: Added multiplexed i2c bus 5
[    9.018660] pca954x 1-0070: registered 4 multiplexed busses for I2C switch pca9545
[    9.023074] urngd: v1.0.2 started.
[    9.031937] crypto-safexcel 15600000.crypto: can't request region for resource [mem 0x15600000-0x1577ffff]
[    9.041629] crypto-safexcel 15600000.crypto: failed to get resource
[    9.047891] crypto-safexcel: probe of 15600000.crypto failed with error -16
[    9.061996] at24 2-0050: supply vcc not found, using dummy regulator
[    9.093555] at24 2-0057: supply vcc not found, using dummy regulator
[    9.100540] at24 2-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
[    9.108013] usbcore: registered new interface driver cdc_wdm
[    9.114057] Loading modules backported from Linux version v6.6.15-0-g51f354b815c4
[    9.121534] Backport generated by backports.git 193becf2
[    9.130762] mhi-pci-generic 0003:01:00.0: assign IRQ: got 0
[    9.136372] mhi-pci-generic 0003:01:00.0: MHI PCI device found: foxconn-sdx55
[    9.143505] mhi-pci-generic 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    9.151868] mhi-pci-generic 0003:01:00.0: enabling device (0000 -> 0002)
[    9.158578] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[    9.164686] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    9.173125] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    9.181553] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    9.190064] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    9.198576] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    9.207107] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[    9.213625] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100406
[    9.220142] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[    9.226659] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[    9.233177] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[    9.239692] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[    9.246208] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[    9.252726] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[    9.259241] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[    9.265758] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[    9.272277] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[    9.278793] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[    9.285310] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[    9.291827] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[    9.298342] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[    9.304859] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[    9.311789] mhi mhi0: Requested to power ON
[    9.315980] mhi mhi0: Power on setup success
[    9.432967] NET: Registered PF_QIPCRTR protocol family
[    9.439519] sfp sfp1: Host maximum power 3.0W
[    9.444395] sfp sfp2: Host maximum power 3.0W
[    9.451738] usbcore: registered new interface driver usbserial_generic
[    9.458288] usbserial: USB Serial support registered for generic
[    9.469391] xt_time: kernel timezone is -0000
[    9.474314] usbcore: registered new interface driver cdc_ether
[    9.480891] usbcore: registered new interface driver cdc_ncm
[    9.502086] wwan wwan0: port wwan0qcdm0 attached
[    9.506907] wwan wwan0: port wwan0mbim0 attached
[    9.511627] wwan wwan0: port wwan0at0 attached
[    9.577504] PPP generic driver version 2.4.2
[    9.582711] NET: Registered PF_PPPOX protocol family
[    9.588801] usbcore: registered new interface driver qmi_wwan
[    9.597216] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    9.605081] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <[email protected]>. All Rights Reserved.
[    9.618771] usbcore: registered new interface driver cdc_mbim
[    9.625880] usbcore: registered new interface driver option
[    9.631544] usbserial: USB Serial support registered for GSM modem (1-port)
[    9.640215] usbcore: registered new interface driver qcserial
[    9.646087] usbserial: USB Serial support registered for Qualcomm USB modem
[    9.654198] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.762306] sfp sfp1: module OEM              SFP-10G-SR       rev 02   sn CSY101O17489     dc 240123  
[    9.771730] mtk_soc_eth 15100000.ethernet eth2: switched to inband/10gbase-r link mode
[    9.801981] hwmon hwmon2: temp1_input not attached to any thermal zone
[   11.842599] mtk_soc_eth 15100000.ethernet eth0: Link is Down
[   11.854867] mtk_soc_eth 15100000.ethernet eth0: configuring for fixed/internal link mode
[   11.863049] mtk_soc_eth 15100000.ethernet eth0: Link is Up - 10Gbps/Full - flow control rx/tx
[   11.864645] mt7530-mmio 15020000.switch lan1: configuring for phy/internal link mode
[   11.880894] br-lan: port 1(lan1) entered blocking state
[   11.886170] br-lan: port 1(lan1) entered disabled state
[   11.891433] mt7530-mmio 15020000.switch lan1: entered allmulticast mode
[   11.898056] mtk_soc_eth 15100000.ethernet eth0: entered allmulticast mode
[   11.905046] mt7530-mmio 15020000.switch lan1: entered promiscuous mode
[   11.916285] mt7530-mmio 15020000.switch lan2: configuring for phy/internal link mode
[   11.924434] br-lan: port 2(lan2) entered blocking state
[   11.929673] br-lan: port 2(lan2) entered disabled state
[   11.934968] mt7530-mmio 15020000.switch lan2: entered allmulticast mode
[   11.941808] mt7530-mmio 15020000.switch lan2: entered promiscuous mode
[   11.950160] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[   11.951068] mt7530-mmio 15020000.switch lan3: configuring for phy/internal link mode
[   11.956699] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   11.964841] br-lan: port 3(lan3) entered blocking state
[   11.970999] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[   11.976198] br-lan: port 3(lan3) entered disabled state
[   11.982729] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[   11.987954] mt7530-mmio 15020000.switch lan3: entered allmulticast mode
[   11.994461] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   12.001256] mt7530-mmio 15020000.switch lan3: entered promiscuous mode
[   12.007579] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   12.015645] mtk_soc_eth 15100000.ethernet eth1: configuring for inband/10gbase-r link mode
[   12.020635] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   12.035473] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   12.042055] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   12.048589] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   12.052869] br-lan: port 4(eth1) entered blocking state
[   12.055116] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   12.060321] br-lan: port 4(eth1) entered disabled state
[   12.066839] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[   12.066845] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   12.072091] mtk_soc_eth 15100000.ethernet eth1: entered allmulticast mode
[   12.078575] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   12.085265] mtk_soc_eth 15100000.ethernet eth1: entered promiscuous mode
[   12.091872] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   12.102145] mt7530-mmio 15020000.switch wan: configuring for phy/internal link mode
[   12.105093] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   12.112368] br-wan: port 1(wan) entered blocking state
[   12.119308] mhi-pci-generic 0003:01:00.0: PME# enabled
[   12.130898] br-wan: port 1(wan) entered disabled state
[   12.141233] mt7530-mmio 15020000.switch wan: entered allmulticast mode
[   12.147948] mt7530-mmio 15020000.switch wan: entered promiscuous mode
[   12.157732] mtk_soc_eth 15100000.ethernet eth2: configuring for inband/10gbase-r link mode
[   12.190060] br-wan: port 2(eth2) entered blocking state
[   12.195328] br-wan: port 2(eth2) entered disabled state
[   12.200568] mtk_soc_eth 15100000.ethernet eth2: entered allmulticast mode
[   12.207564] mtk_soc_eth 15100000.ethernet eth2: entered promiscuous mode
[   14.760007] mt7530-mmio 15020000.switch lan3: Link is Up - 1Gbps/Full - flow control rx/tx
[   14.768688] br-lan: port 3(lan3) entered blocking state
[   14.773914] br-lan: port 3(lan3) entered forwarding state
[   15.814339] mhi-pci-generic 0003:01:00.0: PME# disabled
[   15.819578] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[   16.384363] mtk_soc_eth 15100000.ethernet eth2: Link is Up - 10Gbps/Full - flow control off
[   16.403196] br-wan: port 2(eth2) entered blocking state
[   16.408435] br-wan: port 2(eth2) entered forwarding state
[   21.102388] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[   21.108924] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   21.115457] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[   21.121978] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[   21.128494] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   21.135013] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   21.141532] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   21.148047] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   21.154566] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   21.161085] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   21.167599] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   21.174120] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[   21.180635] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   21.187153] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   21.193671] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   21.200186] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   21.206769] mhi-pci-generic 0003:01:00.0: PME# enabled
[   59.034487] mhi-pci-generic 0003:01:00.0: PME# disabled
[   59.039726] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[   62.614784] mhi-pci-generic 0003:01:00.0: save config 0x00: 0xe0b0105b
[   62.621330] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100402
[   62.627848] mhi-pci-generic 0003:01:00.0: save config 0x08: 0x0d400000
[   62.634371] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000010
[   62.640887] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[   62.647406] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[   62.653927] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[   62.660442] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[   62.666960] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[   62.673478] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   62.679993] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   62.686512] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0xe0b0105b
[   62.693031] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   62.699547] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   62.706067] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   62.712585] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   62.719165] mhi-pci-generic 0003:01:00.0: PME# enabled

Very strange. I researched a bit and you might be bitten by this issue or something similar:

Hmm, that is a pretty old post though from back in early 2023. Would hope if they were working on an update back then it would’ve been released by now?

But if it were the case, what would I need to do… figure out a way to downgrade the firmware on the modem?

I can try to look into that, but it seems like most things reference windows for firmware update tool, not sure if I have a windows machine with a slot that this modem will plug into lol. I’ll have to do some checking on that. I’m guessing I can order an adapter to work with something I do have, was just hoping to get this thing working without ordering more stuff.

Tempted to pull the trigger on just ordering a quectel 5g modem. They are a lot more expensive of a modem, but I’ve seen elsewhere it referenced as a lot better modem =/ I really have no idea since I’m not very experienced with any of this stuff.

It can also totally be that some incompatibility with ModemManager, or OpenWrt’s script-wrappers for ModemManager, was introduced when switching from Linux 6.1 to Linux 6.6. I don’t have much time to debug this a the moment, but maybe ask people in OpenWrt forums about this as the issue is not specific to the BananaPi R4 (everything on the PCIe/hardware side seems fine) but rather an issue with OpenWrt, ModemManager and that specific modem on Linux 6.6…

I MAY have something useful here: My ath10 9882 wifi card works on the pci bus. Any pcie 3 card (tested ath11k, wcn8755 mtk7915e and mtk7916) does not. It fails at setting up the pcie bus, claiming it is not compliant. I don’t know whether the pcie phy allows downclocking, but it may be a solution here

@frank-w : I tried several modules for this link, but the only I can make work are limited (<5w) PCI 1.1 modules. Do you know whether an overlay is possible that makes this PCIe link think it’s 1.1 only? edit : why I’m asking it: other modules fail detection with a PCIe link compliance error. Tried:

WCN6755 ath11k chip
rtl8125 dual 2.5gbe chip
9884 (ath10k)
9882 (ath10k) <-- actually works
mtk97915 (mt76)

As pcie cards are not defined in dts and i know no such property for pcie controller i guess overlay is not possible.

Imho this needs to be done in driver,but i’m no expert here so cannot guide you more than that.

@dangowrt : do you know whether I can force the phy behind the pcie link in the B key slot to be 1.1 compliant?

Believe I’m stuck in a similar or related issue with a different module. Any insight into this.

OpenWRT Snapshot / 6.6.34
Module: Quectel EM120R-GL (PCIE)

This is the failure on boot:

[   18.390951] mhi-pci-generic 0003:01:00.0: failed to power up MHI controller
[   18.398079] mhi-pci-generic: probe of 0003:01:00.0 failed with error -110
0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc SDX24 [Snapdragon X24 4G]
        Subsystem: Qualcomm Technologies, Inc Device 0307
        Flags: fast devsel
        Memory at 20200000 (64-bit, non-prefetchable) [size=4K]
        Memory at 20201000 (64-bit, non-prefetchable) [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=8/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, IntMsgNum 0
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Transaction Processing Hints
        Capabilities: [1d4] Latency Tolerance Reporting
        Capabilities: [1dc] L1 PM Substates
[    0.000000] Kernel command line: console=ttyS0,115200n1 pci=pcie_bus_perf root=/dev/fit0 rootwait
[    0.026324] PCI: CLS 0 bytes, default 64
[    0.049171] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    0.049190] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    0.049201] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    0.049214] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    0.049304] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    0.049315] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    0.049325] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    0.049335] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    0.049354] /soc/pcie@11290000: Failed to get clk index: 0 ret: -517
[    0.049362] mtk-pcie-gen3 11290000.pcie: failed to get clocks
[    0.049423] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    0.049432] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    0.049441] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    0.049451] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    0.049467] /soc/pcie@11300000: Failed to get clk index: 0 ret: -517
[    0.049475] mtk-pcie-gen3 11300000.pcie: failed to get clocks
[    0.049548] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    0.049558] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    0.049567] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    0.049575] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    0.049590] /soc/pcie@11310000: Failed to get clk index: 0 ret: -517
[    0.049597] mtk-pcie-gen3 11310000.pcie: failed to get clocks
[    2.294678] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    2.302008] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    2.308270] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[    2.316707] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
[    2.564324] mtk-pcie-gen3 11280000.pcie: set IO trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x200000
[    2.575721] mtk-pcie-gen3 11280000.pcie: set MEM trans window[1]: cpu_addr = 0x20200000, pci_addr = 0x20200000, size = 0x200000
[    2.587186] mtk-pcie-gen3 11280000.pcie: set MEM trans window[2]: cpu_addr = 0x20400000, pci_addr = 0x20400000, size = 0x400000
[    2.598650] mtk-pcie-gen3 11280000.pcie: set MEM trans window[3]: cpu_addr = 0x20800000, pci_addr = 0x20800000, size = 0x800000
[    2.610113] mtk-pcie-gen3 11280000.pcie: set MEM trans window[4]: cpu_addr = 0x21000000, pci_addr = 0x21000000, size = 0x1000000
[    2.621663] mtk-pcie-gen3 11280000.pcie: set MEM trans window[5]: cpu_addr = 0x22000000, pci_addr = 0x22000000, size = 0x2000000
[    2.633212] mtk-pcie-gen3 11280000.pcie: set MEM trans window[6]: cpu_addr = 0x24000000, pci_addr = 0x24000000, size = 0x4000000
[    2.645009] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0003:00
[    2.651621] pci_bus 0003:00: root bus resource [bus 00-ff]
[    2.657099] pci_bus 0003:00: root bus resource [io  0x0000-0x1fffff] (bus address [0x20000000-0x201fffff])
[    2.666741] pci_bus 0003:00: root bus resource [mem 0x20200000-0x27ffffff]
[    2.673605] pci_bus 0003:00: scanning bus
[    2.677624] pci 0003:00:00.0: [14c3:7988] type 01 class 0x060400
[    2.683637] pci 0003:00:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    2.690474] pci 0003:00:00.0: PME# supported from D0 D3hot D3cold
[    2.696559] pci 0003:00:00.0: PME# disabled
[    2.701874] pci_bus 0003:00: fixups for bus
[    2.706049] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 0
[    2.712742] pci 0003:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.720738] pci 0003:00:00.0: scanning [bus 00-00] behind bridge, pass 1
[    2.727477] pci_bus 0003:01: scanning bus
[    2.731505] pci 0003:01:00.0: [17cb:0304] type 00 class 0xff0000
[    2.737521] pci 0003:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[    2.744313] pci 0003:01:00.0: reg 0x18: [mem 0x00000000-0x00000fff 64bit]
[    2.751205] pci 0003:01:00.0: PME# supported from D0 D3hot D3cold
[    2.757289] pci 0003:01:00.0: PME# disabled
[    2.790967] pci_bus 0003:01: fixups for bus
[    2.795139] pci_bus 0003:01: bus scan returning with max=01
[    2.800700] pci_bus 0003:01: busn_res: [bus 01-ff] end is updated to 01
[    2.807311] pci_bus 0003:00: bus scan returning with max=01
[    2.812886] pci 0003:00:00.0: BAR 8: assigned [mem 0x20200000-0x202fffff]
[    2.819663] pci 0003:00:00.0: BAR 0: assigned [mem 0x20300000-0x20307fff 64bit]
[    2.826969] pci 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    2.834279] pci 0003:01:00.0: BAR 2: assigned [mem 0x20201000-0x20201fff 64bit]
[    2.841587] pci 0003:00:00.0: PCI bridge to [bus 01]
[    2.846541] pci 0003:00:00.0:   bridge window [mem 0x20200000-0x202fffff]
[    2.853329] pci 0003:00:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.861772] pci 0003:01:00.0: Max Payload Size set to  256/ 256 (was  128), Max Read Rq  256
[    2.870279] pcieport 0003:00:00.0: assign IRQ: got 112
[    2.875415] pcieport 0003:00:00.0: enabling device (0000 -> 0002)
[    2.881508] pcieport 0003:00:00.0: enabling bus mastering
[    2.887274] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    2.895711] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1
[    2.904139] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2
[    2.912569] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3
[    2.920996] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4
[    2.929420] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5
[    2.937846] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6
[    2.946273] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7
[    2.954698] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    2.963124] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    2.971550] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    2.980060] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    2.988572] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    2.997085] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    3.005598] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    3.014110] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15
[    3.022622] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16
[    3.031228] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17
[    3.039824] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18
[    3.048425] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19
[    3.057025] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20
[    3.065625] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21
[    3.074225] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22
[    3.082824] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23
[    3.091424] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24
[    3.100021] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25
[    3.108621] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26
[    3.117220] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27
[    3.125820] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28
[    3.134420] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29
[    3.143020] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30
[    3.151622] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31
[    3.160639] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0
[    3.169140] pcieport 0003:00:00.0: PME: Signaling with IRQ 113
[    3.175082] pcieport 0003:00:00.0: AER: enabled with IRQ 113
[    3.180765] pcieport 0003:00:00.0: save config 0x00: 0x798814c3
[    3.186684] pcieport 0003:00:00.0: save config 0x04: 0x00100406
[    3.192597] pcieport 0003:00:00.0: save config 0x08: 0x06040001
[    3.198504] pcieport 0003:00:00.0: save config 0x0c: 0x00010000
[    3.204414] pcieport 0003:00:00.0: save config 0x10: 0x20300004
[    3.210322] pcieport 0003:00:00.0: save config 0x14: 0x00000000
[    3.216231] pcieport 0003:00:00.0: save config 0x18: 0x00010100
[    3.222141] pcieport 0003:00:00.0: save config 0x1c: 0x000001f1
[    3.228048] pcieport 0003:00:00.0: save config 0x20: 0x20202020
[    3.233958] pcieport 0003:00:00.0: save config 0x24: 0x0001fff1
[    3.239865] pcieport 0003:00:00.0: save config 0x28: 0x00000000
[    3.245774] pcieport 0003:00:00.0: save config 0x2c: 0x00000000
[    3.251684] pcieport 0003:00:00.0: save config 0x30: 0x00000000
[    3.257591] pcieport 0003:00:00.0: save config 0x34: 0x00000080
[    3.263500] pcieport 0003:00:00.0: save config 0x38: 0x00000000
[    3.269407] pcieport 0003:00:00.0: save config 0x3c: 0x00020170
[    3.275650] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:
[    3.282962] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...
[    3.289226] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000
[    3.297659] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000
[    3.640937] mtk-pcie-gen3 11290000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    3.649724] mtk-pcie-gen3: probe of 11290000.pcie failed with error -110
[    3.656654] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:
[    3.663965] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...
[    3.670225] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000
[    3.678658] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000
[    4.020944] mtk-pcie-gen3 11300000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.029723] mtk-pcie-gen3: probe of 11300000.pcie failed with error -110
[    4.036586] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:
[    4.043897] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...
[    4.050156] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000
[    4.058589] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000
[    4.400954] mtk-pcie-gen3 11310000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x1)
[    4.409734] mtk-pcie-gen3: probe of 11310000.pcie failed with error -110
[    9.841826] mhi-pci-generic 0003:01:00.0: assign IRQ: got 0
[    9.847408] mhi-pci-generic 0003:01:00.0: MHI PCI device found: qcom-sdx24
[    9.854291] mhi-pci-generic 0003:01:00.0: BAR 0: assigned [mem 0x20200000-0x20200fff 64bit]
[    9.862652] mhi-pci-generic 0003:01:00.0: enabling device (0000 -> 0002)
[    9.869364] mhi-pci-generic 0003:01:00.0: enabling bus mastering
[    9.875500] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8
[    9.883940] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9
[    9.892368] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10
[    9.900879] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11
[    9.909392] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12
[    9.917905] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13
[    9.926418] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14
[    9.934957] mhi-pci-generic 0003:01:00.0: save config 0x00: 0x10011eac
[    9.941477] mhi-pci-generic 0003:01:00.0: save config 0x04: 0x00100406
[    9.947994] mhi-pci-generic 0003:01:00.0: save config 0x08: 0xff000000
[    9.954512] mhi-pci-generic 0003:01:00.0: save config 0x0c: 0x00000000
[    9.961030] mhi-pci-generic 0003:01:00.0: save config 0x10: 0x20200004
[    9.967545] mhi-pci-generic 0003:01:00.0: save config 0x14: 0x00000000
[    9.974064] mhi-pci-generic 0003:01:00.0: save config 0x18: 0x20201004
[    9.980579] mhi-pci-generic 0003:01:00.0: save config 0x1c: 0x00000000
[    9.987097] mhi-pci-generic 0003:01:00.0: save config 0x20: 0x00000000
[    9.993619] mhi-pci-generic 0003:01:00.0: save config 0x24: 0x00000000
[   10.000133] mhi-pci-generic 0003:01:00.0: save config 0x28: 0x00000000
[   10.006652] mhi-pci-generic 0003:01:00.0: save config 0x2c: 0x20011eac
[   10.013170] mhi-pci-generic 0003:01:00.0: save config 0x30: 0x00000000
[   10.019685] mhi-pci-generic 0003:01:00.0: save config 0x34: 0x00000040
[   10.026203] mhi-pci-generic 0003:01:00.0: save config 0x38: 0x00000000
[   10.032721] mhi-pci-generic 0003:01:00.0: save config 0x3c: 0x00000000
[   18.390951] mhi-pci-generic 0003:01:00.0: failed to power up MHI controller
[   18.398079] mhi-pci-generic: probe of 0003:01:00.0 failed with error -110

!!Update: This only works sometimes*

Module is now detected but in some failed state. Unclear if this is a module issue or BPI R4 issue. The SIM card was detected only once before the patch below.

Now running with this patch. Similar to Qualcomm modems using the mhi driver.

[    9.186662] mhi mhi0: Requested to power ON
[   11.091686] mhi mhi0: Power on setup success
[   11.091784] mhi mhi0: Wait for device to enter SBL or Mission mode
...
[   18.740959] mhi-pci-generic 0003:01:00.0: PME# enabled
[   18.770245] mhi-pci-generic 0003:01:00.0: PME# disabled
[   18.775478] mhi-pci-generic 0003:01:00.0: enabling bus mastering

root@OpenWrt:~# mmcli -L /org/freedesktop/ModemManager1/Modem/2 [generic] EM120R_GL root@OpenWrt:~#


Kernel Patch

--- a/drivers/bus/mhi/host/pci_generic.c
+++ b/drivers/bus/mhi/host/pci_generic.c
@@ -356,6 +356,7 @@ static struct mhi_event_config mhi_quect
 static const struct mhi_controller_config modem_quectel_em1xx_config = {
        .max_channels = 128,
        .timeout_ms = 20000,
+       .ready_timeout_ms = 50000,
        .num_channels = ARRAY_SIZE(mhi_quectel_em1xx_channels),
        .ch_cfg = mhi_quectel_em1xx_channels,
        .num_events = ARRAY_SIZE(mhi_quectel_em1xx_events),