Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

Linux/DRA746: erratic error on PCIe wireless card initialization

$
0
0

Part Number:DRA746

Tool/software: Linux

Hi,

I'm trying to setup a PCIe card on DRA7xx, using Linux kernel from Processor SDK Linux Automotive 3.01.00.03. The card is based on a Broadcom BCM4359 and thus I'm using brcmfmac driver.

PCI device is correctly detected and seen using lspci. When brcmfmac driver is probed, however, sometimes the firmware loading fails and following message is shown:

WARNING: CPU: 0 PID: 231 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x25c/0x368()
44000000.ocp:L3 Standard Error: MASTER PCIE1 TARGET GPMC (Read Link): At Address: 0x4006E240 : Data Access in User mode during Functional access

dmesg | grep pci:

[    0.209698] PCI host bridge /ocp/axi@0/pcie@51000000 ranges:
[    0.209710]   No bus range found for /ocp/axi@0/pcie@51000000, using [bus 00-ff]
[    0.209966] dra7-pcie 51000000.pcie: PCIE clock output enabled
[    0.223277] dra7-pcie 51000000.pcie: PCI host bridge to bus 0000:00
[    0.223290] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.223301] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    0.223310] pci_bus 0000:00: root bus resource [mem 0x20013000-0x2fffffff]
[    0.223319] pci_bus 0000:00: scanning bus
[    0.223355] pci 0000:00:00.0: [104c:8888] type 01 class 0x060400
[    0.223391] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[    0.223409] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    0.223446] pci 0000:00:00.0: calling pci_fixup_ide_bases+0x0/0x6c
[    0.223485] pci 0000:00:00.0: supports D1
[    0.223495] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[    0.223505] pci 0000:00:00.0: PME# disabled
[    0.223720] pci_bus 0000:00: fixups for bus
[    0.223746] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 0
[    0.223859] pci_bus 0000:01: scanning bus
[    0.223926] pci 0000:01:00.0: [14e4:4355] type 00 class 0x028000
[    0.224053] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00007fff 64bit]
[    0.224101] pci 0000:01:00.0: reg 0x18: [mem 0x00000000-0x003fffff 64bit]
[    0.224203] pci 0000:01:00.0: calling pci_fixup_ide_bases+0x0/0x6c
[    0.224427] pci 0000:01:00.0: supports D1 D2
[    0.226620] pci_bus 0000:01: fixups for bus
[    0.226655] pci_bus 0000:01: bus scan returning with max=01
[    0.226667] pci 0000:00:00.0: scanning [bus 01-01] behind bridge, pass 1
[    0.226678] pci_bus 0000:00: bus scan returning with max=01
[    0.226720] irq: no irq domain found for /ocp/axi@0/pcie@51000000/interrupt-controller !
[    0.226729] pci 0000:00:00.0: fixup irq: got 0
[    0.226737] pci 0000:00:00.0: assigning IRQ 00
[    0.226780] irq: no irq domain found for /ocp/axi@0/pcie@51000000/interrupt-controller !
[    0.226788] pci 0000:01:00.0: fixup irq: got 0
[    0.226796] pci 0000:01:00.0: assigning IRQ 00
[    0.226830] pci 0000:00:00.0: BAR 14: assigned [mem 0x20200000-0x207fffff]
[    0.226841] pci 0000:00:00.0: BAR 0: assigned [mem 0x20100000-0x201fffff]
[    0.226854] pci 0000:00:00.0: BAR 1: assigned [mem 0x20020000-0x2002ffff]
[    0.226868] pci 0000:01:00.0: BAR 2: assigned [mem 0x20400000-0x207fffff 64bit]
[    0.226908] pci 0000:01:00.0: BAR 0: assigned [mem 0x20200000-0x20207fff 64bit]
[    0.226946] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.226958] pci 0000:00:00.0:   bridge window [mem 0x20200000-0x207fffff]
[    0.227175] pcieport 0000:00:00.0: Signaling PME through PCIe PME interrupt
[    0.227185] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[    0.227196] pcie_pme 0000:00:00.0:pcie01: service driver pcie_pme loaded
[    0.227310] aer 0000:00:00.0:pcie02: service driver aer loaded
[    5.638588] brcmf_pcie_download_fw_nvram: FW failed to initialize

lspci -v

00:00.0 Class 0604: Device 104c:8888 (rev 01)
        Flags: bus master, fast devsel, latency 0, IRQ 427
        Memory at 20100000 (32-bit, non-prefetchable) [size=1M]
        Memory at 20020000 (32-bit, non-prefetchable) [size=64K]
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: None
        Memory behind bridge: 20200000-207fffff [size=6M]
        Prefetchable memory behind bridge: None
        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
        Kernel driver in use: pcieport

01:00.0 Class 0280: Device 14e4:4355 (rev 05)
        Subsystem: Device 14e4:4355
        Flags: fast devsel
        Memory at 20200000 (64-bit, non-prefetchable) [size=32K]
        Memory at 20400000 (64-bit, non-prefetchable) [size=4M]
        Capabilities: [48] Power Management version 3
        Capabilities: [58] MSI: Enable- Count=1/16 Maskable- 64bit+
        Capabilities: [68] Vendor Specific Information: Len=44 <?>
        Capabilities: [ac] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [13c] Device Serial Number 00-00-00-ff-ff-00-00-00
        Capabilities: [150] Power Budgeting <?>
        Capabilities: [160] Virtual Channel
        Capabilities: [1b0] Latency Tolerance Reporting
        Capabilities: [220] #15
        Capabilities: [240] L1 PM Substates

In other cases, everything works ok.

In this forum I found some discussion that suggested to double-check interrupts bindings and address spaces, but in my case everything seems ok.

How can I debug this issue?

Thanks

BR,

Francesco


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>