* minor c-r4k.c cleanup
@ 2003-04-14 15:24 Atsushi Nemoto
2003-04-14 16:48 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2003-04-14 15:24 UTC (permalink / raw)
To: linux-mips, ralf
r4k_dma_cache_xxx should not flush icache ?
diff -u linux-mips/arch/mips/mm/c-r4k.c linux.new/arch/mips/mm
--- linux-mips/arch/mips/mm/c-r4k.c Mon Apr 14 23:08:02 2003
+++ linux.new/arch/mips/mm/c-r4k.c Tue Apr 15 00:12:27 2003
@@ -514,7 +514,7 @@
unsigned long end, a;
if (size >= dcache_size) {
- r4k_flush_pcache_all();
+ r4k_blast_dcache();
} else {
unsigned long dc_lsize = current_cpu_data.dcache.linesz;
R4600_HIT_CACHEOP_WAR_DECL;
@@ -539,7 +539,8 @@
unsigned long end, a;
if (size >= scache_size) {
- r4k_flush_scache_all();
+ r4k_blast_dcache();
+ r4k_blast_scache();
return;
}
@@ -558,7 +559,7 @@
unsigned long end, a;
if (size >= dcache_size) {
- r4k_flush_pcache_all();
+ r4k_blast_dcache();
} else {
unsigned long dc_lsize = current_cpu_data.dcache.linesz;
R4600_HIT_CACHEOP_WAR_DECL;
@@ -583,7 +584,8 @@
unsigned long end, a;
if (size >= scache_size) {
- r4k_flush_scache_all();
+ r4k_blast_dcache();
+ r4k_blast_scache();
return;
}
---
And I wonder why r4k_flush_pcache_mm (and r4k_flush_pcache_all) does
nothing if cpu_has_dc_aliases was not true. I'm still
investigating...
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: minor c-r4k.c cleanup
2003-04-14 15:24 minor c-r4k.c cleanup Atsushi Nemoto
@ 2003-04-14 16:48 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2003-04-14 16:48 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
On Tue, Apr 15, 2003 at 12:24:25AM +0900, Atsushi Nemoto wrote:
> r4k_dma_cache_xxx should not flush icache ?
The dma_* functions of course don't need I-cache coherence.
> And I wonder why r4k_flush_pcache_mm (and r4k_flush_pcache_all) does
> nothing if cpu_has_dc_aliases was not true. I'm still
> investigating...
R4000SC / R4400SC caches have the subset property. S-cache cacheops
flush the primary caches as well and P-caches must always be a subset
of the S-cache or operation is undefined.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-14 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-14 15:24 minor c-r4k.c cleanup Atsushi Nemoto
2003-04-14 16:48 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox