All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
To: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>, linux-mm@kvack.org
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Hugh Dickins <hughd@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Dave Hansen <dave.hansen@intel.com>,
	Andrea Arcangeli <aarcange@redhat.com>,
	Mel Gorman <mgorman@techsingularity.net>,
	Michal Hocko <mhocko@kernel.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	Pavel Emelyanov <xemul@parallels.com>,
	Zi Yan <zi.yan@cs.rutgers.edu>,
	Balbir Singh <bsingharora@gmail.com>,
	linux-kernel@vger.kernel.org,
	Naoya Horiguchi <nao.horiguchi@gmail.com>
Subject: Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration
Date: Tue, 8 Nov 2016 13:43:54 +0530	[thread overview]
Message-ID: <58218942.8010608@linux.vnet.ibm.com> (raw)
In-Reply-To: <1478561517-4317-6-git-send-email-n-horiguchi@ah.jp.nec.com>

On 11/08/2016 05:01 AM, Naoya Horiguchi wrote:
> This patch prepares thp migration's core code. These code will be open when
> unmap_and_move() stops unconditionally splitting thp and get_new_page() starts
> to allocate destination thps.
> 
> Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
> ---
> ChangeLog v1 -> v2:
> - support pte-mapped thp, doubly-mapped thp
> ---
>  arch/x86/include/asm/pgtable_64.h |   2 +
>  include/linux/swapops.h           |  61 +++++++++++++++
>  mm/huge_memory.c                  | 154 ++++++++++++++++++++++++++++++++++++++
>  mm/migrate.c                      |  44 ++++++++++-
>  mm/pgtable-generic.c              |   3 +-
>  5 files changed, 262 insertions(+), 2 deletions(-)
> 
> diff --git v4.9-rc2-mmotm-2016-10-27-18-27/arch/x86/include/asm/pgtable_64.h v4.9-rc2-mmotm-2016-10-27-18-27_patched/arch/x86/include/asm/pgtable_64.h
> index 1cc82ec..3a1b48e 100644
> --- v4.9-rc2-mmotm-2016-10-27-18-27/arch/x86/include/asm/pgtable_64.h
> +++ v4.9-rc2-mmotm-2016-10-27-18-27_patched/arch/x86/include/asm/pgtable_64.h
> @@ -167,7 +167,9 @@ static inline int pgd_large(pgd_t pgd) { return 0; }
>  					 ((type) << (SWP_TYPE_FIRST_BIT)) \
>  					 | ((offset) << SWP_OFFSET_FIRST_BIT) })
>  #define __pte_to_swp_entry(pte)		((swp_entry_t) { pte_val((pte)) })
> +#define __pmd_to_swp_entry(pte)		((swp_entry_t) { pmd_val((pmd)) })

The above macro takes *pte* but evaluates on *pmd*, guess its should
be fixed either way.

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

WARNING: multiple messages have this Message-ID (diff)
From: Anshuman Khandual <khandual@linux.vnet.ibm.com>
To: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>, linux-mm@kvack.org
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Hugh Dickins <hughd@google.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Dave Hansen <dave.hansen@intel.com>,
	Andrea Arcangeli <aarcange@redhat.com>,
	Mel Gorman <mgorman@techsingularity.net>,
	Michal Hocko <mhocko@kernel.org>,
	Vlastimil Babka <vbabka@suse.cz>,
	Pavel Emelyanov <xemul@parallels.com>,
	Zi Yan <zi.yan@cs.rutgers.edu>,
	Balbir Singh <bsingharora@gmail.com>,
	linux-kernel@vger.kernel.org,
	Naoya Horiguchi <nao.horiguchi@gmail.com>
Subject: Re: [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration
Date: Tue, 8 Nov 2016 13:43:54 +0530	[thread overview]
Message-ID: <58218942.8010608@linux.vnet.ibm.com> (raw)
In-Reply-To: <1478561517-4317-6-git-send-email-n-horiguchi@ah.jp.nec.com>

On 11/08/2016 05:01 AM, Naoya Horiguchi wrote:
> This patch prepares thp migration's core code. These code will be open when
> unmap_and_move() stops unconditionally splitting thp and get_new_page() starts
> to allocate destination thps.
> 
> Signed-off-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
> ---
> ChangeLog v1 -> v2:
> - support pte-mapped thp, doubly-mapped thp
> ---
>  arch/x86/include/asm/pgtable_64.h |   2 +
>  include/linux/swapops.h           |  61 +++++++++++++++
>  mm/huge_memory.c                  | 154 ++++++++++++++++++++++++++++++++++++++
>  mm/migrate.c                      |  44 ++++++++++-
>  mm/pgtable-generic.c              |   3 +-
>  5 files changed, 262 insertions(+), 2 deletions(-)
> 
> diff --git v4.9-rc2-mmotm-2016-10-27-18-27/arch/x86/include/asm/pgtable_64.h v4.9-rc2-mmotm-2016-10-27-18-27_patched/arch/x86/include/asm/pgtable_64.h
> index 1cc82ec..3a1b48e 100644
> --- v4.9-rc2-mmotm-2016-10-27-18-27/arch/x86/include/asm/pgtable_64.h
> +++ v4.9-rc2-mmotm-2016-10-27-18-27_patched/arch/x86/include/asm/pgtable_64.h
> @@ -167,7 +167,9 @@ static inline int pgd_large(pgd_t pgd) { return 0; }
>  					 ((type) << (SWP_TYPE_FIRST_BIT)) \
>  					 | ((offset) << SWP_OFFSET_FIRST_BIT) })
>  #define __pte_to_swp_entry(pte)		((swp_entry_t) { pte_val((pte)) })
> +#define __pmd_to_swp_entry(pte)		((swp_entry_t) { pmd_val((pmd)) })

