linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MPC8641D PEX: programming OWBAR in Endpoint mode?
@ 2010-09-22 15:55 david.hagood
  2010-09-23  3:21 ` Chen, Tiejun
  0 siblings, 1 reply; 10+ messages in thread
From: david.hagood @ 2010-09-22 15:55 UTC (permalink / raw)
  To: linuxppc-dev

I am trying to get the PCIe interfaces of a Freescale MPC8641D working in
endpoint mode (i.e. as a PCI device rather than a PCI root complex host).

I can get the device to show up on the host's PCI bus, I can program the
inbound ATMUs such that the BARS are updated when the host (re-)scans
them, but I cannot for the life of me get the PPC's Outbound ATMUS to
work.

When I attempt to program them, I can program ALL the registers EXCEPT the
OWBAR - which steadfastly remains 0 no matter what I write to it.

As a result, when I attempt to bus master out from the PPC to the PCIe
address spaces via the outbound ATMUs, I get a bus fault on the PPC as
there is no device at the address I am accessing.

I've double-checked the LAWs to make sure the PEX is mapped into local
space, I've put the OWBAR in that address space, I've tried different
outbound ATMUs, and NOTHING works. Not ATMU0, not ATMU1, etc.

I've been trying to work with our Freescale rep, but I am getting nowhere
on that front.

Does anybody have any suggestions on what I might be doing wrong? I mean,
it looks like it should be a simple out_be32(addr_of_OWBAR,value), just
like all the other accesses to the ATMU registers that seem to be working
(as in, I read back what I wrote).

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

end of thread, other threads:[~2010-09-26 10:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-22 15:55 MPC8641D PEX: programming OWBAR in Endpoint mode? david.hagood
2010-09-23  3:21 ` Chen, Tiejun
2010-09-23 11:11   ` David Hagood
2010-09-23 14:10     ` Chen, Tiejun
2010-09-23 14:44       ` david.hagood
2010-09-24  5:09         ` Chen, Tiejun
2010-09-24 10:50           ` David Hagood
2010-09-25  9:46             ` tiejun.chen
2010-09-25 11:51               ` David Hagood
2010-09-26 10:14                 ` tiejun.chen

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).