软件01 发表于 2021-3-9 17:32:26

imx8 支持pcie endpoint

插上模块,输入以下命令:$ dmesg| grep pci
$ lspci -v
MYZR-IMX8M-EK300输出以下信息:

root@myzr:~# dmesg| grep pci
[    3.291149] ehci-pci: EHCI PCI platform driver
[    3.314253] ohci-pci: OHCI PCI platform driver
[    5.563865] imx6q-pcie 33800000.pcie: 33800000.pcie supply epdev_on not found, using dummy regulator
[    5.572501] OF: PCI: host bridge /pcie@0x33800000 ranges:
[    5.576752] OF: PCI:   No bus range found for /pcie@0x33800000, using
[    5.593555] imx6q-pcie 33800000.pcie: pcie phy pll is locked.
[    5.842329] imx6q-pcie 33800000.pcie: phy link never came up
[    5.846713] imx6q-pcie 33800000.pcie: failed to initialize host
[    5.851339] imx6q-pcie 33800000.pcie: unable to add pcie port.
[    5.856799] imx6q-pcie: probe of 33800000.pcie failed with error -110
[    5.864915] imx6q-pcie 33c00000.pcie: 33c00000.pcie supply epdev_on not found, using dummy regulator
[    5.873059] OF: PCI: host bridge /pcie@0x33c00000 ranges:
[    5.877227] OF: PCI:   No bus range found for /pcie@0x33c00000, using
[    5.894067] imx6q-pcie 33c00000.pcie: pcie phy pll is locked.
[    5.971961] imx6q-pcie 33c00000.pcie: Speed change timeout
[    5.976153] imx6q-pcie 33c00000.pcie: Roll back to GEN1 link!
[    5.980606] imx6q-pcie 33c00000.pcie: Link up, Gen1
[    5.987200] imx6q-pcie 33c00000.pcie: PCI host bridge to bus 0000:00
[    5.992283] pci_bus 0000:00: root bus resource
[    5.996545] pci_bus 0000:00: root bus resource (bus address )
[    6.004231] pci_bus 0000:00: root bus resource
[    6.009932] pci 0000:00:00.0: type 01 class 0x060400
[    6.009971] pci 0000:00:00.0: reg 0x10:
[    6.009982] pci 0000:00:00.0: reg 0x38:
[    6.010040] pci 0000:00:00.0: supports D1
[    6.010048] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    6.010645] pci 0000:01:00.0: type 00 class 0x028000
[    6.010784] pci 0000:01:00.0: reg 0x10:
[    6.011224] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    6.022488] pci 0000:00:00.0: BAR 0: assigned
[    6.028597] pci 0000:00:00.0: BAR 14: assigned
[    6.034248] pci 0000:00:00.0: BAR 6: assigned
[    6.040247] pci 0000:01:00.0: BAR 0: assigned
[    6.046325] pci 0000:00:00.0: PCI bridge to
[    6.050338] pci 0000:00:00.0:   bridge window
[    6.056721] pcieport 0000:00:00.0: Signaling PME with IRQ 271
[    6.061499] pcieport 0000:00:00.0: AER enabled with IRQ 271



root@myzr:~# lspci -v
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01) (prog-if 00 )
      Flags: bus master, fast devsel, latency 0, IRQ 271
      Memory at 20000000 (64-bit, non-prefetchable)
      Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
      Memory behind bridge: 20100000-201fffff
       Expansion ROM at 20200000
      Capabilities: Power Management version 3
      Capabilities: MSI: Enable+ Count=1/1 Maskable+ 64bit+
      Capabilities: Express Root Port (Slot-), MSI 00
      Capabilities: Advanced Error Reporting
      Capabilities: L1 PM Substates
      Kernel driver in use: pcieport

01:00.0 Network controller: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection (rev 61)
      Subsystem: Intel Corporation PRO/Wireless 4965 AG or AGN Network Connection
      Flags: fast devsel
      Memory at 20100000 (64-bit, non-prefetchable)
      Capabilities: Power Management version 3
      Capabilities: MSI: Enable- Count=1/1 Maskable- 64bit+
      Capabilities: Express Endpoint, MSI 00
      Capabilities: Advanced Error Reporting
      Capabilities: Device Serial Number 00-1f-3b-ff-ff-1c-b8-fd





Cupid天空 发表于 2022-2-8 11:15:04

