linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: Michael Ellerman <michael@ozlabs.org>,
	Jimi Xenidis <jimix@watson.ibm.com>,
	jack@codezen.org, imunsie@au.ibm.com, linuxppc-dev@ozlabs.org,
	David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [PATCH 12/15] powerpc/book3e: Use way 3 for linear mapping bolted entry
Date: Tue, 19 Apr 2011 07:40:34 +1000	[thread overview]
Message-ID: <1303162834.28876.163.camel@pasglop> (raw)
In-Reply-To: <FE1E8891-E134-4559-9F26-BAFC36B258AC@kernel.crashing.org>

On Mon, 2011-04-18 at 07:43 -0500, Kumar Gala wrote:
> On Apr 15, 2011, at 3:32 AM, Michael Ellerman wrote:
> 
> > From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > 
> > An erratum on A2 can lead to the bolted entry we insert for the linear
> > mapping being evicted, to avoid that write the bolted entry to way 3.
> > 
> > Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> > Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
> > ---
> > arch/powerpc/kernel/exceptions-64e.S |    5 +++--
> > 1 files changed, 3 insertions(+), 2 deletions(-)
> > 
> > diff --git a/arch/powerpc/kernel/exceptions-64e.S b/arch/powerpc/kernel/exceptions-64e.S
> > index 5c43063..e6c0926 100644
> > --- a/arch/powerpc/kernel/exceptions-64e.S
> > +++ b/arch/powerpc/kernel/exceptions-64e.S
> > @@ -864,8 +864,9 @@ have_hes:
> > 	 * that will have to be made dependent on whether we are running under
> > 	 * a hypervisor I suppose.
> > 	 */
> > -	ori	r3,r3,MAS0_HES | MAS0_WQ_ALLWAYS
> > -	mtspr	SPRN_MAS0,r3
> > +	ori	r11,r3,MAS0_WQ_ALLWAYS
> > +	oris	r11,r11,MAS0_ESEL(3)@h /* Use way 3: workaround A2 erratum 376 */
> > +	mtspr	SPRN_MAS0,r11
> > 	lis	r3,(MAS1_VALID | MAS1_IPROT)@h
> > 	ori	r3,r3,BOOK3E_PAGESZ_1GB << MAS1_TSIZE_SHIFT
> > 	mtspr	SPRN_MAS1,r3
> 
> Seems like this should have a MMU Feature bit or something for A2.

Too early. We haven't detected the CPU and are establishing the initial
TLB entry here.

Any reason why that wouldn't work on something else anyways ?

Cheers,
Ben.

  reply	other threads:[~2011-04-18 21:40 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-15  8:31 [PATCH 01/15] powerpc/a2: Add some #defines for A2 specific instructions Michael Ellerman
2011-04-15  8:31 ` [PATCH 02/15] of: Export of_irq_find_parent() Michael Ellerman
2011-04-15  8:31 ` [PATCH 03/15] powerpc: Add SCOM infrastructure Michael Ellerman
2011-04-15  8:31 ` [PATCH 04/15] powerpc/xics: xics.h relies on linux/interrupt.h Michael Ellerman
2011-04-15  8:31 ` [PATCH 05/15] powerpc/xics: Move irq_host matching into the ics backend Michael Ellerman
2011-04-15  8:32 ` [PATCH 06/15] powerpc/nvram: Search for nvram using compatible Michael Ellerman
2011-04-15  8:32 ` [PATCH 08/15] powerpc: Add A2 cpu support Michael Ellerman
2011-04-15  8:32 ` [PATCH 07/15] powerpc: Move CPU_FTRS_BASE_BOOK3E into cputable.h & update FTR masks Michael Ellerman
2011-04-18 12:37   ` Kumar Gala
2011-04-15  8:32 ` [PATCH 09/15] powerpc: Add TLB size detection for TYPE_3E MMUs Michael Ellerman
2011-04-15  8:32 ` [PATCH 10/15] powerpc: Define slb0_limit() for BOOK3E Michael Ellerman
2011-04-17  5:58   ` Olof Johansson
2011-04-18 12:42   ` Kumar Gala
2011-04-18 21:41     ` Benjamin Herrenschmidt
2011-04-18 22:30       ` Kumar Gala
2011-04-18 22:50         ` Benjamin Herrenschmidt
2011-04-15  8:32 ` [PATCH 12/15] powerpc/book3e: Use way 3 for linear mapping bolted entry Michael Ellerman
2011-04-18 12:43   ` Kumar Gala
2011-04-18 21:40     ` Benjamin Herrenschmidt [this message]
2011-04-18 22:27       ` Kumar Gala
2011-04-18 22:44         ` Benjamin Herrenschmidt
2011-04-15  8:32 ` [PATCH 11/15] powerpc: Index crit/dbg/mcheck stacks using cpu number on 64bit Michael Ellerman
2011-04-15  8:32 ` [PATCH 13/15] powerpc/book3e: Flush IPROT protected TLB entries leftover by firmware Michael Ellerman
2011-04-15  8:32 ` [PATCH 14/15] powerpc: Add WSP platform Michael Ellerman
2011-04-18 12:46   ` Kumar Gala
2011-04-18 21:39     ` Benjamin Herrenschmidt
2011-04-15  8:32 ` [PATCH 15/15] powerpc: Add early debug for WSP platforms Michael Ellerman

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=1303162834.28876.163.camel@pasglop \
    --to=benh@kernel.crashing.org \
    --cc=david@gibson.dropbear.id.au \
    --cc=galak@kernel.crashing.org \
    --cc=imunsie@au.ibm.com \
    --cc=jack@codezen.org \
    --cc=jimix@watson.ibm.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=michael@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;
as well as URLs for NNTP newsgroup(s).