Skip to content

JMB585 - IOCREST M.2 (PCIe 3.0) to 5 Ports SATA #85

Open
@Mes-ser

Description

Bought this IOCREST M.2 (PCIe 3.0) to 5 Ports (You can get them cheaper) and tried to make it work with cm4 4GB

IOCREST M.2 (PCIe 3.0)

Already increased the BAR memory, but I still got this BAR 0: no space for [io size 0x0080]

brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[    1.149430] brcm-pcie fd500000.pcie:   No bus range found for /scb/pcie@7d500000, using [bus 00-ff]
[    1.149532] brcm-pcie fd500000.pcie:      MEM 0x0600000000..0x063fffffff -> 0x00c0000000
[    1.149641] brcm-pcie fd500000.pcie:   IB MEM 0x0000000000..0x00ffffffff -> 0x0400000000
[    1.175024] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC)
[    1.175408] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[    1.175445] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.175479] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff])
[    1.175587] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[    1.175848] pci 0000:00:00.0: PME# supported from D0 D3hot
[    1.179131] PCI: bus0: Fast back to back transfers disabled
[    1.179173] pci 0000:00:00.0: bridge configuration invalid ([bus ff-ff]), reconfiguring
[    1.179458] pci 0000:01:00.0: [197b:0585] type 00 class 0x010601
[    1.179534] pci 0000:01:00.0: reg 0x10: [io  0x0000-0x007f]
[    1.179585] pci 0000:01:00.0: reg 0x14: [io  0x0000-0x007f]
[    1.179635] pci 0000:01:00.0: reg 0x18: [io  0x0000-0x007f]
[    1.179684] pci 0000:01:00.0: reg 0x1c: [io  0x0000-0x007f]
[    1.179734] pci 0000:01:00.0: reg 0x20: [io  0x0000-0x007f]
[    1.179784] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x00001fff]
[    1.179835] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.180107] pci 0000:01:00.0: PME# supported from D3hot
[    1.180216] 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 15.752 Gb/s with 8.0 GT/s PCIe x2 link)
[    1.183371] PCI: bus1: Fast back to back transfers disabled
[    1.183408] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.183534] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[    1.183578] pci 0000:01:00.0: BAR 6: assigned [mem 0x600000000-0x60000ffff pref]
[    1.183617] pci 0000:01:00.0: BAR 5: assigned [mem 0x600010000-0x600011fff]
[    1.183658] pci 0000:01:00.0: BAR 0: no space for [io  size 0x0080]
[    1.183690] pci 0000:01:00.0: BAR 0: failed to assign [io  size 0x0080]
[    1.183722] pci 0000:01:00.0: BAR 1: no space for [io  size 0x0080]
[    1.183754] pci 0000:01:00.0: BAR 1: failed to assign [io  size 0x0080]
[    1.183786] pci 0000:01:00.0: BAR 2: no space for [io  size 0x0080]
[    1.183817] pci 0000:01:00.0: BAR 2: failed to assign [io  size 0x0080]
[    1.183849] pci 0000:01:00.0: BAR 3: no space for [io  size 0x0080]
[    1.183880] pci 0000:01:00.0: BAR 3: failed to assign [io  size 0x0080]
[    1.183912] pci 0000:01:00.0: BAR 4: no space for [io  size 0x0080]
[    1.183943] pci 0000:01:00.0: BAR 4: failed to assign [io  size 0x0080]
[    1.183979] pci 0000:00:00.0: PCI bridge to [bus 01]
[    1.184018] pci 0000:00:00.0:   bridge window [mem 0x600000000-0x6000fffff]
[    1.184439] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[    1.184683] pcieport 0000:00:00.0: PME: Signaling with IRQ 62
[    1.192597] iproc-rng200 fe104000.rng: hwrng registered

BAR memory

pcie@7d500000 {
                        ...
                        ranges = < 0x2000000 0x00 0xc0000000 0x06 0x00 0x00 0x40000000 >;
                        dma-ranges = < 0x2000000 0x00 0x00 0x00 0x00 0x00 0xc0000000 >;
                        ...
                };

sudo lspci -v shows

01:00.0 SATA controller: JMicron Technology Corp. Device 0585 (prog-if 01 [AHCI 1.0])
        Subsystem: JMicron Technology Corp. Device 0000
        Flags: fast devsel, IRQ 255
        I/O ports at <unassigned> [disabled]
        I/O ports at <unassigned> [disabled]
        I/O ports at <unassigned> [disabled]
        I/O ports at <unassigned> [disabled]
        I/O ports at <unassigned> [disabled]
        Memory at 600010000 (32-bit, non-prefetchable) [disabled] [size=8K]
        [virtual] Expansion ROM at 600000000 [disabled] [size=64K]
        Capabilities: [80] Power Management version 3
        Capabilities: [90] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [c0] Express Legacy Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [150] Device Serial Number 00-00-00-00-00-00-00-00
        Capabilities: [160] Power Budgeting <?>
        Capabilities: [1b8] Latency Tolerance Reporting
        Capabilities: [300] #19
        Capabilities: [900] L1 PM Substates

ENV:

Linux raspberrypi 5.10.16-v7l+ #1402 SMP Tue Feb 16 14:12:18 GMT 2021 armv7l GNU/Linux

At this point I have no idea how to go further with this.
Confirmed that it works - connected to windows PC and it shows HDD.

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions