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

It was only detected by the stock firmware and I was not able to get PCIe working with linux-next or OpenWrt’s Linux 6.1 built from source. I have lots to do and already spent more than 2 days trying to figure out why, and I can tell you already that the PHY driver correctly sets the mode-swtiching bit to PCIe. So, as I wrote before, the cause for the M.2 slot connected via pcie2 @ 0x11280000 not working is most likely a difference in the clock setup or something broken in the clock drivers itself.

1 Like

Thanks to Sam Shih of MediaTek this issue is now resolved and PCIe2 @ 11280000 works fine now. As expected the problem was with the clk setup, and it was not trivial to find:

root@OpenWrt:/# mmcli -m 0
  -----------------------------------
  General  |                    path: /org/freedesktop/ModemManager1/Modem/0
           |               device id: 19b744976905300402384426852a8d8563dcf670
  -----------------------------------
  Hardware |            manufacturer: generic
           |                   model: Snapdragon(TM) X55
           |       firmware revision: T99W175.T3.0.0.4.5.CU.002
           |                          031
           |          carrier config: CU
           | carrier config revision: 0A001502
           |            h/w revision: Snapdragon(TM) X55
           |               supported: gsm-umts, lte, 5gnr
           |                 current: gsm-umts, lte, 5gnr
           |            equipment id: xxxxxxxxxxxxxxx
  -----------------------------------
  System   |                  device: /sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0
           |                 physdev: /sys/devices/platform/soc/11280000.pcie/pci0003:00/0003:00:00.0/0003:01:00.0
           |                 drivers: mhi-pci-generic
           |                  plugin: generic
           |            primary port: wwan0mbim0
           |                   ports: wwan0 (net), wwan0at0 (at), wwan0mbim0 (mbim), 
           |                          wwan0qcdm0 (ignored)
  -----------------------------------
  Status   |                   state: disabled
           |             power state: on
  -----------------------------------
  Modes    |               supported: allowed: 3g; preferred: none
           |                          allowed: 4g; preferred: none
           |                          allowed: 3g, 4g; preferred: 4g
           |                          allowed: 3g, 4g; preferred: 3g
           |                          allowed: 5g; preferred: none
           |                          allowed: 4g, 5g; preferred: 5g
           |                          allowed: 4g, 5g; preferred: 4g
           |                          allowed: 3g, 5g; preferred: 5g
           |                          allowed: 3g, 5g; preferred: 3g
           |                          allowed: 3g, 4g, 5g; preferred: 5g
           |                          allowed: 3g, 4g, 5g; preferred: 4g
           |                          allowed: 3g, 4g, 5g; preferred: 3g
           |                 current: allowed: 3g, 4g, 5g; preferred: 5g
  -----------------------------------
  Bands    |               supported: utran-1, utran-3, utran-4, utran-6, utran-5, utran-8, 
           |                          utran-9, utran-2, eutran-1, eutran-2, eutran-3, eutran-4, eutran-5, 
           |                          eutran-7, eutran-8, eutran-12, eutran-13, eutran-14, eutran-17, 
           |                          eutran-18, eutran-19, eutran-20, eutran-25, eutran-26, eutran-28, 
           |                          eutran-29, eutran-30, eutran-32, eutran-34, eutran-38, eutran-39, 
           |                          eutran-40, eutran-41, eutran-42, eutran-46, eutran-48, eutran-66, 
           |                          eutran-71, utran-19
           |                 current: utran-1, utran-3, utran-4, utran-6, utran-5, utran-8, 
           |                          utran-2, eutran-1, eutran-3, eutran-4, eutran-7, eutran-8, 
           |                          eutran-28, eutran-40, eutran-41, eutran-66, eutran-71
  -----------------------------------
  IP       |               supported: ipv4, ipv6, ipv4v6
  -----------------------------------
  3GPP     |                    imei: xxxxxxxxxxxxxxx
  -----------------------------------
  3GPP EPS |      initial bearer apn: 3GNET
           |  initial bearer ip type: ipv4v6
  -----------------------------------
  SIM      |        primary sim path: /org/freedesktop/ModemManager1/SIM/0
           |          sim slot paths: slot 1: none
           |                          slot 2: none (active)
5 Likes

thank you @dangowrt , problem solved :slight_smile:

That’s awesome, thanks. So is that fix merged to openwrt? If I build a new image will that fix be in there or do I need to install it?

Yes.

You can use auc, luci-app-attendedsysupgrade, grab the snapshot image or build your own from source – in every case the fix is now there and all 4 PCIe ports work. I still see some warnings regarding IO ranges which I didn’t yet have time to look into, but things seems to work just fine never the less.

Daniel and Sam, thank you for all your hard work on this, this is very exciting news!

I have a question though. I’ve got the same exact modem as you, but it doesn’t seem like there’s been any change to the kernel output on my system when using the latest snapshot release. Still many of the same errors, though the -517 error seem to have disappeared. I have confirmed the modem works when running off the bananapi release. Pertinent logs:

[Thu Mar 14 23:57:54 2024] mtk-xsphy soc:xphy@11e10000: failed to get ref_clk(id-1)
[Thu Mar 14 23:57:54 2024] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[Thu Mar 14 23:57:54 2024] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[Thu Mar 14 23:57:54 2024] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000
[Thu Mar 14 23:57:54 2024] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000
...
[Thu Mar 14 23:57:56 2024] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.quiet (0x3)
[Thu Mar 14 23:57:56 2024] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110

And the card is not appearing in lspci. I’m on snapshot (r25541-af860c4dbf) and it looks like my kernel was built today:

bpi-r4# uname -a
Linux bpi-r4 6.1.81 #0 SMP Thu Mar 14 13:24:16 2024 aarch64 GNU/Linux

Any ideas what might be missing? Like I said, same exact modem as yours!

