* sync c-tx39.c with c-r4k.c
@ 2005-09-28 11:24 Atsushi Nemoto
2005-09-29 23:30 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Atsushi Nemoto @ 2005-09-28 11:24 UTC (permalink / raw)
To: linux-mips; +Cc: ralf
tx39_flush_cache_range() do nothing if !cpu_has_dc_aliases. It should
flush d-cache and invalidate i-cache since TX39(H2) has separate I/D
cache.
Here is a patch.
diff -u linux-mips/arch/mips/mm/c-tx39.c linux/arch/mips/mm/c-tx39.c
--- linux-mips/arch/mips/mm/c-tx39.c 2005-09-05 10:16:59.000000000 +0900
+++ linux/arch/mips/mm/c-tx39.c 2005-09-28 18:51:43.000000000 +0900
@@ -167,15 +167,16 @@
static void tx39_flush_cache_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{
- struct mm_struct *mm = vma->vm_mm;
+ int exec;
- if (!cpu_has_dc_aliases)
+ if (!(cpu_context(smp_processor_id(), vma->vm_mm)))
return;
- if (cpu_context(smp_processor_id(), mm) != 0) {
+ exec = vma->vm_flags & VM_EXEC;
+ if (cpu_has_dc_aliases || exec)
tx39_blast_dcache();
+ if (exec)
tx39_blast_icache();
- }
}
static void tx39_flush_cache_page(struct vm_area_struct *vma, unsigned long page, unsigned long pfn)
---
Atsushi Nemoto
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: sync c-tx39.c with c-r4k.c
2005-09-28 11:24 sync c-tx39.c with c-r4k.c Atsushi Nemoto
@ 2005-09-29 23:30 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2005-09-29 23:30 UTC (permalink / raw)
To: Atsushi Nemoto; +Cc: linux-mips
On Wed, Sep 28, 2005 at 08:24:58PM +0900, Atsushi Nemoto wrote:
> tx39_flush_cache_range() do nothing if !cpu_has_dc_aliases. It should
> flush d-cache and invalidate i-cache since TX39(H2) has separate I/D
> cache.
Thanks, applied.
If you and other patch submitters would in the future please also start
sending patches with Signed-off-by: lines, for more please see
Documentation/SubmittingPatches.
In the past I didn't bother because we ended up blending all patches in
the CVS archive anyway to the point where they just didn't make sense
anymore. Now with git that has changed.
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-09-30 10:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 11:24 sync c-tx39.c with c-r4k.c Atsushi Nemoto
2005-09-29 23:30 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox