All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Paul Mundt <lethal@linux-sh.org>,
	magnus.damm@gmail.com, arnd@arndb.de, linux-mm@kvack.org,
	jayakumar.lkml@gmail.com
Subject: Re: [PATCH][RFC] mm: uncached vma support with writenotify
Date: Tue, 23 Jun 2009 14:40:11 +0200	[thread overview]
Message-ID: <200906231440.11590.arnd@arndb.de> (raw)
In-Reply-To: <20090622151537.2f8009f7.akpm@linux-foundation.org>

On Tuesday 23 June 2009, you wrote:

> > I guess the only real issue here is that we presently have no generic
> > interface in the kernel for setting a VMA uncached. pgprot_noncached()
> > is the closest approximation we have, but there are still architectures
> > that do not implement it.
> > 
> > Given that this comes up at least once a month, perhaps it makes sense to
> > see which platforms are still outstanding. At least cris, h8300,
> > m68knommu, s390, and xtensa all presently lack a definition for it. The
> > nommu cases are easily handled, but the rest still require some attention
> > from their architecture maintainers before we can really start treating
> > this as a generic interface.

For m68knommu, h8300 and s390, doing nothing is correct because they
either don't have page tables or don't control caching through them.
Xtensa could easily add it, they have the respective caching strategy
in their page flags. On cris, caching is controlled through the high
bit of the address, but I guess that means we could just add
'#define _PAGE_UNCACHED  (1 << 31)' there and set that for uncached.

> > which works fine for the nommu case, and which functionally is no
> > different from what happens right now anyways for the users that don't
> > wire it up sanely.
> > 
> > Arnd, what do you think about throwing this at asm-generic?
> > 
> 
> I think Arnd fell asleep ;)

For some reason I did not get the original mail. I've added
the patch to my asm-generic queue and will send a pull request
together with other patches I got.

	Arnd <><

--
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>

  reply	other threads:[~2009-06-23 12:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-14 13:28 [PATCH][RFC] mm: uncached vma support with writenotify Magnus Damm
2009-06-15  3:32 ` Paul Mundt
2009-06-22 22:15   ` Andrew Morton
2009-06-23 12:40     ` Arnd Bergmann [this message]
2009-06-23 12:41     ` [PATCH] asm-generic: add dummy pgprot_noncached() Arnd Bergmann
2009-06-23 12:55       ` Paul Mundt
2009-06-23 13:00       ` xtensa: add pgprot_noncached Arnd Bergmann
2009-06-23 13:07       ` m32r: define pgprot_noncached Arnd Bergmann
2009-06-23 12:55     ` [PATCH] cris: add pgprot_noncached Arnd Bergmann
2009-06-23 19:20       ` Jesper Nilsson
2009-06-23 20:07         ` Arnd Bergmann
2009-06-23 20:23           ` Jesper Nilsson

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=200906231440.11590.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=akpm@linux-foundation.org \
    --cc=jayakumar.lkml@gmail.com \
    --cc=lethal@linux-sh.org \
    --cc=linux-mm@kvack.org \
    --cc=magnus.damm@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.