Mhm,maybe p3 clock is teared down if in this slot is no card? Daniel have you tried this? Michael is this the case for you? I have pcie-modem here to test myself…

Please try updated snapshot or OpenWrt source tree, I’ve added more fixes and verified with T99W175 modem working fine now on my R4 also with OpenWrt’s Linux 6.1 (before I tried only with Linux 6.6 which worked for some weird reason…).

Today’s snapshot (r25557-8fb23465ca, kernel Linux bpi-r4 6.1.81 #0 SMP Fri Mar 15 14:25:03 2024 aarch64 GNU/Linux) shows no change compared to yesterday :frowning:

@frank-w I’ve currently got the modem in the B-key slot, M-key empty, and there is a wifi card in one of the mPCIe slots (a b-key wifi card with a B → mPCIe adapter, working fine with ath11k).

I have tried the modem in an mPCIe slot and it wasn’t brought up there either.

Can you try inserting nvme inzo key-m slot?

Ok, so your problem is then not related to PCIe2 @ 11280000 but seems to be a generic problem with that specific modem (my T99W175 modem is working fine in Key-B slot with snapshot downloaded from downloads.openwrt.org). Please open a new thread (as your problem is not related to this thread), explain which exact modem you are trying to use and post the complete kernel boot log of both, BPI firmware and OpenWrt snapshot. Thank you!

In typical tech support fashion, I was working on writing up everything for the ticket, and lo and behold my T99W175 is now working just fine on r25557:

# lspci
0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0001:01:00.0 Network controller: Qualcomm Technologies, Inc QCNFA765 Wireless Network Adapter (rev 01)
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)
0003:01:00.0 Unassigned class [ff00]: Qualcomm Technologies, Inc SDX55 [Snapdragon X55 5G]

It turns out the problem was that when I flashed the new openwrt built, the system rebooted, but it wasn’t a hard reboot. After pressing the physical reset button, now the card comes up fine on boot!

1 Like

i can confirm pci2 (key-b working with the clock-patch) on r4 with nvme+key-bm adapter

https://de.aliexpress.com/item/1005006365425938.html

# cat /proc/partitions                                                                                                                
major minor  #blocks  name                                                                                                            
                                                                                                                                      
  31        0       2048 mtdblock0                                                                                                    
  31        1     129024 mtdblock1                                                                                                    
 179        0   31260672 mmcblk0                                                                                                      
 179        1       4079 mmcblk0p1                                                                                                    
 179        2        512 mmcblk0p2                                                                                                    
 179        3       2048 mmcblk0p3                                                                                                    
 179        4       2048 mmcblk0p4                                                                                                    
 179        5     102400 mmcblk0p5                                                                                                    
 179        6    6291456 mmcblk0p6                                                                                                    
 259        0  250059096 nvme0n1                                                                                                      
 259        1     665600 nvme0n1p1                                                                                                    
 259        2     131072 nvme0n1p2                                                                                                    
 259        3   84667392 nvme0n1p3                                                                                                    
 259        4    1013760 nvme0n1p4                                                                                                    
 259        5   18852864 nvme0n1p5                                                                                                    
 259        6    1349632 nvme0n1p6                                                                                                    
 259        7   51200195 nvme0n1p7                                                                                                    
 259        8   51200000 nvme0n1p8                                                                                                    
 259        9   40958976 nvme0n1p9                                                                                                    
 259       10  488386584 nvme1n1                                                                                                      
 259       11     523264 nvme1n1p1                                                                                                    
 259       12    5766144 nvme1n1p2                                                                                                    
