From: Matt Fleming <matt@console-pimps.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH 01/14] sh: Sprinkle __uses_jump_to_uncached
Date: Fri, 09 Oct 2009 06:34:25 +0000 [thread overview]
Message-ID: <20091009063424.GA5159@console-pimps.org> (raw)
In-Reply-To: <1db0a1123393575aec324e0d808b6369f9837fe4.1254861984.git.matt@console-pimps.org>
On Fri, Oct 09, 2009 at 11:37:24AM +0900, Paul Mundt wrote:
> On Tue, Oct 06, 2009 at 10:22:21PM +0100, Matt Fleming wrote:
> > Fix some callers of jump_to_uncached() and back_to_cached() that were
> > not annotated with __uses_jump_to_uncached.
>
> On Tue, Oct 06, 2009 at 10:22:22PM +0100, Matt Fleming wrote:
> > If we fail to allocate a PMB entry in pmb_remap() we must remember to
> > clear and free any PMB entries that we may have previously allocated,
> > e.g. if we were allocating a multiple entry mapping.
>
> On Tue, Oct 06, 2009 at 10:22:27PM +0100, Matt Fleming wrote:
> > We should favour PMB mappings when the physical address cannot be
> > reached with 29-bits.
>
> On Tue, Oct 06, 2009 at 10:22:34PM +0100, Matt Fleming wrote:
> > Currently, we've got the less than ideal situation where if we need to
> > allocate a 256MB mapping we'll allocate four entries like so,
> >
> > entry 1: 128MB
> > entry 2: 64MB
> > entry 3: 16MB
> > entry 4: 16MB
> >
> > This is because as we execute the loop in pmb_remap() we will
> > progressively try mapping the remaining address space with smaller and
> > smaller sizes. This isn't good because the size we use on one iteration
> > may be the perfect size to use on the next iteration, for instance when
> > the initial size is divisible by one of the PMB mapping sizes.
> >
> > With this patch, we now only need two entries in the PMB to map 256MB of
> > address space,
> >
> > entry 1: 128MB
> > entry 2: 128MB
> >
>
> These are all good fixups that are fairly orthogonal to the rest of the
> changes, so I've merged these as fixups for 2.6.32. The others we'll deal
> with incrementally once I open the tree for 2.6.33 changes.
Sounds good. Cheers, Paul.
prev parent reply other threads:[~2009-10-09 6:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-06 21:22 [PATCH 01/14] sh: Sprinkle __uses_jump_to_uncached Matt Fleming
2009-10-09 2:37 ` Paul Mundt
2009-10-09 6:34 ` Matt Fleming [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=20091009063424.GA5159@console-pimps.org \
--to=matt@console-pimps.org \
--cc=linux-sh@vger.kernel.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