linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* device not available because of BAR 0 collisions
@ 2011-04-25 20:10 Steven A. Falco
  2011-04-26  0:01 ` Benjamin Herrenschmidt
  0 siblings, 1 reply; 11+ messages in thread
From: Steven A. Falco @ 2011-04-25 20:10 UTC (permalink / raw)
  To: linuxppc-dev

I'm getting an error message when trying to talk to some custom hardware:

dx83xx 0001:43:00.0: device not available because of BAR 0 [0xa1000000-0xa1ffffff] collisions

I see in setup-res.c that this message comes out when there is no parent for
a device resource.

I've been digging around in the code, and I confess that I cannot figure out
where the parent member is assigned.  Can someone please give me a hint as to
where the assignment happens?

The hardware consists of a pair of ASICs attached to a PPC405EX via a PCIe switch.
The device tree is based on the Kilauea evaluation board.  The device tree does not
specify the PCIe switch or ASICs.

Do I need to add something to the device tree to represent the PCIe switch, or
should it be automatically discovered and configured?

U-Boot reports the PCI hardware as:

PCIE0: successfully set as root-complex
        01  00  1172  0004  ff00  00
PCIE1: successfully set as root-complex
        05  00  1b03  7000  0000  ff
        04  01  10b5  8613  0604  00
        06  00  1b03  7000  0000  ff
        04  02  10b5  8613  0604  00
        03  00  10b5  8613  0604  00

The PCIe switch shows up as 03:00, 04:01, and 04:02.  The ASICs show up as 05:00 and
06:00, so there is no problem with config-space that I can see.

Similar hardware (an evaluation board for the ASICs) works ok on an x86 PC.  The
PCIe switch is recognized, and the ASIC driver probes and enables the device
without any problems.  Sadly, I cannot plug it into the Kilauea because it needs a
PCIe x16 slot.

Guidance gratefully accepted!

	Steve


-- 
A: Because it makes the logic of the discussion difficult to follow.
Q: Why shouldn't I top post?
A: No.
Q: Should I top post?

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-04-28 21:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-25 20:10 device not available because of BAR 0 collisions Steven A. Falco
2011-04-26  0:01 ` Benjamin Herrenschmidt
2011-04-26 13:38   ` Steven A. Falco
2011-04-26 23:39     ` Benjamin Herrenschmidt
2011-04-27 14:22       ` Steven A. Falco
2011-04-27 19:51       ` Steven A. Falco
2011-04-28 17:29         ` Steven A. Falco
2011-04-28 20:55           ` Benjamin Herrenschmidt
2011-04-28 21:11             ` Steven A. Falco
2011-04-28 21:14               ` Benjamin Herrenschmidt
2011-04-28 21:19                 ` Steven A. Falco

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).