From: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
To: steve.capper@linaro.org
Cc: linux@arm.linux.org.uk, arnd@arndb.de, catalin.marinas@arm.com,
will.deacon@arm.com, linux-mm@kvack.org, dsaxena@linaro.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/5] mm: hugetlb: Introduce huge_pte_{page,present,young}
Date: Mon, 03 Mar 2014 13:07:07 -0500 [thread overview]
Message-ID: <24881.2788785019$1393870093@news.gmane.org> (raw)
In-Reply-To: <1392737235-27286-2-git-send-email-steve.capper@linaro.org>
Hi Steve,
On Tue, Feb 18, 2014 at 03:27:11PM +0000, Steve Capper wrote:
> Introduce huge pte versions of pte_page, pte_present and pte_young.
> This allows ARM (without LPAE) to use alternative pte processing logic
> for huge ptes.
>
> Where these functions are not defined by architectural code they
> fallback to the standard functions.
>
> Signed-off-by: Steve Capper <steve.capper@linaro.org>
> ---
> include/linux/hugetlb.h | 12 ++++++++++++
> mm/hugetlb.c | 22 +++++++++++-----------
> 2 files changed, 23 insertions(+), 11 deletions(-)
How about replacing other archs' arch-dependent code with new functions?
[~/dev]$ find arch/ -name "hugetlbpage.c" | xargs grep pte_page
arch/s390/mm/hugetlbpage.c: pmd_val(pmd) |= pte_page(pte)[1].index;
arch/powerpc/mm/hugetlbpage.c: page = pte_page(*ptep);
arch/powerpc/mm/hugetlbpage.c: head = pte_page(pte);
arch/x86/mm/hugetlbpage.c: page = &pte_page(*pte)[vpfn % (HPAGE_SIZE/PAGE_SIZE)];
arch/ia64/mm/hugetlbpage.c: page = pte_page(*ptep);
arch/mips/mm/hugetlbpage.c: page = pte_page(*(pte_t *)pmd);
arch/tile/mm/hugetlbpage.c: page = pte_page(*(pte_t *)pmd);
arch/tile/mm/hugetlbpage.c: page = pte_page(*(pte_t *)pud);
[~/dev]$ find arch/ -name "hugetlbpage.c" | xargs grep pte_present
arch/s390/mm/hugetlbpage.c: if (pte_present(pte)) {
arch/sparc/mm/hugetlbpage.c: if (!pte_present(*ptep) && pte_present(entry))
arch/sparc/mm/hugetlbpage.c: if (pte_present(entry))
arch/tile/mm/hugetlbpage.c: if (!pte_present(*ptep) && huge_shift[level] != 0) {
arch/tile/mm/hugetlbpage.c: if (pte_present(pte) && pte_super(pte))
arch/tile/mm/hugetlbpage.c: if (!pte_present(*pte))
Thanks,
Naoya Horiguchi
next prev parent reply other threads:[~2014-03-03 18:07 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-18 15:27 [PATCH 0/5] Huge pages for short descriptors on ARM Steve Capper
2014-02-18 15:27 ` [PATCH 1/5] mm: hugetlb: Introduce huge_pte_{page,present,young} Steve Capper
2014-03-03 8:01 ` Steve Capper
2014-03-03 18:07 ` Naoya Horiguchi
2014-03-03 18:07 ` Naoya Horiguchi [this message]
[not found] ` <5314c4e5.d0128c0a.2ad9.ffffeb8dSMTPIN_ADDED_BROKEN@mx.google.com>
2014-03-04 8:26 ` Steve Capper
2014-02-18 15:27 ` [PATCH 2/5] arm: mm: Adjust the parameters for __sync_icache_dcache Steve Capper
2014-02-18 15:27 ` [PATCH 3/5] arm: mm: Make mmu_gather aware of huge pages Steve Capper
2014-02-18 15:27 ` [PATCH 4/5] arm: mm: HugeTLB support for non-LPAE systems Steve Capper
2014-02-18 15:27 ` [PATCH 5/5] arm: mm: Add Transparent HugePage support for non-LPAE Steve Capper
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='24881.2788785019$1393870093@news.gmane.org' \
--to=n-horiguchi@ah.jp.nec.com \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=dsaxena@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mm@kvack.org \
--cc=linux@arm.linux.org.uk \
--cc=steve.capper@linaro.org \
--cc=will.deacon@arm.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