All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Kumar Gala <kumar.gala@freescale.com>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>
Subject: Re: [RFC/PATCH] powerpc: rework 4xx PTE access and TLB miss
Date: Wed, 11 Jun 2008 16:29:54 +1000	[thread overview]
Message-ID: <1213165794.25745.66.camel@pasglop> (raw)
In-Reply-To: <0C753631-7D6C-4A31-82B1-2540C012BCDB@freescale.com>

On Wed, 2008-06-11 at 01:20 -0500, Kumar Gala wrote:
> On Jun 10, 2008, at 7:50 PM, Benjamin Herrenschmidt wrote:
> 
> > This is some preliminary work to improve TLB management on SW loaded
> > TLB powerpc platforms. This introduce support for non-atomic PTE
> > operations in pgtable-ppc32.h and removes write back to the PTE from
> > the TLB miss handlers. In addition, the DSI interrupt code no longer
> > tries to fixup write permission, this is left to generic code, and
> > _PAGE_HWWRITE is gone.
> >
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > ---
> >
> > This is a first step, plan is to do the same for FSL BookE, 405 and
> > possibly 8xx too. From there, I want to rework a bit the execute
> > permission handling to avoid multiple faults, add support for
> > _PAGE_EXEC (no executable mappings), for prefaulting (especially
> > for kmap) and proper SMP support for future SMP capable BookE
> > platforms.
> 
> You really should add some comment about what you are doing with the  
> 44x watermark.  As I look at this I'm not clear what that change is  
> about and I'm sure in the future someone looking at this will  
> wondering why this commit changed those bits.
> 
> Otherwise this all looks good (other than my other nit picking comments)

I'll add a comment. Basically, the idea is to replace a load of the
watermark from memory in the fast path, with a cmpli instruction,
that we then "patch" when the watermark changes (which is very rare).

Saves a load and a GPR for use in the TLB miss handler, which allows me
further to avoid a double loading of the PTE bottom half, etc...

Ben.

  reply	other threads:[~2008-06-11  6:30 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11  0:50 [RFC/PATCH] powerpc: rework 4xx PTE access and TLB miss Benjamin Herrenschmidt
2008-06-11  2:18 ` Kumar Gala
2008-06-11  2:43   ` Benjamin Herrenschmidt
2008-06-11  6:20 ` Kumar Gala
2008-06-11  6:29   ` Benjamin Herrenschmidt [this message]
2008-06-19 14:04 ` Josh Boyer

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=1213165794.25745.66.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=kumar.gala@freescale.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 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.