<DC-IRC> <vitekst> Hi there, has anybody had luck getting the PCIe interface to work on the Banana Pi CM4 with the A311D SoC?
<DC-IRC> <vitekst> I am using the said module with the supplied IO board, which exposes a miniPCIe connector, into which I inserted a SATA controller card based on the ASmedia ASM1064 chipset. The device is somehow registered by the PCIe controller (`lspci` shows it up with `01:00.0 SATA controller: ASMedia Technology Inc. Device 1064 (rev 02)`), but `ahci.ko`'s probe (`CONFIG_SATA_AHCI`) fails.
<DC-IRC> <vitekst> I am pretty sure that the card itself isn't the culprit, as it works just fine in a regular x86-64 PC and even on a couple of Freescale i.MX boards that I have, for which I've built Buildroot and enabled the aforementioned Kconfig item.
<DC-IRC> <vitekst> I am using the latest version of Armbian for this board - 23.5.1, with the `6.1.30-meson64` kernel. I've also managed to rule out a hardware problem, as the controller card seems to work just fine while running a Debian image supplied by Sinovoip (https://wiki.banana-pi.org/Banana_Pi_BPI-CM4#Linux, `2023-01-12-debian-10-buster-bpi-cm4-aarch64-sd-emmc.img`).
<DC-IRC> <vitekst> What can I do to get this to work? Is there any other piece of information that I can acquire or a patch/kernel/DT/... that I could try?
<DC-IRC> <vitekst> Thanks a lot!
<DC-IRC> <vitekst> Attaching two kernel log fragments below:
<DC-IRC> <vitekst> ```
<DC-IRC> <vitekst> [ 1.663102] meson-pcie fc000000.pcie: host bridge /soc/pcie@fc000000 ranges:
<DC-IRC> <vitekst> [ 1.663125] meson-pcie fc000000.pcie: IO 0x00fc600000..0x00fc6fffff -> 0x0000000000
<DC-IRC> <vitekst> [ 1.663134] meson-pcie fc000000.pcie: MEM 0x00fc700000..0x00fdffffff -> 0x00fc700000
<DC-IRC> <vitekst> [ 1.663220] meson-pcie fc000000.pcie: iATU unroll: enabled
<DC-IRC> <vitekst> [ 1.663223] meson-pcie fc000000.pcie: iATU regions: 4 ob, 4 ib, align 64K, limit 4G
<DC-IRC> <vitekst> [ 1.675520] meson-gx-mmc ffe03000.sd: card claims to support voltages below defined range
<DC-IRC> <vitekst> [ 1.704710] meson-pcie fc000000.pcie: error: wait linkup timeout
<DC-IRC> <vitekst> [ 1.736598] meson-pcie fc000000.pcie: PCIe Gen.2 x1 link up
<DC-IRC> <vitekst> [ 1.736667] meson-pcie fc000000.pcie: PCI host bridge to bus 0000:00
<DC-IRC> <vitekst> [ 1.736671] pci_bus 0000:00: root bus resource [bus 00-ff]
<DC-IRC> <vitekst> [ 1.736677] pci_bus 0000:00: root bus resource [io 0x0000-0xfffff]
<DC-IRC> <vitekst> [ 1.736680] pci_bus 0000:00: root bus resource [mem 0xfc700000-0xfdffffff]
<DC-IRC> <vitekst> [ 1.736697] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
<DC-IRC> <vitekst> [ 1.736709] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
<DC-IRC> <vitekst> [ 1.736737] pci 0000:00:00.0: supports D1
<DC-IRC> <vitekst> [ 1.736740] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
<DC-IRC> <vitekst> [ 1.738430] pci 0000:01:00.0: [1b21:1064] type 00 class 0x010601
<DC-IRC> <vitekst> [ 2.476461] pci 0000:01:00.0: Max Payload Size set to 256 (was 128, max 512)
<DC-IRC> <vitekst> [ 2.476473] pci 0000:01:00.0: enabling Extended Tags
<DC-IRC> <vitekst> [ 2.520025] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
<DC-IRC> <vitekst> [ 2.563441] pci 0000:01:00.0: 4.000 Gb/s available PCIe bandwidth, limited by 5.0 GT/s PCIe x1 link at 0000:00:00.0 (capable of 7.876 Gb/s with 8.0 GT/s PCIe x1 link)
<DC-IRC> <vitekst> [ 2.616260] pci 0000:00:00.0: BAR 6: assigned [mem 0xfc700000-0xfc70ffff pref]
<DC-IRC> <vitekst> [ 2.616269] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
<DC-IRC> <vitekst> ```
<DC-IRC> <vitekst> ```
<DC-IRC> <vitekst> [ 3.073677] libata version 3.00 loaded.
<DC-IRC> <vitekst> [ 3.118384] usb 1-1: new high-speed USB device number 2 using xhci-hcd
<DC-IRC> <vitekst> [ 3.121496] ahci 0000:01:00.0: version 3.0
<DC-IRC> <vitekst> [ 3.121538] ahci: probe of 0000:01:00.0 failed with error -22
<DC-IRC> <vitekst> ```
<DC-IRC> <vitekst> Hi there, has anybody had luck while getting the PCIe interface to work on the Banana Pi CM4 with the A311D SoC?
<DC-IRC> <vitekst> I am using the said module with the supplied IO board, which exposes a miniPCIe connector, into which I inserted a SATA controller card based on the ASmedia ASM1064 chipset. The device is somehow registered by the PCIe controller (`lspci` shows it up with `01:00.0 SATA controller: ASMedia Technology Inc. Device 1064 (rev 02)`), but `ahci.ko`'s probe (`CONFIG_SATA_AHCI`) fails.
<DC-IRC> <vitekst> I am pretty sure that the card itself isn't the culprit, as it works just fine in a regular x86-64 PC and even on a couple of Freescale i.MX boards that I have, for which I've built Buildroot and enabled the aforementioned Kconfig item.
<DC-IRC> <vitekst> I am using the latest version of Armbian for this board - 23.5.1, with the `6.1.30-meson64` kernel. I've also managed to rule out a hardware problem, as the controller card seems to work just fine while running a Debian image supplied by Sinovoip (https://wiki.banana-pi.org/Banana_Pi_BPI-CM4#Linux, `2023-01-12-debian-10-buster-bpi-cm4-aarch64-sd-emmc.img`).
<DC-IRC> <vitekst> What can I do to get this to work? Is there any other piece of information that I can acquire or a patch/kernel/DT/... that I could try?
<DC-IRC> <vitekst> Thanks a lot!
<DC-IRC> <vitekst> Attaching two kernel log fragments below:
<DC-IRC> <vitekst> Hi there, has anybody had luck while getting the PCIe interface to work on the Banana Pi CM4 with the A311D SoC?
<DC-IRC> <vitekst> I am using the said module with the supplied IO board, which exposes a miniPCIe connector, into which I inserted a SATA controller card based on the ASmedia ASM1064 chipset. The device is somehow registered by the PCIe controller (`lspci` shows it up with `01:00.0 SATA controller: ASMedia Technology Inc. Device 1064 (rev 02)`), but `ahci.ko`'s probe (`CONFIG_SATA_AHCI`) fails.
<DC-IRC> <vitekst> I am pretty sure that the card itself isn't the culprit, as it works just fine in a regular x86-64 PC and even on a couple of Freescale i.MX boards that I have, for which I've built Buildroot and enabled the aforementioned Kconfig item.
<DC-IRC> <vitekst> I am using the latest version of Armbian for this board - 23.5.1, with the `6.1.30-meson64` kernel. I've also managed to rule out a hardware problem, as the controller card seems to work just fine while running a Debian image supplied by Sinovoip (https://wiki.banana-pi.org/Banana_Pi_BPI-CM4#Linux, `2023-01-12-debian-10-buster-bpi-cm4-aarch64-sd-emmc.img`).
<DC-IRC> <vitekst> What can I do to get this to work? Is there any other piece of information that I can provide or a patch/kernel/DT/... that I could try?
<DC-IRC> <vitekst> Thanks a lot!
<DC-IRC> <vitekst> Attaching two kernel log fragments below:
<DC-IRC> <c0rnelius77> I've also watched there vids, but have yet to get any interesting external storage to work on the mPCIE. It's listed as a PCIE & USB2. Connecting external storage isn't really its jam.
<DC-IRC> <c0rnelius77> I have tested it with a mpcie to usb adapter converter. That works, but of course the speeds aren't any better than just using the usb ports on the carrier board.
<DC-IRC> <c0rnelius77> I've also watched the vids, but have yet to get any interesting external storage to work on the mPCIE. It's listed as a PCIE & USB2. Connecting external storage isn't really its jam.