From: Zoltan Menyhart <Zoltan.Menyhart@bull.net>
To: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
"linux-ia64@vger.kernel.org" <linux-ia64@vger.kernel.org>,
"tony.luck@intel.com" <tony.luck@intel.com>,
"nickpiggin@yahoo.com.au" <nickpiggin@yahoo.com.au>,
Christoph Lameter <clameter@sgi.com>
Subject: Re: [PATCH] flush cache fixes for ia64 [2/2] sync icache dcache
Date: Fri, 27 Jul 2007 14:16:27 +0000 [thread overview]
Message-ID: <46A9FE3B.7070402@bull.net> (raw)
In-Reply-To: <20070727133936.36b047cd.kamezawa.hiroyu@jp.fujitsu.com>
Do you really need a "sync_icache_dcache()" in "do_wp_page()"?
I guess it is only needed when the EXEC bit of the PTE gets turned on.
> --- linux-2.6.23-rc1.test.orig/mm/migrate.c
> +++ linux-2.6.23-rc1.test/mm/migrate.c
> @@ -172,6 +172,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_icache_page(vma, new);
> set_pte_at(mm, addr, ptep, pte);
>
> if (PageAnon(new))
I think "flush_icache_page()", or rather "flush_cache_page()" is
to be placed where migration tears down the old virtual --> physical
address translation for good.
> --- linux-2.6.23-rc1.test.orig/mm/migrate.c
> +++ linux-2.6.23-rc1.test/mm/migrate.c
> @@ -173,6 +173,7 @@ static void remove_migration_pte(struct
> if (is_write_migration_entry(entry))
> pte = pte_mkwrite(pte);
> flush_icache_page(vma, new);
> + sync_icache_dcache(pte);
> set_pte_at(mm, addr, ptep, pte);
Sure, I can agree to add "sync_icache_dcache()" here.
Thanks,
Zoltan
next prev parent reply other threads:[~2007-07-27 14:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-27 4:36 [PATCH] flush cache fixes for ia64 [0/2] intro KAMEZAWA Hiroyuki
2007-07-27 4:38 ` [PATCH] flush cache fixes for ia64 [1/2] migration fix KAMEZAWA Hiroyuki
2007-07-27 16:39 ` Christoph Lameter
2007-07-27 22:06 ` KAMEZAWA Hiroyuki
2007-07-28 5:43 ` KAMEZAWA Hiroyuki
2007-07-27 4:39 ` [PATCH] flush cache fixes for ia64 [2/2] sync icache dcache KAMEZAWA Hiroyuki
2007-07-27 14:16 ` Zoltan Menyhart [this message]
2007-07-27 15:02 ` KAMEZAWA Hiroyuki
2007-07-27 15:18 ` KAMEZAWA Hiroyuki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46A9FE3B.7070402@bull.net \
--to=zoltan.menyhart@bull.net \
--cc=clameter@sgi.com \
--cc=kamezawa.hiroyu@jp.fujitsu.com \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nickpiggin@yahoo.com.au \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox