From: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
To: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Cc: linuxppc-dev list <Linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH 1/2] 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB
Date: Mon, 27 Sep 2010 10:26:45 -0500 [thread overview]
Message-ID: <1285601205.17411.23.camel@shaggy-w500> (raw)
In-Reply-To: <20100927150434.GA2888@zod.rchland.ibm.com>
On Mon, 2010-09-27 at 11:04 -0400, Josh Boyer wrote:
> On Fri, Sep 24, 2010 at 01:01:36PM -0500, Dave Kleikamp wrote:
> >When the DSTI (Disable Shadow TLB Invalidate) bit is set in the CCR2
> >register, the isync command does not flush the shadow TLB (iTLB & dTLB).
> >
> >However, since the shadow TLB does not contain context information, we
> >want the shadow TLB flushed in situations where we are switching context.
> >In those situations, we explicitly clear the DSTI bit before performing
> >isync, and set it again afterward. We also need to do the same when we
> >perform isync after explicitly flushing the TLB.
> >
> >Th setting of the DSTI bit is dependent on
> >CONFIG_PPC_47x_DISABLE_SHADOW_TLB_INVALIDATE. When we are confident that
> >the feature works as expected, the option can probably be removed.
>
> You're defaulting it to 'y' in the Kconfig. Technically someone could
> turn it off I guess, but practice mostly shows that nobody mucks with
> the defaults. Do you want it to default 'n' for now if you aren't
> confident in it just quite yet?
I think I made it a config option at Ben's request when I first started
this work last year, before being sidetracked by other priorities. I
could either remove the option, or default it to 'n'. It might be best
to just hard-code the behavior to make sure it's exercised, since
there's no 47x hardware in production yet, but we can give Ben a chance
to weigh in with his opinion.
> (Linus also has some kind of gripe with new options being default 'y',
> but I don't recall all the details and I doubt he'd care about something
> in low-level PPC code.)
>
> josh
--
Dave Kleikamp
IBM Linux Technology Center
next prev parent reply other threads:[~2010-09-27 15:26 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-24 18:01 [PATCH 0/2] powerpc/47x TLB optimization patches Dave Kleikamp
2010-09-24 18:01 ` [PATCH 1/2] 476: Set CCR2[DSTI] to prevent isync from flushing shadow TLB Dave Kleikamp
2010-09-27 15:04 ` Josh Boyer
2010-09-27 15:26 ` Dave Kleikamp [this message]
2010-09-27 21:10 ` Benjamin Herrenschmidt
2010-09-27 21:15 ` Dave Kleikamp
2010-09-27 21:56 ` [PATCH 1/2] v2 " Dave Kleikamp
2010-10-12 19:40 ` Dave Kleikamp
2010-10-12 22:19 ` Josh Boyer
2010-09-24 18:01 ` [PATCH 2/2] ppc: lazy flush_tlb_mm for nohash architectures Dave Kleikamp
2010-10-14 0:52 ` Benjamin Herrenschmidt
2010-10-18 21:57 ` Dave Kleikamp
2010-10-18 23:34 ` Benjamin Herrenschmidt
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=1285601205.17411.23.camel@shaggy-w500 \
--to=shaggy@linux.vnet.ibm.com \
--cc=Linuxppc-dev@ozlabs.org \
--cc=jwboyer@linux.vnet.ibm.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).