# lspci                                                                                                                               
0000:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0000:01:00.0 Network controller: MEDIATEK Corp. Device 7990                                                                           
0001:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0001:01:00.0 Network controller: MEDIATEK Corp. Device 7991                                                                           
0002:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0002:01:00.0 Non-Volatile memory controller: ADATA Technology Co., Ltd. Device 5766 (rev 01)                                          
0003:00:00.0 PCI bridge: MEDIATEK Corp. Device 7988 (rev 01)                                                                          
0003:01:00.0 Non-Volatile memory controller: SK hynix BC501 NVMe Solid State Drive 512GB                                              
# dmesg | grep -i pcie                                                                                                                
[    2.297614] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:                                                    
[    2.304950] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...                                                                
[    2.311232] mtk-pcie-gen3 11280000.pcie:       IO 0x0020000000..0x00201fffff -> 0x0020000000                                       
[    2.319678] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020200000..0x0027ffffff -> 0x0020200000                                       
[    2.464801] mtk-pcie-gen3 11280000.pcie: set IO trans window[0]: cpu_addr = 0x20000000, pci_addr = 0x20000000, size = 0x200000     
[    2.476201] mtk-pcie-gen3 11280000.pcie: set MEM trans window[1]: cpu_addr = 0x20200000, pci_addr = 0x20200000, size = 0x200000    
[    2.487669] mtk-pcie-gen3 11280000.pcie: set MEM trans window[2]: cpu_addr = 0x20400000, pci_addr = 0x20400000, size = 0x400000    
[    2.499133] mtk-pcie-gen3 11280000.pcie: set MEM trans window[3]: cpu_addr = 0x20800000, pci_addr = 0x20800000, size = 0x800000    
[    2.510597] mtk-pcie-gen3 11280000.pcie: set MEM trans window[4]: cpu_addr = 0x21000000, pci_addr = 0x21000000, size = 0x1000000   
[    2.522148] mtk-pcie-gen3 11280000.pcie: set MEM trans window[5]: cpu_addr = 0x22000000, pci_addr = 0x22000000, size = 0x2000000   
[    2.533698] mtk-pcie-gen3 11280000.pcie: set MEM trans window[6]: cpu_addr = 0x24000000, pci_addr = 0x24000000, size = 0x4000000   
[    2.545508] mtk-pcie-gen3 11280000.pcie: PCI host bridge to bus 0003:00                                                            
[    2.578131] pci 0003:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    2.663087] pci 0003:01:00.0: [1c5c:1327] type 00 class 0x010802 PCIe Endpoint                                                     
[    2.690853] 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 15.
752 Gb/s with 8.0 GT/s PCIe x2 link)                                                                                                  
[    2.794095] pcieport 0003:00:00.0: vgaarb: pci_notify                                                                              
[    2.799185] pcieport 0003:00:00.0: assign IRQ: got 111                                                                             
[    2.804318] pcieport 0003:00:00.0: enabling device (0000 -> 0002)                                                                  
[    2.810414] pcieport 0003:00:00.0: enabling bus mastering                                                                          
[    2.816193] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0                                       
[    2.824632] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1                                       
[    2.833062] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2                                       
[    2.841490] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3                                       
[    2.849918] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4                                       
[    2.858349] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5                                       
[    2.866774] mtk-pcie-gen3 11280000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11280c00 data 6                                       
[    2.875202] mtk-pcie-gen3 11280000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11280c00 data 7                                       
[    2.883634] mtk-pcie-gen3 11280000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11280c00 data 8                                       
[    2.892062] mtk-pcie-gen3 11280000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11280c00 data 9                                       
[    2.900488] mtk-pcie-gen3 11280000.pcie: msi#0xa address_hi 0x0 address_lo 0x11280c00 data 10                                      
[    2.909002] mtk-pcie-gen3 11280000.pcie: msi#0xb address_hi 0x0 address_lo 0x11280c00 data 11                                      
[    2.917513] mtk-pcie-gen3 11280000.pcie: msi#0xc address_hi 0x0 address_lo 0x11280c00 data 12                                      
[    2.926027] mtk-pcie-gen3 11280000.pcie: msi#0xd address_hi 0x0 address_lo 0x11280c00 data 13                                      
[    2.934540] mtk-pcie-gen3 11280000.pcie: msi#0xe address_hi 0x0 address_lo 0x11280c00 data 14                                      
[    2.943054] mtk-pcie-gen3 11280000.pcie: msi#0xf address_hi 0x0 address_lo 0x11280c00 data 15                                      
[    2.951568] mtk-pcie-gen3 11280000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11280c00 data 16                                     
[    2.960168] mtk-pcie-gen3 11280000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11280c00 data 17                                     
[    2.968768] mtk-pcie-gen3 11280000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11280c00 data 18                                     
[    2.977366] mtk-pcie-gen3 11280000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11280c00 data 19                                     
[    2.985969] mtk-pcie-gen3 11280000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11280c00 data 20                                     
[    2.994569] mtk-pcie-gen3 11280000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11280c00 data 21                                     
[    3.003170] mtk-pcie-gen3 11280000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11280c00 data 22                                     
[    3.011770] mtk-pcie-gen3 11280000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11280c00 data 23                                     
[    3.020371] mtk-pcie-gen3 11280000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11280c00 data 24                                     
[    3.028971] mtk-pcie-gen3 11280000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11280c00 data 25                                     
[    3.037569] mtk-pcie-gen3 11280000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11280c00 data 26                                     
[    3.046169] mtk-pcie-gen3 11280000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11280c00 data 27                                     
[    3.054770] mtk-pcie-gen3 11280000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11280c00 data 28                                     
[    3.063369] mtk-pcie-gen3 11280000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11280c00 data 29                                     
[    3.071970] mtk-pcie-gen3 11280000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11280c00 data 30                                     
[    3.080570] mtk-pcie-gen3 11280000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11280c00 data 31                                     
[    3.089577] mtk-pcie-gen3 11280000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11280c00 data 0                                       
[    3.098073] pcieport 0003:00:00.0: PME: Signaling with IRQ 112                                                                     
[    3.104021] pcieport 0003:00:00.0: AER: enabled with IRQ 112                                                                       
[    3.109719] pcieport 0003:00:00.0: save config 0x00: 0x798814c3                                                                    
[    3.115630] pcieport 0003:00:00.0: save config 0x04: 0x00100406                                                                    
[    3.121544] pcieport 0003:00:00.0: save config 0x08: 0x06040001                                                                    
[    3.127452] pcieport 0003:00:00.0: save config 0x0c: 0x00010000                                                                    
[    3.133363] pcieport 0003:00:00.0: save config 0x10: 0x20300004                                                                    
[    3.139273] pcieport 0003:00:00.0: save config 0x14: 0x00000000                                                                    
[    3.145181] pcieport 0003:00:00.0: save config 0x18: 0x00010100                                                                    
[    3.151092] pcieport 0003:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    3.157000] pcieport 0003:00:00.0: save config 0x20: 0x20202020                                                                    
[    3.162917] pcieport 0003:00:00.0: save config 0x24: 0x0001fff1                                                                    
[    3.168827] pcieport 0003:00:00.0: save config 0x28: 0x00000000                                                                    
[    3.174735] pcieport 0003:00:00.0: save config 0x2c: 0x00000000                                                                    
[    3.180645] pcieport 0003:00:00.0: save config 0x30: 0x00000000                                                                    
[    3.186553] pcieport 0003:00:00.0: save config 0x34: 0x00000080                                                                    
[    3.192464] pcieport 0003:00:00.0: save config 0x38: 0x00000000                                                                    
[    3.198374] pcieport 0003:00:00.0: save config 0x3c: 0x0002016f                                                                    
[    3.204311] pcieport 0003:00:00.0: vgaarb: pci_notify                                                                              
[    3.234636] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1                                       
[    3.361601] mtk-pcie-gen3 11280000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11280c00 data 1                                       
[    3.370055] mtk-pcie-gen3 11280000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11280c00 data 2                                       
[    3.378503] mtk-pcie-gen3 11280000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11280c00 data 3                                       
[    3.386944] mtk-pcie-gen3 11280000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11280c00 data 4                                       
[    3.395391] mtk-pcie-gen3 11280000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11280c00 data 5                                       
[    3.422449] mtk-pcie-gen3 11290000.pcie: host bridge /soc/pcie@11290000 ranges:                                                    
[    3.429763] mtk-pcie-gen3 11290000.pcie: Parsing ranges property...                                                                
[    3.436028] mtk-pcie-gen3 11290000.pcie:       IO 0x0028000000..0x00281fffff -> 0x0028000000                                       
[    3.444465] mtk-pcie-gen3 11290000.pcie:      MEM 0x0028200000..0x002fffffff -> 0x0028200000                                       
[    3.601464] mtk-pcie-gen3 11290000.pcie: set IO trans window[0]: cpu_addr = 0x28000000, pci_addr = 0x28000000, size = 0x200000     
[    3.612848] mtk-pcie-gen3 11290000.pcie: set MEM trans window[1]: cpu_addr = 0x28200000, pci_addr = 0x28200000, size = 0x200000    
[    3.624315] mtk-pcie-gen3 11290000.pcie: set MEM trans window[2]: cpu_addr = 0x28400000, pci_addr = 0x28400000, size = 0x400000    
[    3.635780] mtk-pcie-gen3 11290000.pcie: set MEM trans window[3]: cpu_addr = 0x28800000, pci_addr = 0x28800000, size = 0x800000    
[    3.647243] mtk-pcie-gen3 11290000.pcie: set MEM trans window[4]: cpu_addr = 0x29000000, pci_addr = 0x29000000, size = 0x1000000   
[    3.658794] mtk-pcie-gen3 11290000.pcie: set MEM trans window[5]: cpu_addr = 0x2a000000, pci_addr = 0x2a000000, size = 0x2000000   
[    3.670345] mtk-pcie-gen3 11290000.pcie: set MEM trans window[6]: cpu_addr = 0x2c000000, pci_addr = 0x2c000000, size = 0x4000000   
[    3.682033] mtk-pcie-gen3 11290000.pcie: PCI host bridge to bus 0002:00                                                            
[    3.714831] pci 0002:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    3.799844] pci 0002:01:00.0: [1cc1:5766] type 00 class 0x010802 PCIe Endpoint                                                     
[    3.819618] pci 0002:01:00.0: 7.876 Gb/s available PCIe bandwidth, limited by 8.0 GT/s PCIe x1 link at 0002:00:00.0 (capable of 31.
504 Gb/s with 8.0 GT/s PCIe x4 link)                                                                                                  
[    3.930889] pcieport 0002:00:00.0: vgaarb: pci_notify                                                                              
[    3.935974] pcieport 0002:00:00.0: assign IRQ: got 119                                                                             
[    3.941113] pcieport 0002:00:00.0: enabling device (0000 -> 0002)                                                                  
[    3.947204] pcieport 0002:00:00.0: enabling bus mastering                                                                          
[    3.952958] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0                                       
[    3.961398] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1                                       
[    3.969831] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2                                       
[    3.978261] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3                                       
[    3.986685] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4                                       
[    3.995117] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5                                       
[    4.003545] mtk-pcie-gen3 11290000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11290c00 data 6                                       
[    4.011975] mtk-pcie-gen3 11290000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11290c00 data 7                                       
[    4.020403] mtk-pcie-gen3 11290000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11290c00 data 8                                       
[    4.028833] mtk-pcie-gen3 11290000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11290c00 data 9                                       
[    4.037257] mtk-pcie-gen3 11290000.pcie: msi#0xa address_hi 0x0 address_lo 0x11290c00 data 10                                      
[    4.045779] mtk-pcie-gen3 11290000.pcie: msi#0xb address_hi 0x0 address_lo 0x11290c00 data 11                                      
[    4.054297] mtk-pcie-gen3 11290000.pcie: msi#0xc address_hi 0x0 address_lo 0x11290c00 data 12                                      
[    4.062812] mtk-pcie-gen3 11290000.pcie: msi#0xd address_hi 0x0 address_lo 0x11290c00 data 13                                      
[    4.071328] mtk-pcie-gen3 11290000.pcie: msi#0xe address_hi 0x0 address_lo 0x11290c00 data 14                                      
[    4.079843] mtk-pcie-gen3 11290000.pcie: msi#0xf address_hi 0x0 address_lo 0x11290c00 data 15                                      
[    4.088360] mtk-pcie-gen3 11290000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11290c00 data 16                                     
[    4.096958] mtk-pcie-gen3 11290000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11290c00 data 17                                     
[    4.105559] mtk-pcie-gen3 11290000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11290c00 data 18                                     
[    4.114164] mtk-pcie-gen3 11290000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11290c00 data 19                                     
[    4.122766] mtk-pcie-gen3 11290000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11290c00 data 20                                     
[    4.131370] mtk-pcie-gen3 11290000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11290c00 data 21                                     
[    4.139971] mtk-pcie-gen3 11290000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11290c00 data 22                                     
[    4.148574] mtk-pcie-gen3 11290000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11290c00 data 23                                     
[    4.157172] mtk-pcie-gen3 11290000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11290c00 data 24                                     
[    4.165773] mtk-pcie-gen3 11290000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11290c00 data 25                                     
[    4.174377] mtk-pcie-gen3 11290000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11290c00 data 26                                     
[    4.182978] mtk-pcie-gen3 11290000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11290c00 data 27                                     
[    4.191580] mtk-pcie-gen3 11290000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11290c00 data 28                                     
[    4.200182] mtk-pcie-gen3 11290000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11290c00 data 29                                     
[    4.208784] mtk-pcie-gen3 11290000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11290c00 data 30                                     
[    4.217381] mtk-pcie-gen3 11290000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11290c00 data 31                                     
[    4.226392] mtk-pcie-gen3 11290000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11290c00 data 0                                       
[    4.234904] pcieport 0002:00:00.0: PME: Signaling with IRQ 120                                                                     
[    4.240873] pcieport 0002:00:00.0: AER: enabled with IRQ 120                                                                       
[    4.246559] pcieport 0002:00:00.0: save config 0x00: 0x798814c3                                                                    
[    4.252479] pcieport 0002:00:00.0: save config 0x04: 0x00100406                                                                    
[    4.258393] pcieport 0002:00:00.0: save config 0x08: 0x06040001                                                                    
[    4.264302] pcieport 0002:00:00.0: save config 0x0c: 0x00010000                                                                    
[    4.270213] pcieport 0002:00:00.0: save config 0x10: 0x28300004                                                                    
[    4.276121] pcieport 0002:00:00.0: save config 0x14: 0x00000000                                                                    
[    4.282032] pcieport 0002:00:00.0: save config 0x18: 0x00010100                                                                    
[    4.287940] pcieport 0002:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    4.293851] pcieport 0002:00:00.0: save config 0x20: 0x28202820                                                                    
[    4.299761] pcieport 0002:00:00.0: save config 0x24: 0x0001fff1                                                                    
[    4.305669] pcieport 0002:00:00.0: save config 0x28: 0x00000000                                                                    
[    4.311580] pcieport 0002:00:00.0: save config 0x2c: 0x00000000                                                                    
[    4.317487] pcieport 0002:00:00.0: save config 0x30: 0x00000000                                                                    
[    4.323397] pcieport 0002:00:00.0: save config 0x34: 0x00000080                                                                    
[    4.329307] pcieport 0002:00:00.0: save config 0x38: 0x00000000                                                                    
[    4.335214] pcieport 0002:00:00.0: save config 0x3c: 0x00020177                                                                    
[    4.341154] pcieport 0002:00:00.0: vgaarb: pci_notify                                                                              
[    4.371506] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1                                       
[    4.663085] mtk-pcie-gen3 11290000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11290c00 data 1                                       
[    4.671540] mtk-pcie-gen3 11290000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11290c00 data 2                                       
[    4.679989] mtk-pcie-gen3 11290000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11290c00 data 3                                       
[    4.688435] mtk-pcie-gen3 11290000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11290c00 data 4                                       
[    4.696875] mtk-pcie-gen3 11290000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11290c00 data 5                                       
[    4.728490] mtk-pcie-gen3 11300000.pcie: host bridge /soc/pcie@11300000 ranges:                                                    
[    4.735797] mtk-pcie-gen3 11300000.pcie: Parsing ranges property...                                                                
[    4.742086] mtk-pcie-gen3 11300000.pcie:       IO 0x0030000000..0x00301fffff -> 0x0030000000                                       
[    4.750523] mtk-pcie-gen3 11300000.pcie:      MEM 0x0030200000..0x0037ffffff -> 0x0030200000                                       
[    4.893366] mtk-pcie-gen3 11300000.pcie: set IO trans window[0]: cpu_addr = 0x30000000, pci_addr = 0x30000000, size = 0x200000     
[    4.904749] mtk-pcie-gen3 11300000.pcie: set MEM trans window[1]: cpu_addr = 0x30200000, pci_addr = 0x30200000, size = 0x200000    
[    4.916215] mtk-pcie-gen3 11300000.pcie: set MEM trans window[2]: cpu_addr = 0x30400000, pci_addr = 0x30400000, size = 0x400000    
[    4.927679] mtk-pcie-gen3 11300000.pcie: set MEM trans window[3]: cpu_addr = 0x30800000, pci_addr = 0x30800000, size = 0x800000    
[    4.939149] mtk-pcie-gen3 11300000.pcie: set MEM trans window[4]: cpu_addr = 0x31000000, pci_addr = 0x31000000, size = 0x1000000   
[    4.950700] mtk-pcie-gen3 11300000.pcie: set MEM trans window[5]: cpu_addr = 0x32000000, pci_addr = 0x32000000, size = 0x2000000   
[    4.962250] mtk-pcie-gen3 11300000.pcie: set MEM trans window[6]: cpu_addr = 0x34000000, pci_addr = 0x34000000, size = 0x4000000   
[    4.973932] mtk-pcie-gen3 11300000.pcie: PCI host bridge to bus 0000:00                                                            
[    5.006727] pci 0000:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    5.091740] pci 0000:01:00.0: [14c3:7990] type 00 class 0x028000 PCIe Endpoint                                                     
[    5.227994] pcieport 0000:00:00.0: vgaarb: pci_notify                                                                              
[    5.233083] pcieport 0000:00:00.0: assign IRQ: got 127                                                                             
[    5.238217] pcieport 0000:00:00.0: enabling device (0000 -> 0002)                                                                  
[    5.244313] pcieport 0000:00:00.0: enabling bus mastering                                                                          
[    5.250069] mtk-pcie-gen3 11300000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11300c00 data 0                                       
[    5.258508] mtk-pcie-gen3 11300000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11300c00 data 1                                       
[    5.266934] mtk-pcie-gen3 11300000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11300c00 data 2                                       
[    5.275366] mtk-pcie-gen3 11300000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11300c00 data 3                                       
[    5.283795] mtk-pcie-gen3 11300000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11300c00 data 4                                       
[    5.292222] mtk-pcie-gen3 11300000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11300c00 data 5                                       
[    5.300649] mtk-pcie-gen3 11300000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11300c00 data 6                                       
[    5.309076] mtk-pcie-gen3 11300000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11300c00 data 7                                       
[    5.317499] mtk-pcie-gen3 11300000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11300c00 data 8                                       
[    5.325926] mtk-pcie-gen3 11300000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11300c00 data 9                                       
[    5.334352] mtk-pcie-gen3 11300000.pcie: msi#0xa address_hi 0x0 address_lo 0x11300c00 data 10                                      
[    5.342866] mtk-pcie-gen3 11300000.pcie: msi#0xb address_hi 0x0 address_lo 0x11300c00 data 11                                      
[    5.351380] mtk-pcie-gen3 11300000.pcie: msi#0xc address_hi 0x0 address_lo 0x11300c00 data 12                                      
[    5.359894] mtk-pcie-gen3 11300000.pcie: msi#0xd address_hi 0x0 address_lo 0x11300c00 data 13                                      
[    5.368408] mtk-pcie-gen3 11300000.pcie: msi#0xe address_hi 0x0 address_lo 0x11300c00 data 14                                      
[    5.376919] mtk-pcie-gen3 11300000.pcie: msi#0xf address_hi 0x0 address_lo 0x11300c00 data 15                                      
[    5.385433] mtk-pcie-gen3 11300000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11300c00 data 16                                     
[    5.394035] mtk-pcie-gen3 11300000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11300c00 data 17                                     
[    5.402637] mtk-pcie-gen3 11300000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11300c00 data 18                                     
[    5.411238] mtk-pcie-gen3 11300000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11300c00 data 19                                     
[    5.419839] mtk-pcie-gen3 11300000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11300c00 data 20                                     
[    5.428440] mtk-pcie-gen3 11300000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11300c00 data 21                                     
[    5.437038] mtk-pcie-gen3 11300000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11300c00 data 22                                     
[    5.445639] mtk-pcie-gen3 11300000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11300c00 data 23                                     
[    5.454243] mtk-pcie-gen3 11300000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11300c00 data 24                                     
[    5.462844] mtk-pcie-gen3 11300000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11300c00 data 25                                     
[    5.471445] mtk-pcie-gen3 11300000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11300c00 data 26                                     
[    5.480045] mtk-pcie-gen3 11300000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11300c00 data 27                                     
[    5.488645] mtk-pcie-gen3 11300000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11300c00 data 28                                     
[    5.497242] mtk-pcie-gen3 11300000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11300c00 data 29                                     
[    5.505842] mtk-pcie-gen3 11300000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11300c00 data 30                                     
[    5.514445] mtk-pcie-gen3 11300000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11300c00 data 31                                     
[    5.523468] mtk-pcie-gen3 11300000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11300c00 data 0                                       
[    5.531973] pcieport 0000:00:00.0: PME: Signaling with IRQ 128                                                                     
[    5.537922] pcieport 0000:00:00.0: AER: enabled with IRQ 128                                                                       
[    5.543618] pcieport 0000:00:00.0: save config 0x00: 0x798814c3                                                                    
[    5.549535] pcieport 0000:00:00.0: save config 0x04: 0x00100406                                                                    
[    5.555444] pcieport 0000:00:00.0: save config 0x08: 0x06040001                                                                    
[    5.561356] pcieport 0000:00:00.0: save config 0x0c: 0x00010000                                                                    
[    5.567264] pcieport 0000:00:00.0: save config 0x10: 0x30500004                                                                    
[    5.573178] pcieport 0000:00:00.0: save config 0x14: 0x00000000                                                                    
[    5.579090] pcieport 0000:00:00.0: save config 0x18: 0x00010100                                                                    
[    5.584998] pcieport 0000:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    5.590909] pcieport 0000:00:00.0: save config 0x20: 0x30403040                                                                    
[    5.596816] pcieport 0000:00:00.0: save config 0x24: 0x30313021                                                                    
[    5.602726] pcieport 0000:00:00.0: save config 0x28: 0x00000000                                                                    
[    5.608638] pcieport 0000:00:00.0: save config 0x2c: 0x00000000                                                                    
[    5.614546] pcieport 0000:00:00.0: save config 0x30: 0x00000000                                                                    
[    5.620456] pcieport 0000:00:00.0: save config 0x34: 0x00000080                                                                    
[    5.626364] pcieport 0000:00:00.0: save config 0x38: 0x00000000                                                                    
[    5.632276] pcieport 0000:00:00.0: save config 0x3c: 0x0002017f                                                                    
[    5.638213] pcieport 0000:00:00.0: vgaarb: pci_notify                                                                              
[    5.643506] mtk-pcie-gen3 11310000.pcie: host bridge /soc/pcie@11310000 ranges:                                                    
[    5.650817] mtk-pcie-gen3 11310000.pcie: Parsing ranges property...                                                                
[    5.657082] mtk-pcie-gen3 11310000.pcie:       IO 0x0038000000..0x00381fffff -> 0x0038000000                                       
[    5.665516] mtk-pcie-gen3 11310000.pcie:      MEM 0x0038200000..0x003fffffff -> 0x0038200000                                       
[    5.803351] mtk-pcie-gen3 11310000.pcie: set IO trans window[0]: cpu_addr = 0x38000000, pci_addr = 0x38000000, size = 0x200000     
[    5.814735] mtk-pcie-gen3 11310000.pcie: set MEM trans window[1]: cpu_addr = 0x38200000, pci_addr = 0x38200000, size = 0x200000    
[    5.826201] mtk-pcie-gen3 11310000.pcie: set MEM trans window[2]: cpu_addr = 0x38400000, pci_addr = 0x38400000, size = 0x400000    
[    5.837668] mtk-pcie-gen3 11310000.pcie: set MEM trans window[3]: cpu_addr = 0x38800000, pci_addr = 0x38800000, size = 0x800000    
[    5.849132] mtk-pcie-gen3 11310000.pcie: set MEM trans window[4]: cpu_addr = 0x39000000, pci_addr = 0x39000000, size = 0x1000000   
[    5.860682] mtk-pcie-gen3 11310000.pcie: set MEM trans window[5]: cpu_addr = 0x3a000000, pci_addr = 0x3a000000, size = 0x2000000   
[    5.872232] mtk-pcie-gen3 11310000.pcie: set MEM trans window[6]: cpu_addr = 0x3c000000, pci_addr = 0x3c000000, size = 0x4000000   
[    5.883901] mtk-pcie-gen3 11310000.pcie: PCI host bridge to bus 0001:00                                                            
[    5.916691] pci 0001:00:00.0: [14c3:7988] type 01 class 0x060400 PCIe Root Port                                                    
[    6.001651] pci 0001:01:00.0: [14c3:7991] type 00 class 0x028000 PCIe Endpoint                                                     
[    6.137993] pcieport 0001:00:00.0: vgaarb: pci_notify                                                                              
[    6.143080] pcieport 0001:00:00.0: assign IRQ: got 130                                                                             
[    6.148212] pcieport 0001:00:00.0: enabling device (0000 -> 0002)                                                                  
[    6.154308] pcieport 0001:00:00.0: enabling bus mastering                                                                          
[    6.160041] mtk-pcie-gen3 11310000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11310c00 data 0                                       
[    6.168479] mtk-pcie-gen3 11310000.pcie: msi#0x1 address_hi 0x0 address_lo 0x11310c00 data 1                                       
[    6.176905] mtk-pcie-gen3 11310000.pcie: msi#0x2 address_hi 0x0 address_lo 0x11310c00 data 2                                       
[    6.185336] mtk-pcie-gen3 11310000.pcie: msi#0x3 address_hi 0x0 address_lo 0x11310c00 data 3                                       
[    6.193766] mtk-pcie-gen3 11310000.pcie: msi#0x4 address_hi 0x0 address_lo 0x11310c00 data 4                                       
[    6.202194] mtk-pcie-gen3 11310000.pcie: msi#0x5 address_hi 0x0 address_lo 0x11310c00 data 5                                       
[    6.210622] mtk-pcie-gen3 11310000.pcie: msi#0x6 address_hi 0x0 address_lo 0x11310c00 data 6                                       
[    6.219049] mtk-pcie-gen3 11310000.pcie: msi#0x7 address_hi 0x0 address_lo 0x11310c00 data 7                                       
[    6.227474] mtk-pcie-gen3 11310000.pcie: msi#0x8 address_hi 0x0 address_lo 0x11310c00 data 8                                       
[    6.235901] mtk-pcie-gen3 11310000.pcie: msi#0x9 address_hi 0x0 address_lo 0x11310c00 data 9                                       
[    6.244328] mtk-pcie-gen3 11310000.pcie: msi#0xa address_hi 0x0 address_lo 0x11310c00 data 10                                      
[    6.252842] mtk-pcie-gen3 11310000.pcie: msi#0xb address_hi 0x0 address_lo 0x11310c00 data 11                                      
[    6.261357] mtk-pcie-gen3 11310000.pcie: msi#0xc address_hi 0x0 address_lo 0x11310c00 data 12                                      
[    6.269871] mtk-pcie-gen3 11310000.pcie: msi#0xd address_hi 0x0 address_lo 0x11310c00 data 13                                      
[    6.278390] mtk-pcie-gen3 11310000.pcie: msi#0xe address_hi 0x0 address_lo 0x11310c00 data 14                                      
[    6.286902] mtk-pcie-gen3 11310000.pcie: msi#0xf address_hi 0x0 address_lo 0x11310c00 data 15                                      
[    6.295415] mtk-pcie-gen3 11310000.pcie: msi#0x10 address_hi 0x0 address_lo 0x11310c00 data 16                                     
[    6.304020] mtk-pcie-gen3 11310000.pcie: msi#0x11 address_hi 0x0 address_lo 0x11310c00 data 17                                     
[    6.312622] mtk-pcie-gen3 11310000.pcie: msi#0x12 address_hi 0x0 address_lo 0x11310c00 data 18                                     
[    6.321223] mtk-pcie-gen3 11310000.pcie: msi#0x13 address_hi 0x0 address_lo 0x11310c00 data 19                                     
[    6.329824] mtk-pcie-gen3 11310000.pcie: msi#0x14 address_hi 0x0 address_lo 0x11310c00 data 20                                     
[    6.338425] mtk-pcie-gen3 11310000.pcie: msi#0x15 address_hi 0x0 address_lo 0x11310c00 data 21                                     
[    6.347022] mtk-pcie-gen3 11310000.pcie: msi#0x16 address_hi 0x0 address_lo 0x11310c00 data 22                                     
[    6.355623] mtk-pcie-gen3 11310000.pcie: msi#0x17 address_hi 0x0 address_lo 0x11310c00 data 23                                     
[    6.364224] mtk-pcie-gen3 11310000.pcie: msi#0x18 address_hi 0x0 address_lo 0x11310c00 data 24                                     
[    6.372825] mtk-pcie-gen3 11310000.pcie: msi#0x19 address_hi 0x0 address_lo 0x11310c00 data 25                                     
[    6.381425] mtk-pcie-gen3 11310000.pcie: msi#0x1a address_hi 0x0 address_lo 0x11310c00 data 26                                     
[    6.390026] mtk-pcie-gen3 11310000.pcie: msi#0x1b address_hi 0x0 address_lo 0x11310c00 data 27                                     
[    6.398627] mtk-pcie-gen3 11310000.pcie: msi#0x1c address_hi 0x0 address_lo 0x11310c00 data 28                                     
[    6.407225] mtk-pcie-gen3 11310000.pcie: msi#0x1d address_hi 0x0 address_lo 0x11310c00 data 29                                     
[    6.415825] mtk-pcie-gen3 11310000.pcie: msi#0x1e address_hi 0x0 address_lo 0x11310c00 data 30                                     
[    6.424428] mtk-pcie-gen3 11310000.pcie: msi#0x1f address_hi 0x0 address_lo 0x11310c00 data 31                                     
[    6.433464] mtk-pcie-gen3 11310000.pcie: msi#0x0 address_hi 0x0 address_lo 0x11310c00 data 0                                       
[    6.441967] pcieport 0001:00:00.0: PME: Signaling with IRQ 131                                                                     
[    6.447910] pcieport 0001:00:00.0: AER: enabled with IRQ 131                                                                       
[    6.453606] pcieport 0001:00:00.0: save config 0x00: 0x798814c3                                                                    
[    6.459522] pcieport 0001:00:00.0: save config 0x04: 0x00100406                                                                    
[    6.465431] pcieport 0001:00:00.0: save config 0x08: 0x06040001                                                                    
[    6.471344] pcieport 0001:00:00.0: save config 0x0c: 0x00010000                                                                    
[    6.477252] pcieport 0001:00:00.0: save config 0x10: 0x38500004                                                                    
[    6.483163] pcieport 0001:00:00.0: save config 0x14: 0x00000000                                                                    
[    6.489075] pcieport 0001:00:00.0: save config 0x18: 0x00010100                                                                    
[    6.494983] pcieport 0001:00:00.0: save config 0x1c: 0x000001f1                                                                    
[    6.500893] pcieport 0001:00:00.0: save config 0x20: 0x38403840                                                                    
[    6.506801] pcieport 0001:00:00.0: save config 0x24: 0x38313821                                                                    
[    6.512712] pcieport 0001:00:00.0: save config 0x28: 0x00000000                                                                    
[    6.518622] pcieport 0001:00:00.0: save config 0x2c: 0x00000000                                                                    
[    6.524530] pcieport 0001:00:00.0: save config 0x30: 0x00000000                                                                    
[    6.530440] pcieport 0001:00:00.0: save config 0x34: 0x00000080                                                                    
[    6.536349] pcieport 0001:00:00.0: save config 0x38: 0x00000000                                                                    
[    6.542263] pcieport 0001:00:00.0: save config 0x3c: 0x00020182                                                                    
[    6.548200] pcieport 0001:00:00.0: vgaarb: pci_notify                                                                              
#

