All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dave Hansen <dave@linux.vnet.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: mpm@selenic.com, hans.rosenfeld@amd.com, linux-mm@kvack.org,
	hugh@veritas.com, riel@redhat.com, nacc <nacc@linux.vnet.ibm.com>,
	Adam Litke <agl@linux.vnet.ibm.com>
Subject: Re: [v4][PATCH 2/2] fix large pages in pagemap
Date: Wed, 11 Jun 2008 14:23:55 -0700	[thread overview]
Message-ID: <1213219435.20475.44.camel@nimitz> (raw)
In-Reply-To: <20080611135207.32a46267.akpm@linux-foundation.org>

On Wed, 2008-06-11 at 13:52 -0700, Andrew Morton wrote:
> access_process_vm-device-memory-infrastructure.patch is a powerpc
> feature, and it uses pmd_huge().

I think that's bogus.  It probably needs to check the VMA in
generic_access_phys() if it wants to be safe.  I don't see any way that
pmd_huge() can give anything back other than 0 on ppc:

arch/powerpc/mm/hugetlbpage.c:

	int pmd_huge(pmd_t pmd)
	{
	        return 0;
	}

or in include/linux/hugetlb.h:

	#define pmd_huge(x)     0

> Am I missing something, or is pmd_huge() a whopping big grenade for x86
> developers to toss at non-x86 architectures?  It seems quite dangerous.

Yeah, it isn't really usable outside of arch code, although it kinda
looks like it.

-- Dave

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

  parent reply	other threads:[~2008-06-11 21:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 18:02 [v4][PATCH 1/2] pass mm into pagewalkers Dave Hansen
2008-06-11 18:02 ` [v4][PATCH 2/2] fix large pages in pagemap Dave Hansen
2008-06-11 19:37   ` Andrew Morton
2008-06-11 19:53     ` Matt Mackall
2008-06-11 20:11       ` Andrew Morton
2008-06-11 20:21         ` Matt Mackall
2008-06-11 20:34         ` Dave Hansen
2008-06-11 20:52           ` Andrew Morton
2008-06-11 21:01             ` Rik van Riel
2008-06-11 21:23             ` Dave Hansen [this message]
2008-06-11 22:37               ` Matt Mackall
2008-06-12 21:36                 ` Hugh Dickins
2008-06-12 22:35                   ` Matt Mackall
2008-06-11 20:15       ` Dave Hansen
2008-06-11 19:35 ` [v4][PATCH 1/2] pass mm into pagewalkers Andrew Morton

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=1213219435.20475.44.camel@nimitz \
    --to=dave@linux.vnet.ibm.com \
    --cc=agl@linux.vnet.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=hans.rosenfeld@amd.com \
    --cc=hugh@veritas.com \
    --cc=linux-mm@kvack.org \
    --cc=mpm@selenic.com \
    --cc=nacc@linux.vnet.ibm.com \
    --cc=riel@redhat.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.