This didn't raise any comment on LKML ... probably the
"ia64" in the Subject: deterred you all from reading it :-)

I don't think I understand either the migration code or the
virtual indexed cache issues well enough to figure this out.

Part 2of2 goes on to mess further with this code to cope with
the idiosyncracies on ia64 (keeping icache and dcache coherent).

-Tony

>-----Original Message-----
>From: KAMEZAWA Hiroyuki [mailto:[EMAIL PROTECTED] 
>Sent: Tuesday, August 07, 2007 1:27 AM
>To: KAMEZAWA Hiroyuki
>Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; 
>Luck, Tony; [EMAIL PROTECTED]
>Subject: [BUGFIX][PATCH] flush icache before set_pte() in ia64 
>take7, [1/2] migration fix
>
>In migration, a new page should be cache flushed before set_pte()
>in some archs which have virtually-tagged cache..
>
>V6 -> V7:
>   * adjusted against .2.6.23-rc2.
>
>V5 -> V6:
>   * no changes (added new patches to the patch set)
>V4 -> V5:
>   * changed flush_icache_page to flush_cache_page.
>
>Signed-off-by: KAMEZAWA Hiroyuki <[EMAIL PROTECTED]>
>
>---
> mm/migrate.c |    1 +
> 1 file changed, 1 insertion(+)
>
>Index: linux-2.6.23-rc2.test/mm/migrate.c
>===================================================================
>--- linux-2.6.23-rc2.test.orig/mm/migrate.c
>+++ linux-2.6.23-rc2.test/mm/migrate.c
>@@ -171,6 +171,7 @@ static void remove_migration_pte(struct 
>       pte = pte_mkold(mk_pte(new, vma->vm_page_prot));
>       if (is_write_migration_entry(entry))
>               pte = pte_mkwrite(pte);
>+      flush_cache_page(vma, addr, pte_pfn(pte));
>       set_pte_at(mm, addr, ptep, pte);
> 
>       if (PageAnon(new))
>
-
To unsubscribe from this list: send the line "unsubscribe linux-arch" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to