From: Andrew Morton <akpm@linux-foundation.org>
To: Mark Fortescue <mark@mtfhpc.demon.co.uk>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
David Miller <davem@davemloft.net>,
linuxppc-dev@ozlabs.org, wli@holomorphy.com, linux-mm@kvack.org,
andrea@suse.de, sparclinux@vger.kernel.org
Subject: Re: vm changes from linux-2.6.14 to linux-2.6.15
Date: Wed, 9 May 2007 23:19:37 -0700 [thread overview]
Message-ID: <20070509231937.ea254c26.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.61.0705012354290.12808@mtfhpc.demon.co.uk>
On Wed, 2 May 2007 00:08:31 +0100 (BST) Mark Fortescue <mark@mtfhpc.demon.co.uk> wrote:
> On Wed, 2 May 2007, Benjamin Herrenschmidt wrote:
>
> >
> >> I have attached a patch (so pine does not mangle it) for linux-2.6.20.9.
> >> Is this what you had in mind?
> >>
> >> For linux-2.6.21, more work will be needed as it has more code calling
> >> ptep_set_access_flags.
> >
> > I'm not 100% sure we need the 'update' argument... we can remove the
> > whole old_entry, pte_same, etc... and just have pte_set_access_flags()
> > read the old PTE and decide wether something needs to be changed or not.
> >
> > Ben.
> >
> >
>
> The attached patch works on sun4c (with my simple ADA compile test) but
> the change in functionality may break things other platforms.
>
> The advantage of the previous patch is that the functionality is only
> changed for sparc sun4c so less testing would be required.
>
> Regards
> Mark Fortescue.
>
> [Update-MMUCache-2.patch TEXT/PLAIN (10.7KB)]
> diff -ruNpd linux-2.6.20.9/include/asm-generic/pgtable.h linux-test/include/asm-generic/pgtable.h
> --- linux-2.6.20.9/include/asm-generic/pgtable.h 2007-05-01 12:57:56.000000000 +0100
> +++ linux-test/include/asm-generic/pgtable.h 2007-05-01 23:13:23.000000000 +0100
> @@ -30,10 +30,17 @@ do { \
> * to optimize this.
> */
> #define ptep_set_access_flags(__vma, __address, __ptep, __entry, __dirty) \
> -do { \
> - set_pte_at((__vma)->vm_mm, (__address), __ptep, __entry); \
> - flush_tlb_page(__vma, __address); \
> -} while (0)
> +({ \
> + int __update = !pte_same(*(__ptep), __entry); \
> + \
> + if (__update) { \
> + set_pte_at((__vma)->vm_mm, (__address), __ptep, __entry); \
> + flush_tlb_page(__vma, __address); \
> + } else if (__dirty) { \
> + flush_tlb_page(__vma, __address); \
> + } \
> + __update; \
> +})
We never seemed to reach completion here?
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2007-05-10 6:19 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.61.0704291345480.690@mtfhpc.demon.co.uk>
[not found] ` <1177852457.4390.26.camel@localhost.localdomain>
[not found] ` <Pine.LNX.4.61.0704302159140.3178@mtfhpc.demon.co.uk>
2007-04-30 21:54 ` Andrew Morton
2007-04-30 22:04 ` David Miller, Andrew Morton
2007-04-30 22:33 ` Mark Fortescue
2007-04-30 22:42 ` David Miller, Mark Fortescue
2007-05-01 0:00 ` Benjamin Herrenschmidt
2007-05-01 0:38 ` David Miller, Benjamin Herrenschmidt
2007-05-01 1:45 ` Mark Fortescue
2007-05-01 2:05 ` Benjamin Herrenschmidt
2007-05-01 13:58 ` Mark Fortescue
2007-05-01 21:31 ` Benjamin Herrenschmidt
2007-05-01 23:08 ` Mark Fortescue
2007-05-09 19:44 ` Mark Fortescue
2007-05-09 22:48 ` Benjamin Herrenschmidt
2007-05-10 6:19 ` Andrew Morton [this message]
2007-05-10 6:29 ` Benjamin Herrenschmidt
2007-05-10 7:12 ` David Miller, Benjamin Herrenschmidt
2007-05-14 19:19 ` Hugh Dickins
2007-05-14 21:07 ` Benjamin Herrenschmidt
2007-05-15 6:56 ` Benjamin Herrenschmidt
2007-05-21 14:27 ` Tom "spot" Callaway
2007-05-21 22:09 ` Benjamin Herrenschmidt
2007-05-22 6:28 ` [PATCH/RFC] Rework ptep_set_access_flags and fix sun4c Benjamin Herrenschmidt
2007-05-22 17:04 ` Hugh Dickins
2007-05-22 22:59 ` Benjamin Herrenschmidt
2007-05-22 23:04 ` Tom "spot" Callaway
2007-05-23 4:03 ` Hugh Dickins
2007-05-23 4:21 ` Benjamin Herrenschmidt
2007-05-22 21:52 ` Mark Fortescue
2007-05-22 21:53 ` David Miller, Mark Fortescue
2007-05-22 23:29 ` Benjamin Herrenschmidt
2007-05-22 23:28 ` Benjamin Herrenschmidt
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=20070509231937.ea254c26.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=andrea@suse.de \
--cc=benh@kernel.crashing.org \
--cc=davem@davemloft.net \
--cc=linux-mm@kvack.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mark@mtfhpc.demon.co.uk \
--cc=sparclinux@vger.kernel.org \
--cc=wli@holomorphy.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