Changes

Jump to: navigation, search

DESK-MX8M-L/Peripherals/PCI express

3,709 bytes added, 16:11, 13 January 2022
no edit summary
...
...
[ 0.443763556894] PCI: CLS 0 bytes, default 64[ 01.459987047319] imx6qehci-pcie 1ffc000pci: EHCI PCI platform driver[ 1.pcie063520] ohci-pci: no reserved region node.OHCI PCI platform driver[ 02.460090174414] imx6q-pcie 1ffc00033800000.pcie: 1ffc00033800000.pcie supply epdev_on not found, using dummy regulator[ 02.460415192615] OF: PCI: host bridge /soc/imx6q-pcie 33800000.pcie@1ffc000 ranges:EXT REF_CLK is used!.[ 02.460451205190] OF: PCIimx6q-pcie 33800000.pcie: PCIe PHY PLL clock is locked.[ IO 0x01f800002.218503] imx6q-pcie 33800000.pcie: PCIe PLL locked after 0 us.0x01f8ffff -> 0x00000000[ 02.460470232672] OFimx6q-pcie 33800000.pcie: PCIhost bridge /pcie@33800000 ranges: MEM 0x01000000..0x01efffff -> 0x01000000[ 02.709248246661] imx6q-pcie 1ffc00033800000.pcie: phy link never came up No bus range found for /pcie@33800000, using [bus 00-ff][ 02.712328246679] imx6q-pcie 1ffc00033800000.pcie: failed to initialize host IO 0x1ff80000..0x1ff8ffff -> 0x00000000[ 02.712343266200] imx6q-pcie 1ffc00033800000.pcie: unable to add pcie port MEM 0x18000000..0x1fefffff -> 0x18000000[ 02.712571377981] imx6q-pcie: probe of 1ffc00033800000.pcie failed with error -110: Link up
...
...
</pre> The PCIe usage is strictly related to the peripheral type connected to the PCIe slot. Then, the peripheral type defines the linux commands used for the accessing (hiding the PCIe bus commands) ==== PCIe to USB3 example ====Using a PCIe to USB card, like the [https://www.amazon.com/BEYIMEI-PCI-Express-Expansion-Asmedia-Chipset/dp/B087WNWD4M?th=1 following one]: <pre class="workstation-terminal">......[ 2.492367] imx6q-pcie 33800000.pcie: Link up, Gen2[ 2.459055497366] ehciimx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00[ 2.503751] pci_bus 0000:00: root bus resource [bus 00-ff][ 2.509246] pci_bus 0000:00: root bus resource [io 0x0000-0xffff][ 2.515444] pci_bus 0000:00: root bus resource [mem 0x18000000-0x1fefffff][ 2.522347] pci0000:00:00.0: [16c3:abcd] type 01 class 0x060400[ 2.535438] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff][ 2.541751] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref][ 2.555604] pci 0000:00:00.0: supports D1[ 2.566199] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold[ 2.568612] pci 0000:01:00.0: [1912:0015] type 00 class 0x0c0330[ 2.579348] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit][ 2.591671] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold[ 2.620851] pci 0000:00:00.0: BAR 0: assigned [mem 0x18000000-0x180fffff][ 2.634710] pci 0000:00:00.0: BAR 14: assigned [mem 0x18100000-0x181fffff][ 2.648698] pci 0000:00:00.0: BAR 6: assigned [mem 0x18200000-0x1820ffff pref][ 2.661946] pci 0000:01:00.0: BAR 0: assigned [mem 0x18100000-0x18101fff 64bit][ 2.677237] pci 0000:00:00.0: EHCI PCI platform driverbridge to [bus 01-ff][ 2.687111] pci 0000:00:00.0: bridge window [mem 0x18100000-0x181fffff][ 2.696130] pcieport 0000:00:00.0: PME: Signaling with IRQ 240[ 2.711468] pcieport 0000:00:00.0: AER: enabled with IRQ 240[ 2.724342] pci 0000:01:00.0: enabling device (0000 -> 0002)[ 2.739005] pci 0000:01:00.0: quirk_usb_early_handoff+0x0/0x990 took 14330 usecs
...
...
</pre>
The the PCIe usage to USB 3 bridge is strictly related to detected: <pre class="workstation-terminal">root@desk-mx8mp:~# lspci00:00.0 PCI bridge: Synopsys, Inc. DWC_usb3 (rev 01)01:00.0 USB controller: Renesas Technology Corp. uPD720202 USB 3.0 Host Controller (rev 02)root@desk-mx8mp:~# </pre> and the peripheral type connected to the PCIe slottwo additional USB3 ports will be available:<pre class="workstation-terminal">root@desk-mx8mp:~# dmesg | grep -i usb | grep xhci[ 2.355209] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 1[ 2.392901] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 2[ 2.400575] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed[ 2.637156] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3[ 2.696636] xhci_hcd 0000:01:00. Then0: new USB bus registered, assigned bus number 4[ 2.710397] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeedroot@desk-mx8mp:~#</pre> Inserting an USB key in the peripheral type defines the linux commands used second USB3 port: <pre class="workstation-terminal">root@desk-mx8mp:~# [ 269.531697] usb 4-2: new SuperSpeed Gen 1 USB device number 2 using xhci_hcd[ 269.570446] usb-storage 4-2:1.0: USB Mass Storage device detected[ 269.577329] usb-storage 4-2:1.0: Quirks match for the accessing vid 090c pid 1000: 400[ 269.584444] scsi host0: usb-storage 4-2:1.0[ 270.849828] scsi 0:0:0:0: Direct-Access Samsung Flash Drive 1100 PQ: 0 ANSI: 6[ 270.859346] sd 0:0:0:0: [sda] 62656641 512-byte logical blocks: (hiding the PCIe bus commands32.1 GB/29.9 GiB)[ 270.867392] sd 0:0:0:0: [sda] Write Protect is off[ 270.872347] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA[ 270.899423] sda: sda1[ 270.903519] sd 0:0:0:0: [sda] Attached SCSI removable diskroot@desk-mx8mp:~#</pre>
=== Additional information ===
8,286
edits

Navigation menu