| To: | Kevin Cernekee <cernekee@gmail.com> |
|---|---|
| Subject: | Re: [PATCH resend 8/9] MIPS: Honor L2 bypass bit |
| From: | Ralf Baechle <ralf@linux-mips.org> |
| Date: | Tue, 19 Oct 2010 17:16:14 +0100 |
| Cc: | linux-mips@linux-mips.org, linux-kernel@vger.kernel.org |
| In-reply-to: | <a87064966b36ed9982d8cf05169c5524@localhost> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <17ebecce124618ddf83ec6fe8e526f93@localhost> <a87064966b36ed9982d8cf05169c5524@localhost> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Sat, Oct 16, 2010 at 02:22:37PM -0700, Kevin Cernekee wrote: > If CP0 CONFIG2 bit 12 (L2B) is set, the L2 cache is disabled and > therefore Linux should not attempt to use it. > > Signed-off-by: Kevin Cernekee <cernekee@gmail.com> > --- > arch/mips/mm/sc-mips.c | 5 +++++ > 1 files changed, 5 insertions(+), 0 deletions(-) > > diff --git a/arch/mips/mm/sc-mips.c b/arch/mips/mm/sc-mips.c > index 5ab5fa8..d072b25 100644 > --- a/arch/mips/mm/sc-mips.c > +++ b/arch/mips/mm/sc-mips.c > @@ -79,6 +79,11 @@ static inline int __init mips_sc_probe(void) > return 0; > > config2 = read_c0_config2(); > + > + /* bypass bit */ > + if (config2 & (1 << 12)) > + return 0; The spec I'm looking at says this bit is implementation defined so a test for a particular CPU type would need to be added here. Ralf |
| Previous by Date: | Re: [PATCH v8 5/5] MIPS: add support for hardware performance events (mipsxx), Ralf Baechle |
|---|---|
| Next by Date: | Re: [PATCH resend 5/9] MIPS: sync after cacheflush, Maciej W. Rozycki |
| Previous by Thread: | [PATCH resend 8/9] MIPS: Honor L2 bypass bit, Kevin Cernekee |
| Next by Thread: | [PATCH resend 9/9] MIPS: Allow UserLocal on MIPS_R1 processors, Kevin Cernekee |
| Indexes: | [Date] [Thread] [Top] [All Lists] |