From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Ayman El-Khashab <AymanE@tanisys.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: Trying to understand ppc4xx_configure_pciex_PIMs mapping to physical address 0
Date: Sat, 13 Dec 2008 08:50:11 +1100 [thread overview]
Message-ID: <1229118611.22413.224.camel@pasglop> (raw)
In-Reply-To: <16691A8B34B5D9458EA3A1C37A11555A0137F8B7@tanisys-ex2.Tanisys.Local>
On Fri, 2008-12-12 at 10:49 -0600, Ayman El-Khashab wrote:
> I am using the ppc460ex as an endpoint and I see that the mentioned
> function setups a 32Mb
> window at address 0 in sdram. what i want is some memory that the
> host can read/write to.
> But the 32Mb that are already mapped at the bottom of ram, so it would
> not be good do writes
> to those addresses. Am I missing something? My driver right now is
> not touching the PIM
> registers.
>
> So is the right way to do this to change the PIM registers after I get
> a buffer in the kernel -- or
> something else?
>
> How would I make sure that it was aligned on a 32Mb boundry per the
> 44x requirements?
either that or just allocate some memory and expose the 32MB region that
contains that memory...
There isn't really much existing code to support endpoint mode. IE, the
code in ppc4xx_pci.c is really mostly host oriented, so it's up to you
to define what you want here. We have no API defined for drivers to use
etc..
Ben.
prev parent reply other threads:[~2008-12-12 21:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-12 16:49 Trying to understand ppc4xx_configure_pciex_PIMs mapping to physical address 0 Ayman El-Khashab
2008-12-12 21:50 ` Benjamin Herrenschmidt [this message]
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=1229118611.22413.224.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=AymanE@tanisys.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