Re: Flush_cache_page inteface (was: Re: [PATCH] Cache alias issues for swapped page)

2000-09-10 Thread David S. Miller
From: NIIBE Yutaka <[EMAIL PROTECTED]> Date:Mon, 11 Sep 2000 11:10:13 +0900 Then, there is another issue for physically tagged cache system in the function memory.c:break_cow. It calles flush_cache_page(vma, address). For physically tagged cache system, we need __physical

Flush_cache_page inteface (was: Re: [PATCH] Cache alias issues for swapped page)

2000-09-10 Thread NIIBE Yutaka
Russell King wrote: > Also, I believe that the use of flush_page_to_ram() is wrong here, since > this seems to be intended to be used when the kernel has been writing to > its direct mapped version of the page, which is should not have been (if > it has, then the act of writing is a bug, not t

Re: [PATCH] Cache alias issues for swapped page

2000-09-09 Thread Russell King
NIIBE Yutaka writes: > (2) Flush is needed at try_to_swap > > When swap out, flushing is needed for physical tag too. > diff -ruN linux-2.4.0-test8-pre6/mm/vmscan.c linux/mm/vmscan.c >*/ > + flush_page_to_ram(page); > flush_cache_page(vma, address); I'm concerned about this. I

[PATCH] Cache alias issues for swapped page

2000-09-08 Thread NIIBE Yutaka
For SH-4 (with virtually indexed, physically tagged cache), we have problems with swap. I think that there're bugs in do_swap_page and try_to_swap_out. I've read "Documentation/cachetlb.txt" and I know that now is the transition to newer interface, but we need a fix at the moment with old interfa