Re: Fw: [PATCH] ia64: race flushing icache in do_no_page path

KAMEZAWA Hiroyuki
2007-07-04T16:58:06Z

On Wed, 04 Jul 2007 16:24:38 +0200
Zoltan Menyhart <Zoltan.Menyhart@bull.net> wrote:
> Machines star up whit bit 5 = 0, reading instruction pages via
> NFS has to flush them from L2I.
>
In our test, we confirmed that this can be fixed by flushing L2I just before
SetPageUptodate() in NFS.

>
> I was wondering if instead of modifying do_no_page() and Co., should
> not we make nfs_readpage() be DMA-like?
> (No possible regression for most of the page I/O-s.)
> I.e. it should be the responsibility of a file system to make sure it
> supports instruction pages correctly. The base kernel should provide
> such file systems with an architecture dependent macro...
>
IMHO, for example, race in cooy-on-write (was fixed by Tony Luck) has to be
fixed by MemoryManagement layer.
And only a race in do_no_page() seems to be able to be fixed by FS layer.

BTW, can we know whether a page is filled by DMA or not ?

Thanks,
-Kame