From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: David Miller <davem@davemloft.net>,
Andrea Arcangeli <aarcange@redhat.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linux-arch@vger.kernel.org, "linux-mm@kvack.org" <linux-mm@kvack.org>
Subject: Question/clarification on pmd accessors
Date: Sun, 02 Nov 2014 19:18:46 +0530 [thread overview]
Message-ID: <87fve1hfwh.fsf@linux.vnet.ibm.com> (raw)
Hi Andrea,
This came up when I was looking at how best we can implement generic GUP
that can also handle sparc usecase. Below are the pmd accessors that
would be nice to get documented.
pmd_present():
I guess we should return true for both pointer to pte page and
huge page pte (THP and explicit hugepages). We will always find
THP and explicit hugepage present. If so how is it
different from pmd_none() ? (There is an expection of
__split_huge_page_map marking the pmd not
present. Should pmd_present() return false in that case ?)
pmd_none():
In some arch it is same as !pmd_present(). I am
not sure that is correct. Can we explain the difference between
!pmd_present and pmd_none ?
pmd_trans_huge():
pmd value that represent a hugepage built via THP mechanism.
Also implies present.
pmd_huge():
Should cover both the THP and explicit hugepages
pmd_large():
This is confusing. On ppc64 this one also check for
_PAGE_PRESENT. I don't recollect how we end up with that.
-aneesh
--
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 reply other threads:[~2014-11-02 13:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-02 13:48 Aneesh Kumar K.V [this message]
2014-11-03 0:44 ` Question/clarification on pmd accessors Andrea Arcangeli
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=87fve1hfwh.fsf@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=aarcange@redhat.com \
--cc=benh@kernel.crashing.org \
--cc=davem@davemloft.net \
--cc=linux-arch@vger.kernel.org \
--cc=linux-mm@kvack.org \
/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;
as well as URLs for NNTP newsgroup(s).