The above macro takes *pte* but evaluates on *pmd*, guess its should
be fixed either way.

  parent reply	other threads:[~2016-11-08  8:14 UTC|newest]

Thread overview: 141+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-07 23:31 [PATCH v2 00/12] mm: page migration enhancement for thp Naoya Horiguchi
2016-11-07 23:31 ` Naoya Horiguchi
2016-11-07 23:31 ` [PATCH v2 01/12] mm: x86: move _PAGE_SWP_SOFT_DIRTY from bit 7 to bit 6 Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-10 23:29   ` Dave Hansen
2016-11-10 23:29     ` Dave Hansen
2016-11-11  1:08     ` Naoya Horiguchi
2016-11-11  1:08       ` Naoya Horiguchi
2016-11-11 11:12     ` Kirill A. Shutemov
2016-11-11 11:12       ` Kirill A. Shutemov
2016-11-07 23:31 ` [PATCH v2 02/12] mm: mempolicy: add queue_pages_node_check() Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-07 23:31 ` [PATCH v2 03/12] mm: thp: introduce separate TTU flag for thp freezing Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-10  8:31   ` Anshuman Khandual
2016-11-10  8:31     ` Anshuman Khandual
2016-11-10  9:09     ` Naoya Horiguchi
2016-11-10  9:09       ` Naoya Horiguchi
2016-11-11  3:18       ` Anshuman Khandual
2016-11-11  3:18         ` Anshuman Khandual
2016-11-11 11:16   ` Kirill A. Shutemov
2016-11-11 11:16     ` Kirill A. Shutemov
2016-11-07 23:31 ` [PATCH v2 04/12] mm: thp: introduce CONFIG_ARCH_ENABLE_THP_MIGRATION Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-11 11:18   ` Kirill A. Shutemov
2016-11-11 11:18     ` Kirill A. Shutemov
2016-11-15  2:05     ` Naoya Horiguchi
2016-11-15  2:05       ` Naoya Horiguchi
2016-11-28 14:21   ` Michal Hocko
2016-11-28 14:21     ` Michal Hocko
2016-11-29  7:50     ` Naoya Horiguchi
2016-11-29  7:50       ` Naoya Horiguchi
2016-11-29  8:45       ` Michal Hocko
2016-11-29  8:45         ` Michal Hocko
2016-11-07 23:31 ` [PATCH v2 05/12] mm: thp: add core routines for thp/pmd migration Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-08  3:05   ` kbuild test robot
2016-11-08  3:05     ` kbuild test robot
2016-11-08  6:46     ` Naoya Horiguchi
2016-11-08  6:46       ` Naoya Horiguchi
2016-11-08  8:13   ` Anshuman Khandual [this message]
2016-11-08  8:13     ` Anshuman Khandual
2016-11-08  8:16     ` Naoya Horiguchi
2016-11-08  8:16       ` Naoya Horiguchi
2016-11-10  8:29   ` Anshuman Khandual
2016-11-10  8:29     ` Anshuman Khandual
2016-11-10  9:43     ` Naoya Horiguchi
2016-11-10  9:43       ` Naoya Horiguchi
2016-11-14 11:45   ` Kirill A. Shutemov
2016-11-14 11:45     ` Kirill A. Shutemov
2016-11-15  4:57     ` Naoya Horiguchi
2016-11-15  4:57       ` Naoya Horiguchi
2016-11-28 14:31   ` Michal Hocko
2016-11-28 14:31     ` Michal Hocko
2016-11-29  7:57     ` Naoya Horiguchi
2016-11-29  7:57       ` Naoya Horiguchi
2016-11-07 23:31 ` [PATCH v2 06/12] mm: thp: enable thp migration in generic path Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-28 14:33   ` Michal Hocko
2016-11-28 14:33     ` Michal Hocko
2016-11-29  8:16     ` Naoya Horiguchi
2016-11-29  8:16       ` Naoya Horiguchi
2016-11-07 23:31 ` [PATCH v2 07/12] mm: thp: check pmd migration entry in common path Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-08  0:23   ` kbuild test robot
2016-11-08  0:23     ` kbuild test robot
2016-11-08  1:22     ` Naoya Horiguchi
2016-11-08  1:22       ` Naoya Horiguchi
2016-11-10  8:36   ` Anshuman Khandual
2016-11-10  8:36     ` Anshuman Khandual
2016-11-10  9:12     ` Naoya Horiguchi
2016-11-10  9:12       ` Naoya Horiguchi
2016-11-10  9:08   ` Hillf Danton
2016-11-10  9:08     ` Hillf Danton
2016-11-10  9:21     ` Naoya Horiguchi
2016-11-10  9:21       ` Naoya Horiguchi
2016-11-10  9:28       ` Hillf Danton
2016-11-10  9:28         ` Hillf Danton
2016-11-10  9:34         ` Naoya Horiguchi
2016-11-10  9:34           ` Naoya Horiguchi
2016-11-17 23:56   ` Kirill A. Shutemov
2016-11-17 23:56     ` Kirill A. Shutemov
2016-11-29  6:46     ` Naoya Horiguchi
2016-11-29  6:46       ` Naoya Horiguchi
2016-11-28 14:35   ` Michal Hocko
2016-11-28 14:35     ` Michal Hocko
2016-11-07 23:31 ` [PATCH v2 08/12] mm: soft-dirty: keep soft-dirty bits over thp migration Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-10  8:38   ` Anshuman Khandual
2016-11-10  8:38     ` Anshuman Khandual
2016-11-10  9:13     ` Naoya Horiguchi
2016-11-10  9:13       ` Naoya Horiguchi
2016-11-07 23:31 ` [PATCH v2 09/12] mm: hwpoison: soft offline supports " Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-10 10:31   ` Balbir Singh
2016-11-10 10:31     ` Balbir Singh
2016-11-10 23:58     ` Naoya Horiguchi
2016-11-10 23:58       ` Naoya Horiguchi
2016-11-14 23:22       ` Balbir Singh
2016-11-14 23:22         ` Balbir Singh
2016-11-07 23:31 ` [PATCH v2 10/12] mm: mempolicy: mbind and migrate_pages support " Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-25 12:27   ` Anshuman Khandual
2016-11-25 12:27     ` Anshuman Khandual
2016-11-29  7:07     ` Naoya Horiguchi
2016-11-29  7:07       ` Naoya Horiguchi
2016-11-07 23:31 ` [PATCH v2 11/12] mm: migrate: move_pages() supports " Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-18  0:01   ` Kirill A. Shutemov
2016-11-18  0:01     ` Kirill A. Shutemov
2016-11-07 23:31 ` [PATCH v2 12/12] mm: memory_hotplug: memory hotremove " Naoya Horiguchi
2016-11-07 23:31   ` Naoya Horiguchi
2016-11-08  0:29   ` kbuild test robot
2016-11-08  0:29     ` kbuild test robot
2016-11-08  0:30   ` kbuild test robot
2016-11-08  0:30     ` kbuild test robot
2016-11-08  1:36     ` Naoya Horiguchi
2016-11-08  1:36       ` Naoya Horiguchi
2016-11-08  1:41       ` [PATCH] mm: fix unused variable warning Naoya Horiguchi
2016-11-08  1:41         ` Naoya Horiguchi
2016-11-09  2:32 ` [PATCH v2 00/12] mm: page migration enhancement for thp Balbir Singh
2016-11-09  2:32   ` Balbir Singh
2016-11-09  4:59   ` Naoya Horiguchi
2016-11-09  4:59     ` Naoya Horiguchi
2016-11-09 21:28     ` Balbir Singh
2016-11-09 21:28       ` Balbir Singh
2016-11-09 10:33 ` Anshuman Khandual
2016-11-09 10:33   ` Anshuman Khandual
2016-11-09 23:52   ` Naoya Horiguchi
2016-11-09 23:52     ` Naoya Horiguchi
2016-11-10 14:01     ` Zi Yan
2016-11-11  3:48       ` Anshuman Khandual
2016-11-11  3:48         ` Anshuman Khandual
2017-01-30 10:47 ` Anshuman Khandual
2017-01-30 10:47   ` Anshuman Khandual
2017-01-31 19:54   ` Zi Yan
2017-01-31 19:54     ` Zi Yan
2017-02-03  3:12     ` Hillf Danton
2017-02-03  3:12       ` Hillf Danton
2017-02-03  3:24       ` Zi Yan
2017-02-03  3:24         ` Zi Yan

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=58218942.8010608@linux.vnet.ibm.com \
    --to=khandual@linux.vnet.ibm.com \
    --cc=aarcange@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=bsingharora@gmail.com \
    --cc=dave.hansen@intel.com \
    --cc=hughd@google.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mgorman@techsingularity.net \
    --cc=mhocko@kernel.org \
    --cc=n-horiguchi@ah.jp.nec.com \
    --cc=nao.horiguchi@gmail.com \
    --cc=vbabka@suse.cz \
    --cc=xemul@parallels.com \
    --cc=zi.yan@cs.rutgers.edu \
    /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.