[Top] [All Lists]

Re: missing flush_dcache_page call in 2.4 kernel

Subject: Re: missing flush_dcache_page call in 2.4 kernel
From: Atsushi Nemoto <>
Date: Tue, 30 Mar 2004 15:38:43 +0900 (JST)
In-reply-to: <20040328130400.GA28177@skeleton-jack>
Original-recipient: rfc822;
References: <20040326184317.GA3661@skeleton-jack> <> <20040328130400.GA28177@skeleton-jack>
>>>>> On Sun, 28 Mar 2004 14:04:00 +0100, Peter Horton <> 
>>>>> said:
pdh> I've ditched the original Cobalt hack in c-r4k.c, and am using
pdh> the patch below instead. Seems to work okay ...

+       for (; addr < (void *) end; addr += PAGE_SIZE)
+               flush_data_cache_page((unsigned long) addr);

dma_cache_wback() will be more efficient ?

Also, I personally think replacing all insb/insw/insl is a bit
overkill.  I'd prefer redefine insb/insw/insl in asm-mips/ide.h, but
I'm not sure it is enough. (really all ins[bwl] should take care of
the cache inconsistency?)

Atsushi Nemoto

<Prev in Thread] Current Thread [Next in Thread>