| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [PATCH 1/2] vr41xx: changed the workaround to recommended method |
| From: | Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp> |
| Date: | Sat, 8 Jul 2006 00:42:01 +0900 |
| Cc: | linux-mips <linux-mips@linux-mips.org> |
| Organization: | TriPeaks Corporation |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Hi Ralf,
This patch has changed the workaround to recommended method.
Please apply.
Yoichi
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/mm/c-r4k.c
mips/arch/mips/mm/c-r4k.c
--- mips-orig/arch/mips/mm/c-r4k.c 2006-07-06 17:54:34.149940250 +0900
+++ mips/arch/mips/mm/c-r4k.c 2006-07-06 18:00:15.249128000 +0900
@@ -867,12 +867,13 @@ static void __init probe_pcache(void)
/* Workaround for cache instruction bug of VR4131 */
if (c->processor_id == 0x0c80U || c->processor_id == 0x0c81U ||
c->processor_id == 0x0c82U) {
- config &= ~0x00000030U;
config |= 0x00400000U;
if (c->processor_id == 0x0c80U)
config |= VR41_CONF_BP;
write_c0_config(config);
- }
+ } else
+ c->options |= MIPS_CPU_CACHE_CDEX_P;
+
icache_size = 1 << (10 + ((config & CONF_IC) >> 9));
c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
c->icache.ways = 2;
@@ -882,8 +883,6 @@ static void __init probe_pcache(void)
c->dcache.linesz = 16 << ((config & CONF_DB) >> 4);
c->dcache.ways = 2;
c->dcache.waybit = __ffs(dcache_size/2);
-
- c->options |= MIPS_CPU_CACHE_CDEX_P;
break;
case CPU_VR41XX:
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] fast path for rdhwr emulation for TLS, Maciej W. Rozycki |
|---|---|
| Next by Date: | [PATCH 2/2] vr41xx: define P4K bit for VR41xx, Yoichi Yuasa |
| Previous by Thread: | [PATCH] fast path for rdhwr emulation for TLS, Atsushi Nemoto |
| Next by Thread: | [PATCH 2/2] vr41xx: define P4K bit for VR41xx, Yoichi Yuasa |
| Indexes: | [Date] [Thread] [Top] [All Lists] |