root@imx8mqevk:~# dmesg |grep pci
[    1.120315] ehci-pci: EHCI PCI platform driver
[    1.143135] ohci-pci: OHCI PCI platform driver
[    3.382686] imx6q-pcie 33800000.pcie: 33800000.pcie supply epdev_on not found, using dummy regulator
[    3.391348] OF: PCI: host bridge /pcie@0x33800000 ranges:
[    3.395460] OF: PCI:   No bus range found for /pcie@0x33800000, using
[    3.412224] imx6q-pcie 33800000.pcie: pcie phy pll is locked.
[    3.490060] imx6q-pcie 33800000.pcie: Speed change timeout
[    3.494249] imx6q-pcie 33800000.pcie: Roll back to GEN1 link!
[    3.498700] imx6q-pcie 33800000.pcie: Link up, Gen1
[    3.504883] imx6q-pcie 33800000.pcie: PCI host bridge to bus 0000:00
[    3.509965] pci_bus 0000:00: root bus resource
[    3.514218] pci_bus 0000:00: root bus resource
[    3.519108] pci_bus 0000:00: root bus resource
[    3.524774] pci 0000:00:00.0: type 01 class 0x060400
[    3.524802] pci 0000:00:00.0: reg 0x10:
[    3.524811] pci 0000:00:00.0: reg 0x38:
[    3.524858] pci 0000:00:00.0: supports D1
[    3.524864] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    3.525313] pci 0000:01:00.0: type 00 class 0x028000
[    3.525470] pci 0000:01:00.0: reg 0x10:
[    3.525924] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    3.535389] pci 0000:00:00.0: BAR 0: assigned
[    3.541528] pci 0000:00:00.0: BAR 14: assigned
[    3.547116] pci 0000:00:00.0: BAR 6: assigned
[    3.553110] pci 0000:01:00.0: BAR 0: assigned
[    3.559173] pci 0000:00:00.0: PCI bridge to
[    3.563166] pci 0000:00:00.0:   bridge window
[    3.569337] pcieport 0000:00:00.0: Signaling PME with IRQ 239
[    3.574077] pcieport 0000:00:00.0: AER enabled with IRQ 239
[    3.579763] imx6q-pcie 33c00000.pcie: 33c00000.pcie supply epdev_on not found, using dummy regulator
[    3.587962] OF: PCI: host bridge /pcie@0x33c00000 ranges:
[    3.592134] OF: PCI:   No bus range found for /pcie@0x33c00000, using
[    3.609141] imx6q-pcie 33c00000.pcie: pcie phy pll is locked.
[    3.857765] imx6q-pcie 33c00000.pcie: phy link never came up
[    3.862147] imx6q-pcie 33c00000.pcie: failed to initialize host
[    3.866777] imx6q-pcie 33c00000.pcie: unable to add pcie port.
[    3.872123] imx6q-pcie: probe of 33c00000.pcie failed with error -110

lspci -v
00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01) (prog-if 00 )
      Flags: bus master, fast devsel, latency 0, IRQ 239
      Memory at 18000000 (64-bit, non-prefetchable)
      Bus: primary=00, secondary=01, subordinate=ff, sec-latency=0
      I/O behind bridge: None
      Memory behind bridge: 18100000-181fffff
      Prefetchable memory behind bridge: None
       Expansion ROM at 18200000
      Capabilities: Power Management version 3
      Capabilities: MSI: Enable+ Count=1/1 Maskable+ 64bit+
      Capabilities: Express Root Port (Slot-), MSI 00
      Capabilities: Advanced Error Reporting
      Capabilities: L1 PM Substates
      Kernel driver in use: pcieport

01:00.0 Network controller: Intel Corporation Wireless 7260 (rev bb)
      Subsystem: Intel Corporation Dual Band Wireless-AC 7260
      Flags: fast devsel
      Memory at 18100000 (64-bit, non-prefetchable)
      Capabilities: Power Management version 3
      Capabilities: MSI: Enable- Count=1/1 Maskable- 64bit+
      Capabilities: Express Endpoint, MSI 00
      Capabilities: Advanced Error Reporting
      Capabilities: Device Serial Number 00-16-6f-ff-ff-e7-02-d9
      Capabilities: Latency Tolerance Reporting
      Capabilities: Vendor Specific Information: ID=cafe Rev=1 Len=014 <?>

请问我这个是成功了还是失败了???

软件01 发表于 2022-3-4 11:25:08

Cupid天空 发表于 2022-2-8 11:15
root@imx8mqevk:~# dmesg |grep pci
[    1.120315] ehci-pci: EHCI PCI platform driver
[    1.143135] o ...

嗯,检测到了,加WIFI驱动试试
页: [1]
查看完整版本: imx8 支持pcie endpoint