mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Christoph Lameter <christoph@lameter.com>
To: Russell King <rmk+lkml@arm.linux.org.uk>
Cc: Andrew Morton <akpm@osdl.org>, linux-kernel@vger.kernel.org
Subject: Re: 2.6.13-rc3-mm3
Date: Thu, 28 Jul 2005 13:06:04 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.62.0507281303320.12958@graphe.net> (raw)
In-Reply-To: <20050728205215.A10867@flint.arm.linux.org.uk>

On Thu, 28 Jul 2005, Russell King wrote:

> ARM can't support atomic page table operations as such - the Linux view
> of the page table is separate from the hardware view, and there's some
> CPU specific code which translates from the Linux view to the hardware
> view.

Yes. The patches fall back to nonatomic operations for ARM.

> Looking at the actual patches, particularly pte_xchg-and-pte_cmpxchg.patch
> combined with the above, the ARM solution would be to go back to using
> non-atomic operations here (since we can't do this atomically.)  Also,
> since the MMU will only ever read from the page tables, I don't think
> we need to play any games with clearing out ptes before we replace the
> value.

Ok. Then you can use a part of the patches. Define ptep_xchg and 
ptep_cmpxchg for ARM so that you do can avoid intermittently clearing 
ptes.

Here is the patch that I sent to Andrew in the morning:

Index: linux-2.6.13-rc3/mm/memory.c
===================================================================
--- linux-2.6.13-rc3.orig/mm/memory.c	2005-07-27 15:34:41.000000000 -0700
+++ linux-2.6.13-rc3/mm/memory.c	2005-07-28 09:24:05.000000000 -0700
@@ -2071,6 +2071,7 @@
 	 */
 	page_table_atomic_start(mm);
 	pgd = pgd_offset(mm, address);
+#ifndef __PAGETABLE_PUD_FOLDED
 	if (unlikely(pgd_none(*pgd))) {
 		pud_t *new;
 
@@ -2084,6 +2085,7 @@
 		if (!pgd_test_and_populate(mm, pgd, new))
 			pud_free(new);
 	}
+#endif
 
 	pud = pud_offset(pgd, address);
 	if (unlikely(pud_none(*pud))) {

  reply	other threads:[~2005-07-28 20:17 UTC|newest]

Thread overview: 96+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-28  9:58 2.6.13-rc3-mm3 Andrew Morton
2005-07-28 10:44 ` [-mm patch] fix MTRR compilation with SMP=n Adrian Bunk
2005-07-28 17:11 ` 2.6.13-rc3-mm3 Christoph Lameter
2005-07-28 19:52   ` 2.6.13-rc3-mm3 Russell King
2005-07-28 20:06     ` Christoph Lameter [this message]
2005-07-28 19:11 ` 2.6.13-rc3-mm3 Rafael J. Wysocki
2005-07-28 19:16   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-28 21:40     ` 2.6.13-rc3-mm3 Rafael J. Wysocki
2005-07-28 23:31       ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-29  7:06       ` 2.6.13-rc3-mm3 Matthias Urlichs
2005-07-29  9:27         ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-29 12:01           ` 2.6.13-rc3-mm3 Matthias Urlichs
2005-07-29 14:12           ` Regression hunting with git (was: Re: 2.6.13-rc3-mm3) Matthias Urlichs
2005-07-28 20:34 ` 2.6.13-rc3-mm3 Adrian Bunk
2005-07-28 22:09 ` 2.6.13-rc3-mm3 Michael Thonke
2005-07-28 20:15   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-28 20:56     ` 2.6.13-rc3-mm3 Nick Sillik
2005-07-28 23:16       ` 2.6.13-rc3-mm3 Michael Thonke
2005-07-28 20:29   ` 2.6.13-rc3-mm3 Adrian Bunk
2005-07-28 23:29 ` 2.6.13-rc3-mm3 Michael Thonke
2005-07-28 22:02   ` 2.6.13-rc3-mm3 Dirk
2005-07-28 23:46   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-29 15:48     ` 2.6.13-rc3-mm3 Michael Thonke
2005-07-29 19:33       ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-30  0:00         ` 2.6.13-rc3-mm3 Michael Thonke
2005-07-29  5:58 ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-07-29  6:08   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-29 15:21     ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-07-29 16:15       ` 2.6.13-rc3-mm3 Eric W. Biederman
2005-07-29  6:01 ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-07-29  6:10   ` 2.6.13-rc3-mm3 Andrew Morton
2005-08-03  1:17     ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-08-03  4:21       ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-08-07 23:23         ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-07-29  6:02 ` 2.6.13-rc3-mm3 Martin J. Bligh
2005-07-29 23:05 ` 2.6.13-rc3-mm3 Khalid Aziz
2005-07-29 23:17   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-30 15:33     ` 2.6.13-rc3-mm3 Khalid Aziz
2005-07-30 18:02       ` 2.6.13-rc3-mm3 Andrew Morton
2005-08-01 15:36     ` 2.6.13-rc3-mm3 Bjorn Helgaas
2005-07-30 10:27 ` 2.6.13-rc3-mm3 Richard Purdie
2005-07-30 17:05   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-31  9:04 ` 2.6.13-rc3-mm3 Manuel Lauss
2005-07-31  9:16   ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-31 11:12     ` 2.6.13-rc3-mm3 Manuel Lauss
2005-07-31 12:46     ` 2.6.13-rc3-mm3 Manuel Lauss
2005-07-31 17:35       ` 2.6.13-rc3-mm3 Andrew Morton
2005-07-31 18:21         ` 2.6.13-rc3-mm3 Manuel Lauss
2005-07-31 18:25   ` 2.6.13-rc3-mm3 Linus Torvalds
2005-07-31 18:41     ` 2.6.13-rc3-mm3 Manuel Lauss
2005-07-31 18:59       ` 2.6.13-rc3-mm3 Linus Torvalds
2005-07-31 21:35     ` 2.6.13-rc3-mm3 Stelian Pop
     [not found]     ` <Pine.LNX.4.58.0507311125360.29650@g5.osdl.org>
     [not found]       ` <1122846072.17880.43.camel@deep-space-9.dsnet>
     [not found]         ` <Pine.LNX.4.58.0507311557020.14342@g5.osdl.org>
2005-08-01 14:37           ` 2.6.13-rc3-mm3 Stelian Pop
2005-08-02  9:49             ` 2.6.13-rc3-mm3 Stelian Pop
2005-08-02 10:32               ` 2.6.13-rc3-mm3 Manuel Lauss
2005-08-02 11:40                 ` 2.6.13-rc3-mm3 Ivan Kokshaysky
2005-08-02 14:04                   ` 2.6.13-rc3-mm3 Manuel Lauss
2005-08-02 15:48                   ` 2.6.13-rc3-mm3 Linus Torvalds
2005-08-02 16:50                     ` 2.6.13-rc3-mm3 Ivan Kokshaysky
2005-08-02 17:11                       ` 2.6.13-rc3-mm3 Linus Torvalds
2005-08-02 21:13                         ` 2.6.13-rc3-mm3 Ivan Kokshaysky
2005-08-02 21:21                           ` 2.6.13-rc3-mm3 Greg KH
2005-08-02 21:47                             ` 2.6.13-rc3-mm3 Ivan Kokshaysky
2005-08-02 21:57                               ` 2.6.13-rc3-mm3 Linus Torvalds
2005-08-02 22:59                                 ` [patch 1/2] increase PCIBIOS_MIN_IO on x86 Ivan Kokshaysky
2005-08-02 23:09                                 ` [patch 2/2] ACPI: " Ivan Kokshaysky
2005-08-01  1:43 ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-01 16:10   ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 20:02     ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-01 20:36       ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 21:07         ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-01 21:16           ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 21:27             ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-01 21:40               ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 21:52                 ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-01 22:02                   ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 22:19                   ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 23:01                     ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-01 23:16                       ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-01 23:32                         ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-04  0:19                       ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-04 11:27                         ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-04 14:04                           ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-04 14:37                             ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-05 15:17                               ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-07 13:44                                 ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-08 16:48                                   ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-08 17:10                                     ` 2.6.13-rc3-mm3 Russell King
2005-08-08 17:15                                       ` 2.6.13-rc3-mm3 Christoph Lameter
2005-08-08 20:40                                     ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-08 22:12                                     ` 2.6.13-rc3-mm3 Richard Purdie
2005-08-09  0:57                                       ` 2.6.13-rc3-mm3 Christoph Lameter
2005-09-14 14:32 ` 2.6.13-mm3 and 2.6.14-rc1 both broken (SCSI?) Martin J. Bligh
2005-09-14 14:09   ` Anton Blanchard
2005-07-28 10:40 2.6.13-rc3-mm3 Sebastian Kaergel
2005-07-28  9:54 ` 2.6.13-rc3-mm3 Alexandre Buisse

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=Pine.LNX.4.62.0507281303320.12958@graphe.net \
    --to=christoph@lameter.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rmk+lkml@arm.linux.org.uk \
    /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

all inboxes | Powered by JetHome®