Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Jun Sun <jsun@mvista.com>
To: linux-mips@linux-mips.org
Cc: jsun@mvista.com
Subject: [PATCH] only setup kseg0 coherency after flush_cache_all ...
Date: Fri, 9 Jan 2004 15:38:57 -0800	[thread overview]
Message-ID: <20040109153857.I24193@mvista.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]


The change is needed to make CONFIG_MIPS_UNCACHED work.
Otherwise you end up with accessing stale data right after
switching off cache.

If no objections, I will check it in later.

Jun


[-- Attachment #2: junk --]
[-- Type: text/plain, Size: 459 bytes --]

diff -Nru arch/mips/mm/c-r4k.c.orig arch/mips/mm/c-r4k.c
--- arch/mips/mm/c-r4k.c.orig	Mon Jan  5 10:33:35 2004
+++ arch/mips/mm/c-r4k.c	Fri Jan  9 15:32:18 2004
@@ -1031,7 +1031,6 @@
 
 	probe_pcache();
 	setup_scache();
-	coherency_setup();
 
 	if (c->dcache.sets * c->dcache.ways > PAGE_SIZE)
 		c->dcache.flags |= MIPS_CACHE_ALIASES;
@@ -1073,6 +1072,7 @@
 #endif
 
 	__flush_cache_all();
+	coherency_setup();
 
 	build_clear_page();
 	build_copy_page();

                 reply	other threads:[~2004-01-09 23:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040109153857.I24193@mvista.com \
    --to=jsun@mvista.com \
    --cc=linux-mips@linux-mips.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