From: "Grant Likely" <grant.likely@secretlab.ca>
To: "Kumar Gala" <galak@kernel.crashing.org>
Cc: miltonm@bga.com, linuxppc-dev@ozlabs.org, paulus@samba.org,
scottwood@freescale.com
Subject: Re: [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init()
Date: Thu, 14 Aug 2008 10:43:22 -0600 [thread overview]
Message-ID: <fa686aa40808140943v218d826p9ac6dc683a5ccff4@mail.gmail.com> (raw)
In-Reply-To: <9E78DE5E-7B94-4990-81CB-1EBF806923C1@kernel.crashing.org>
On Thu, Aug 14, 2008 at 10:24 AM, Kumar Gala <galak@kernel.crashing.org> wrote:
>>> what happens if we run out of bats?
>>
>> Then it returns NULL and the caller must handle it. The board port
>> maintainer needs understand the board/CPU/SoC and not depend on more
>> BATs than are available. They also need to understand that there is a
>> tradeoff between BATs for IO and BATs for RAM. If the board port uses
>> up all the BATs for IO, then RAM above 256MB ends up getting mapped
>> with PTEs and there is a performance hit. My expectation is that only
>> platform code will use this facility. Device drivers should continue
>> to use ioremap() and will gain the benefit of the BATs if platform
>> code already set them up. I can add some text to the documentation to
>> describe this.
>>
>> I'm not going to make any attempt to fallback to PTEs for IO when
>> there isn't enough BATs. Doing so adds an order of magnitude more
>> complexity.
>
> that's fine.. I just didn't look at setbat() to see it errors out.
>
> Also can we get rid of LOAD_BAT in head_32.S?
Mostly. It is still needed for BAT0 when setting up RAM, but the rest
of it can be dumped.
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
next prev parent reply other threads:[~2008-08-14 16:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 3:03 [RFC/PATCH v2] powerpc: add ioremap_early() function for mapping IO regions before MMU_init() Grant Likely
2008-08-14 13:00 ` Kumar Gala
2008-08-14 15:00 ` Grant Likely
2008-08-14 16:24 ` Kumar Gala
2008-08-14 16:43 ` Grant Likely [this message]
2008-08-14 19:59 ` Kumar Gala
2008-08-14 20:40 ` Grant Likely
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=fa686aa40808140943v218d826p9ac6dc683a5ccff4@mail.gmail.com \
--to=grant.likely@secretlab.ca \
--cc=galak@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=miltonm@bga.com \
--cc=paulus@samba.org \
--cc=scottwood@freescale.com \
/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).