Re: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-26 Thread tiejun.chen
David Hagood wrote: > On Sat, 2010-09-25 at 17:46 +0800, tiejun.chen wrote: >> As a summary you have no any issue to access InBound/BAR/LAW. > > Correct: full access to the inbound. >> And I remember there is only one >> requirement to OutBound, and that is the window address should be aligned >>

Re: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-25 Thread David Hagood
On Sat, 2010-09-25 at 17:46 +0800, tiejun.chen wrote: > As a summary you have no any issue to access InBound/BAR/LAW. Correct: full access to the inbound. > And I remember there is only one > requirement to OutBound, and that is the window address should be aligned > based > on the size from OWS.

Re: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-25 Thread tiejun.chen
David Hagood wrote: > On Fri, 2010-09-24 at 07:09 +0200, Chen, Tiejun wrote: > >> Right but this should be done for RC mode, not for EP mode we're >> discussing. >> >> Tiejun > > According to the Freescale documentation, outbound is just as valid for > endpoint as for root complex - indeed, to ge

RE: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-24 Thread David Hagood
On Fri, 2010-09-24 at 07:09 +0200, Chen, Tiejun wrote: > > Right but this should be done for RC mode, not for EP mode we're > discussing. > > Tiejun According to the Freescale documentation, outbound is just as valid for endpoint as for root complex - indeed, to generate MSIs from software REQU

RE: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-23 Thread Chen, Tiejun
> -Original Message- > From: david.hag...@gmail.com [mailto:david.hag...@gmail.com] > Sent: Thursday, September 23, 2010 10:44 PM > To: Chen, Tiejun > Cc: David Hagood; linuxppc-...@ozlabs.org > Subject: RE: MPC8641D PEX: programming OWBAR in Endpoint mode? > >

RE: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-23 Thread david . hagood
>> -Original Message- via the BARs. > > I read your email again and something hint me. I notice you clarify you > already condigure InBound successfully. I am programming BOTH the inbound ATMUs to make PPC memory available to the root complex, AND programming outbound ATMUs to enable the

RE: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-23 Thread Chen, Tiejun
> -Original Message- > From: David Hagood [mailto:david.hag...@gmail.com] > Sent: Thursday, September 23, 2010 7:11 PM > To: Chen, Tiejun; linuxppc-...@ozlabs.org > Subject: RE: MPC8641D PEX: programming OWBAR in Endpoint mode? > > On Thu, 2010-09-23 at 05:21 +020

RE: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-23 Thread David Hagood
On Thu, 2010-09-23 at 05:21 +0200, Chen, Tiejun wrote: > > I can get the device to show up on the host's PCI bus, I can > > This only ensure you can access the PCIe configure space. Not quite: I can also read the BARs that I program, and the memory behind them on the PPC. > > > program the inbou

RE: MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-22 Thread Chen, Tiejun
nuxppc-...@ozlabs.org > Subject: MPC8641D PEX: programming OWBAR in Endpoint mode? > > 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). > As far as I recalled on 4xx the u-bo

MPC8641D PEX: programming OWBAR in Endpoint mode?

2010-09-22 Thread david . hagood
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, b