From: David Miller <davem@davemloft.net>
To: kamezawa.hiroyu@jp.fujitsu.com
Cc: linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org,
tony.luck@intel.com, Zoltan.Menyhart@bull.net,
nickpiggin@yahoo.com.au
Subject: Re: [PATCH] flush icache before set_pte() on ia64 take9 [2/2]
Date: Thu, 09 Aug 2007 05:08:38 +0000 [thread overview]
Message-ID: <20070808.220838.88002572.davem@davemloft.net> (raw)
In-Reply-To: <20070809135721.08841cd7.kamezawa.hiroyu@jp.fujitsu.com>
From: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Date: Thu, 9 Aug 2007 13:57:21 +0900
> Changelog v8 -> v9.
> - removed sync_icache_dcache().
> - modified set_pte() rather than adding new complexed macro.
>
> Old stories
> - For synching icache and dcache before set_pte(), I added a new macro for
> ia64, sync_icache_dcache(). I inserted it in proper places.
> Comments from reviewer was negative becasue ia64 specific codes are
> scattered over vm codes and it will not be able to be maintained.
> An advice was hide all in set_pte() because flush_xxx_cache cannot pass
> enough information to arch.
>
> Current ia64 kernel flushes icache by lazy_mmu_prot_update() *after*
> set_pte(). This is too late. This patch removes lazy_mmu_prot_update and
> add modfied set_pte() for flushing if necessary.
>
> This patch flush icache of a page when
> new pte has exec bit.
> && new pte has present bit
> && new pte is user's page.
> && (old *ptep is not present
> || new pte's pfn is not same to old *ptep's ptn)
> && new pte's page has no Pg_arch_1 bit.
> Pg_arch_1 is set when a page is cache consistent.
>
> I think this condition checks are much easier to understand than considering
> "Where sync_icache_dcache() should be inserted ?".
>
> pte_user() for ia64 was removed by http://lkml.org/lkml/2007/6/12/67 as
> clean-up. So, I added it again.
>
> Signed-Off-By: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
If this patch works I am very happy with it, since lazy_mmu_prot_update()
is now completely gone as a result.
Acked-by: David S. Miller <davem@davemloft.net>
next prev parent reply other threads:[~2007-08-09 5:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-09 4:53 [PATCH] flush icache before set_pte() on ia64 take9 [0/2] all KAMEZAWA Hiroyuki
2007-08-09 4:56 ` [PATCH] flush icache before set_pte() on ia64 take9 [1/2] KAMEZAWA Hiroyuki
2007-08-09 4:57 ` [PATCH] flush icache before set_pte() on ia64 take9 [2/2] flush KAMEZAWA Hiroyuki
2007-08-09 5:08 ` David Miller [this message]
2007-08-09 5:53 ` KAMEZAWA Hiroyuki
2007-08-10 18:17 ` [PATCH] flush icache before set_pte() on ia64 take9 [2/2] flush icache at set_pte Luck, Tony
2007-08-10 18:46 ` David Mosberger-Tang
2007-08-10 20:53 ` Luck, Tony
2007-08-10 22:23 ` [PATCH] flush icache before set_pte() on ia64 take9 [2/2] 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=20070808.220838.88002572.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=Zoltan.Menyhart@bull.net \
--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