Bpi-r3 : problem with pcie

Hy :slight_smile:

I have a big error with my pcie :

No hardware is recognized in teh mpcie or the m2.

# dmesg | grep 'err'
[    0.000000] CPU features: detected: ARM erratum 845719
[    5.293359] GPT: Use GNU Parted to correct GPT errors.
[    5.487491] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
# lspci
# ^C
# dmesg | grep 'pcie'
[    5.235564] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    5.242938] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    5.249235] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    5.478062] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.active (0x10                              00001)
[    5.487491] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110
# dmesg | grep 'pci'
[    5.235564] mtk-pcie-gen3 11280000.pcie: host bridge /soc/pcie@11280000 ranges:
[    5.242938] mtk-pcie-gen3 11280000.pcie: Parsing ranges property...
[    5.249235] mtk-pcie-gen3 11280000.pcie:      MEM 0x0020000000..0x002fffffff -> 0x0020000000
[    5.478062] mtk-pcie-gen3 11280000.pcie: PCIe link down, current LTSSM state: detect.active (0x10                              00001)
[    5.487491] mtk-pcie-gen3: probe of 11280000.pcie failed with error -110

i use the linux kernel 6.3 r2

Only m2 slot has pcie connected on r3 (mpcie slot has only usb). And only pcie x2 is there…no sata or usb.

What card have you inserted? There was a patch fixing a pcie issue

thanks to anwser me :slight_smile:

For m2,it was a ssd sata. i will buy a ssd pcie.

for the mpcie, it was a card wifi 6e mpcie. wanted to get a wifi 6ghz :frowning:

You can only use pcie in m2 slot. So either wifi card or nvme.

mPCIe slot is designed for 4g cards which need only usb pins.

Hy :slight_smile:

The m2 slot is a Key m, isn’t it?

It should be key-e…

need to use an adaptater, what you want to say?

As you’ve wrote that your wifi-card is mpcie…yes you need an m.2 key-e adapter

I have a mpcie card wifi but i can buy an m2 version like this one https://www.sparklan.com/product/wnfq-269axbt-wifi6-wifi6e-11ax-triband-m-2-dbdc-module/

The bananapi i have has a m2 key m slot (written on the board). So if i want to keep my mpci, i need an m2 key m adaptateur. Also if i take a card m2 key e, i need an m2 key m to key e adaptator,isn’t it?

https://wiki.banana-pi.org/Banana_Pi_BPI-R3

M.2 KEY-E PCIe inerface

Key-m is m-sata afaik,but afair also key-m cards were matching. I have a nvme in my slot.

you’re right, slot is a key-m (4/5 pins on small side till separator). but only pcie is connected and no sata lanes. and bpi wiki is the wrong

grafik

grafik

lower image taken from https://www.delock.de/infothek/M.2/M.2.html

nvme imho use key b+m (centered in image)

updated my wiki with this information

Do you thank i Can use this adaptator https://amzn.eu/d/eY73lCQ

Hope it will be a r3 pro version with m2 Key e and more ram ^^

i’m no expert in m.2, only use it for nvme :wink:

imho it will be better to replace mPCIe with m2 too (and usb3 there instead of usb2 wit use 5g modems too without dropping the usb3 port in front => usb3-hub instead of usb2 hub)

and yes more RAM will be better :wink:

here is the pcie-patch i’m talking about (if card in m.2 slot is not recognized): 611-pcie-mediatek-gen3-PERST-for-100ms.patch (677 Bytes)

Took from here and asked author for his data to sent it upstream on 2023-04-01

1 Like

A bit off-topic maybe, but since we are also talking about more RAM…

I also found it strange why Banana Pi didn’t go for 4GB RAM chip instead.

That being said, how is your RAM usage overall? Are you hitting any limits regarding the RAM?

Hello! I,m noob.Please tell me how to apply this patch.I have one Adata Legend710 512GB x3 and not recognized. Thank you!! PS Use openwrt last snapshot version.

You need to rebuild openwrt by yourself. Afaik you have to put patch into patches directory

https://git.openwrt.org/?p=openwrt/openwrt.git;a=tree;f=target/linux/mediatek/patches-5.15;hb=HEAD

1 Like

I applied a kernel patch and compile a new openwrt image ,creat partition,mount and now my SSD M,2 Adata Legend 710 (PCIe Gen3 x4) work perfectly. Thank you !

you have applied the patch i’ve mentioned above?

btw. bpi-r3 is only pcie3 x2, so it will not completely use the speed from this SSD

Yes i applied the patch , thanks again! I tested whit hdparm and speed is ~650MB/s .

sent Patch to mainline

https://patchwork.kernel.org/project/linux-mediatek/patch/[email protected]/

1 Like

Can you please tell me which pcie devices failing (without patch) with full dmesg?