PCIe bus on SabreSD not working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PCIe bus on SabreSD not working

857 Views
chrisbeeching
Contributor I

Hi Community,

I have an issue trying to get PCIe working on a Sabresd board. Kernel version is 3.19.0, u-boot version is 2015.01.

U-boot output:

    switch to partitions #0, OK

    mmc1 is current device

    SD/MMC found on device 1

    Checking for: /uEnv.txt ...

    Checking for: /boot/uEnv.txt ...

    55 bytes read in 130 ms (0 Bytes/s)

    Loaded environment from /boot/uEnv.txt

    Checking if uname_r is set in /boot/uEnv.txt...

    Running uname_boot ...

    loading /boot/vmlinuz-3.19.0 ...

    5293776 bytes read in 415 ms (12.2 MiB/s)

    loading /boot/dtbs/3.19.0/imx6q-sabresd.dtb ...

    35322 bytes read in 456 ms (75.2 KiB/s)

    debug: [console=ttymxc0,115200 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait fixrtc quiet init=/lib/systemd/systemd] ...

    debug: [bootz 0x12000000 - 0x18000000] ...

    Kernel image @ 0x12000000 [ 0x000000 - 0x50c6d0 ]

    ## Flattened Device Tree blob at 18000000

       Booting using the fdt blob at 0x18000000

       Using Device Tree in place at 18000000, end 1800b9f9

    Starting kernel ...

    [    1.973027] of_dma_request_slave_channel: dma-names property of node '/soc/aips-bus@02100000/i2c@021a0000' missing or empty

    [    1.973807] of_dma_request_slave_channel: dma-names property of node '/soc/aips-bus@02100000/i2c@021a4000' missing or empty

    [    1.974568] of_dma_request_slave_channel: dma-names property of node '/soc/aips-bus@02100000/i2c@021a8000' missing or empty

    [    2.381711] imx6q-pcie 1ffc000.pcie: phy link never came up

    [    2.384062] pwm-backlight backlight: unable to request PWM, trying legacy API

    [    2.384076] pwm-backlight backlight: unable to request legacy PWM

    [    2.466612] Error: Driver 'tfp410' is already registered, aborting...

    [    2.626601] coda 2040000.vpu: firmware request failed

    [    2.828356] pwm-backlight backlight: unable to request PWM, trying legacy API

    [    2.835503] pwm-backlight backlight: unable to request legacy PWM

    [    2.843209] pwm-backlight backlight: unable to request PWM, trying legacy API

    [    2.850433] pwm-backlight backlight: unable to request legacy PWM

    [    2.858155] sr_init: platform driver register failed for SR

    [    2.863927] pwm-backlight backlight: unable to request PWM, trying legacy API

    [    2.880022] pwm-backlight backlight: unable to request PWM, trying legacy API

    [    2.887181] pwm-backlight backlight: unable to request legacy PWM

    [    2.988895] pwm-backlight backlight: unable to request PWM, trying legacy API

    [    2.996169] pwm-backlight backlight: unable to request legacy PWM

    systemd-fsck[120]: rootfs: clean, 32707/241920 files, 182650/967424 blocks (check deferred; on battery)

    [    4.296597] m25p80 spi0.0: unrecognized JEDEC id bytes: 00,  0,  0

    [    4.877478] egalax_ts 2-0004: Failed to read firmware version

    Debian GNU/Linux 7 sabresd-172 ttymxc0

When I try to use the pci command on u-boot, I only get:

    pci_bus_to_hose() failed

 

The PCI references in my dmesg output are as follows:

    [    2.062416] PCI: CLS 0 bytes, default 64

    [    2.381195] imx6q-pcie 1ffc000.pcie: phy link never came up

    [    2.381459] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00

    [    2.381478] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]

    [    2.381493] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]

    [    2.381506] pci_bus 0000:00: root bus resource [bus 00-ff]

    [    2.381544] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400

    [    2.381572] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]

    [    2.381593] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]

    [    2.381664] pci 0000:00:00.0: supports D1

    [    2.381675] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold

    [    2.381979] PCI: bus0: Fast back to back transfers disabled

    [    2.382152] PCI: bus1: Fast back to back transfers enabled

    [    2.382170] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01

    [    2.382252] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]

    [    2.382272] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]

    [    2.382288] pci 0000:00:00.0: PCI bridge to [bus 01]

    [    2.382570] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt

    [    2.382587] pcie_pme 0000:00:00.0:pcie01: service driver pcie_pme loaded

    [    2.382742] aer 0000:00:00.0:pcie02: service driver aer loaded

    [    2.554849] ehci-pci: EHCI PCI platform driver

lspci -v output:

    00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01) (prog-if 00 [Normal decode])

        Flags: bus master, fast devsel, latency 0

        Memory at 01000000 (32-bit, non-prefetchable) [size=1M]

        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0

        [virtual] Expansion ROM at 01100000 [disabled] [size=64K]

        Capabilities: [40] Power Management version 3

        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable+ 64bit+

        Capabilities: [70] Express Root Port (Slot-), MSI 00

        Capabilities: [100] Advanced Error Reporting

        Capabilities: [140] Virtual Channel

        Kernel driver in use: pcieport

Any help gratefully received!

Labels (2)
0 Kudos
1 Reply

290 Views
igorpadykov
NXP Employee
NXP Employee

Hi Chris

one can check if configuration is set properly:

https://lists.yoctoproject.org/pipermail/meta-freescale/2015-March/013040.html

and suggest post this to meta-fsl-arm mailing list, so that someone familiar with 3.19 release

could try to assist you.

https://lists.yoctoproject.org/listinfo/meta-freescale

Also one can try freescale BSP, check necessary configuration in sect.42.4 Using PCIe

i.MX_6_Linux_Reference_Manual.pdf  included in this bundle

L3.10.53_1.1.0_iMX6QDLS_Bundle : i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo

Linux Binary Demo Files and Linux BSP Documentation

Best regards

igor

0 Kudos