but it is not detected in uboot ;( the pcie2/key-b slot needs a specific xs-phy which does not have a driver in uboot, but as we only need nvme in uboot which is connected via pcie3/key-m slot i guess we just drop this slot from uboot

1 Like

I know this thread is a couple months old but it’s about the exact modem I’m trying to get working on the bpi r4 and I’m having the same problem as @dangowrt last posted about.

I’m currently running snapshot r26488.

I can see the modem listed in lspci

0003:01:00.0 Unassigned class [ff00]: Foxconn International, Inc. Device e0b0
        Subsystem: Qualcomm Technologies, Inc Device 010c
        Flags: fast devsel
        Memory at 20200000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Memory at 20201000 (64-bit, non-prefetchable) [disabled] [size=4K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/32 Maskable+ 64bit+
        Capabilities: [70] Express Endpoint, IntMsgNum 0
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [148] Secondary PCI Express
        Capabilities: [168] Physical Layer 16.0 GT/s <?>
        Capabilities: [18c] Lane Margining at the Receiver
        Capabilities: [19c] Transaction Processing Hints
        Capabilities: [228] Latency Tolerance Reporting
        Capabilities: [230] L1 PM Substates
        Capabilities: [240] Data Link Feature <?>

But no device is loading in /dev/

mmcli -m 0 says “couldn’t find modem”

dmesg is showing multiple lines of probe of xxx.pcie failed with error -110

I’ve installed a lot of both qmi and mbim packages to try and get this working. Not sure what I’m missing.

The image I am using did come from firmware-selector.openwrt.org, maybe that is the problem? It’s not one of these other images built by someone else? But reading through the thread it seemed to indicated the changes were merged into openwrt master?

However, the reference pull request doesn’t seem to exist anymore so I’m wondering if it actulally is.

Is there some file i’m supposed to manual modify to get it working or something?

The 110 error (etimedout) is normal for slots not having a card inserted (r4 has 4 pcie ports).

As you see card in lspcie this step is already done…so from pcie view card is recognized…

But i see the class seems not correct. This is maybe the problem why driver does not map. This is still pcie driver but later than normal “detection”

Ok, are you able to point me in a direction on what the next steps are to figure out / fix the problem? How do I get the correct class in lspci? Sorry, driver level stuff and beyond is a little out of my depth.

We had a similar issue with coral cards on r64,maybe it helps here

But i’m also no pcie expert

Hmmm bummer, I guess I’ll have to post somewhere else and see if anyone got this particular modem to work somehow. I don’t really have the time right now to try a figure out how to set up an environment and compile openwrt myself to try making any code changes.

To me it looks like you are simply lacking the drivers. Try installing kmod-mhi-pci-generic, kmod-mhi-wwan-ctrl, kmod-mhi-net, kmod-mhi-wwan-mbim. That should allow you to detect and use the modem.

I had most of those already installed but a couple did install.

Now the modem is showing as a Wireless Controller in lspci

0003:01:00.0 Wireless controller [0d40]: Foxconn International, Inc. Device e0b0
        Subsystem: Foxconn International, Inc. Device e0b0
        Flags: fast devsel, IRQ 120
        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] Secondary PCI Express
        Capabilities: [168] Physical Layer 16.0 GT/s <?>
        Capabilities: [18c] Lane Margining at the Receiver
        Capabilities: [19c] Transaction Processing Hints
        Capabilities: [228] Latency Tolerance Reporting
        Capabilities: [230] L1 PM Substates
        Capabilities: [240] Data Link Feature <?>
        Kernel driver in use: mhi-pci-generic

Using driver mhi-pci-generic.

Still not being detected by ModemManager, and still no devices under /dev/ for it.

Probably is a driver issue, but not sure what driver I’m missing =/ Seems like I’ve installed nearly every package that has mhi, qmi, or mbim in the name lol