From: David Hagood <david.hagood@gmail.com>
To: "Chen, Tiejun" <Tiejun.Chen@windriver.com>, linuxppc-dev@ozlabs.org
Subject: RE: MPC8641D PEX: programming OWBAR in Endpoint mode?
Date: Thu, 23 Sep 2010 06:11:08 -0500 [thread overview]
Message-ID: <1285240268.2454.8.camel@chumley> (raw)
In-Reply-To: <52CF90264091A14888078A031D780F4306C8C0FF@ism-mail03.corp.ad.wrs.com>
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 inbound ATMUs such that the BARS are updated when
> > the host (re-)scans them, but I cannot for the life of me get
>
> What value are configured to IntBound REGs?
I can program them at run time via sysfs on the PPC's side, so there is
no single set of values. However, I am pointing them at the PPC's RAM
space, and as I stated above, I can read the PPC's RAM from the host
side via the BARs.
> How do you configure OWS of PEXOWAR?
>
> I means you still access that if OWS is match the whole target memory
> size even when '0' is as the internal platform address.
As I understand it, not if the OWS is not correctly mapped on the PPC
side - the PEX outbound ATMU's OWBAR must be mapped to a region of the
PPCs address space that is also mapped to PEX in the LAW. The LAW does
NOT indicate that PPC address 0 is mapped to the PEX.
>
> Out_be32 should be fine for atmu REGs. And also you can refe to the
> function, setup_pci_atmu & setup_one_atmu, on the file,
> arch/powerpc/sysdev/fsl_pci.c, to know how to access atmu REGs. Often
> you should disable them, configure then enable/invoke atmu antry as
> normal configuring sequent.
I have tried disabling the outbound ATMU when I program it, with no
change.
I have looked at the functions you mention, and that is a part of my
confusion, as they aren't doing anything different than I am.
>
> Additionally I'm a bit afraid your initial phase :) As you know PCIe
> would be used as RC mode on Freescale PowerPC kernel. So I don't know if
> you also drop this path on your kernel to conflict each other :)
I have tried doing this under a kernel built without PCI support with no
change.
next prev parent reply other threads:[~2010-09-23 11:11 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1285240268.2454.8.camel@chumley \
--to=david.hagood@gmail.com \
--cc=Tiejun.Chen@windriver.com \
--cc=linuxppc-dev@ozlabs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).