From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>,
linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple
Date: Fri, 08 Jul 2011 08:48:53 +1000 [thread overview]
Message-ID: <1310078933.14501.308.camel@pasglop> (raw)
In-Reply-To: <F4E7EABC-B63F-4776-A8EB-8C93F64C2A3C@kernel.crashing.org>
On Fri, 2011-07-01 at 18:44 +0200, Segher Boessenkool wrote:
> > CPC925/CPC945 use special window to access host bridge
> > functionality of
> > u3-ht. Provide a way to access this device.
>
> Why? Is anything going to use it?
>
> > +static int u3_ht_root_read_config(struct pci_controller *hose, u8
> > offset,
> > + int len, u32 *val)
> > +{
> > + volatile void __iomem *addr;
> > +
> > + addr = hose->cfg_addr;
> > + addr += ((offset & ~3) << 2) + (4 - len - (offset & 3));
>
> This will only work for len 1,2,4 with offset a multiple of len, is that
> guaranteed here?
I think the upper layer does. Dbl check tho.
> > hose->cfg_data = ioremap(0xf2000000, 0x02000000);
> > + hose->cfg_addr = ioremap(0xf8070000, 0x1000);
>
> Eww. You could just make a global instead of abusing existing fields,
> there can be only one CPC9x5 in a system anyway.
Nah, that's fine, we abuse it that way regulary :-)
Cheers,
Ben.
prev parent reply other threads:[~2011-07-07 22:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-29 14:17 [PATCH] powerpc: enable access to HT Host-Bridge on Maple Dmitry Eremin-Solenikov
2011-07-01 16:44 ` Segher Boessenkool
2011-07-01 19:11 ` Dmitry Eremin-Solenikov
2011-07-02 21:50 ` Segher Boessenkool
2011-07-03 23:31 ` Dmitry Eremin-Solenikov
2011-07-04 12:46 ` Dmitry Eremin-Solenikov
2011-07-07 22:48 ` 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=1310078933.14501.308.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=dbaryshkov@gmail.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=segher@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.