<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi</p>
    <p>I also tested the addional cases on arm64<br>
    </p>
    <p>1, 4k page size + devdax + --map=mem</p>
    <p>2, 64k page size + devdax + --map=mem</p>
    <p>3, 4k page size + devdax + --map=dev</p>
    <p>4, 64k page size + devdax + --map=dev</p>
    <p>case 4 is important to verify Anshuman's this series.</p>
    <p>Host kernel: 5.7-rc3</p>
    <p>guest kernel: 5.7-rc5 with this series</p>
    <p>ndctl: <a
href="https://github.com/pmem/ndctl/tree/c7767834871f7ce50a2abe1da946e9e16fb08eda"
        class="external-link" rel="nofollow" style="color: rgb(102, 0,
        0); text-decoration: underline; cursor: pointer; font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, "Fira Sans", "Droid Sans",
        "Helvetica Neue", sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(244, 245, 247);">https://github.com/pmem/ndctl/tree/c7767834871</a><span
        style="color: rgb(23, 43, 77); font-family: -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, "Fira Sans", "Droid Sans",
        "Helvetica Neue", sans-serif; font-size: 14px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: 400; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(244, 245, 247); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><br>
      </span></p>
    <p>On the guest:</p>
    <p>1. ./ndctl/.libs/ndctl create-namespace -e namespace0.0
      --mode=devdax --map=dev -s 1g -f -v -a 64K</p>
    <p> echo dax0.0 > /sys/bus/dax/drivers/device_dax/unbind<br>
       echo dax0.0 > /sys/bus/dax/drivers/kmem/new_id</p>
    <p>The 1g block was added</p>
    <p>2. echo 0 > /sys/devices/system/memory/memory10/online</p>
    <p>modprobe -r dax_pmem</p>
    <p>The 1g block was removed</p>
    <p><br>
    </p>
    <p>Some minor fix should be applied which is not relevant to this
      series itself. e.g numa id <br>
    </p>
    <pre class="moz-signature" cols="79">---
Cheers,
Justin (Jia He)</pre>
    <div class="moz-cite-prefix">On 2020/6/18 9:15, Anshuman Khandual
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1592442930-9380-1-git-send-email-anshuman.khandual@arm.com">
      <pre class="moz-quote-pre" wrap="">This series enables vmemmap backing memory allocation from device memory
ranges on arm64. But before that, it enables vmemmap_populate_basepages()
and vmemmap_alloc_block_buf() to accommodate struct vmem_altmap based
alocation requests.

This series applies on 5.8-rc1.

Pending Question:

altmap_alloc_block_buf() does not have any other remaining users in the
tree after this change. Should it be converted into a static function and
it's declaration be dropped from the header (include/linux/mm.h). Avoided
doing so because I was not sure if there are any off-tree users or not.

Changes in V3:

- Dropped comment from free_hotplug_page_range() per Robin
- Modified comment in unmap_hotplug_range() per Robin
- Enabled altmap support in vmemmap_alloc_block_buf() per Robin

Changes in V2: (<a class="moz-txt-link-freetext" href="https://lkml.org/lkml/2020/3/4/475">https://lkml.org/lkml/2020/3/4/475</a>)

- Rebased on latest hot-remove series (v14) adding P4D page table support

Changes in V1: (<a class="moz-txt-link-freetext" href="https://lkml.org/lkml/2020/1/23/12">https://lkml.org/lkml/2020/1/23/12</a>)

- Added an WARN_ON() in unmap_hotplug_range() when altmap is
  provided without the page table backing memory being freed

Changes in RFC V2: (<a class="moz-txt-link-freetext" href="https://lkml.org/lkml/2019/10/21/11">https://lkml.org/lkml/2019/10/21/11</a>)

- Changed the commit message on 1/2 patch per Will
- Changed the commit message on 2/2 patch as well
- Rebased on arm64 memory hot remove series (v10)

RFC V1: (<a class="moz-txt-link-freetext" href="https://lkml.org/lkml/2019/6/28/32">https://lkml.org/lkml/2019/6/28/32</a>)

Cc: Catalin Marinas <a class="moz-txt-link-rfc2396E" href="mailto:catalin.marinas@arm.com"><catalin.marinas@arm.com></a>
Cc: Will Deacon <a class="moz-txt-link-rfc2396E" href="mailto:will@kernel.org"><will@kernel.org></a>
Cc: Mark Rutland <a class="moz-txt-link-rfc2396E" href="mailto:mark.rutland@arm.com"><mark.rutland@arm.com></a>
Cc: Paul Walmsley <a class="moz-txt-link-rfc2396E" href="mailto:paul.walmsley@sifive.com"><paul.walmsley@sifive.com></a>
Cc: Palmer Dabbelt <a class="moz-txt-link-rfc2396E" href="mailto:palmer@dabbelt.com"><palmer@dabbelt.com></a>
Cc: Tony Luck <a class="moz-txt-link-rfc2396E" href="mailto:tony.luck@intel.com"><tony.luck@intel.com></a>
Cc: Fenghua Yu <a class="moz-txt-link-rfc2396E" href="mailto:fenghua.yu@intel.com"><fenghua.yu@intel.com></a>
Cc: Dave Hansen <a class="moz-txt-link-rfc2396E" href="mailto:dave.hansen@linux.intel.com"><dave.hansen@linux.intel.com></a>
Cc: Andy Lutomirski <a class="moz-txt-link-rfc2396E" href="mailto:luto@kernel.org"><luto@kernel.org></a>
Cc: Peter Zijlstra <a class="moz-txt-link-rfc2396E" href="mailto:peterz@infradead.org"><peterz@infradead.org></a>
Cc: Thomas Gleixner <a class="moz-txt-link-rfc2396E" href="mailto:tglx@linutronix.de"><tglx@linutronix.de></a>
Cc: Ingo Molnar <a class="moz-txt-link-rfc2396E" href="mailto:mingo@redhat.com"><mingo@redhat.com></a>
Cc: David Hildenbrand <a class="moz-txt-link-rfc2396E" href="mailto:david@redhat.com"><david@redhat.com></a>
Cc: Mike Rapoport <a class="moz-txt-link-rfc2396E" href="mailto:rppt@linux.ibm.com"><rppt@linux.ibm.com></a>
Cc: Michal Hocko <a class="moz-txt-link-rfc2396E" href="mailto:mhocko@suse.com"><mhocko@suse.com></a>
Cc: "Matthew Wilcox (Oracle)" <a class="moz-txt-link-rfc2396E" href="mailto:willy@infradead.org"><willy@infradead.org></a>
Cc: "Kirill A. Shutemov" <a class="moz-txt-link-rfc2396E" href="mailto:kirill.shutemov@linux.intel.com"><kirill.shutemov@linux.intel.com></a>
Cc: Andrew Morton <a class="moz-txt-link-rfc2396E" href="mailto:akpm@linux-foundation.org"><akpm@linux-foundation.org></a>
Cc: Dan Williams <a class="moz-txt-link-rfc2396E" href="mailto:dan.j.williams@intel.com"><dan.j.williams@intel.com></a>
Cc: Pavel Tatashin <a class="moz-txt-link-rfc2396E" href="mailto:pasha.tatashin@soleen.com"><pasha.tatashin@soleen.com></a>
Cc: Benjamin Herrenschmidt <a class="moz-txt-link-rfc2396E" href="mailto:benh@kernel.crashing.org"><benh@kernel.crashing.org></a>
Cc: Paul Mackerras <a class="moz-txt-link-rfc2396E" href="mailto:paulus@samba.org"><paulus@samba.org></a>
Cc: Michael Ellerman <a class="moz-txt-link-rfc2396E" href="mailto:mpe@ellerman.id.au"><mpe@ellerman.id.au></a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linux-arm-kernel@lists.infradead.org">linux-arm-kernel@lists.infradead.org</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linux-ia64@vger.kernel.org">linux-ia64@vger.kernel.org</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linux-riscv@lists.infradead.org">linux-riscv@lists.infradead.org</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:x86@kernel.org">x86@kernel.org</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linuxppc-dev@lists.ozlabs.org">linuxppc-dev@lists.ozlabs.org</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linux-mm@kvack.org">linux-mm@kvack.org</a>
Cc: <a class="moz-txt-link-abbreviated" href="mailto:linux-kernel@vger.kernel.org">linux-kernel@vger.kernel.org</a>

Anshuman Khandual (3):
  mm/sparsemem: Enable vmem_altmap support in vmemmap_populate_basepages()
  mm/sparsemem: Enable vmem_altmap support in vmemmap_alloc_block_buf()
  arm64/mm: Enable vmem_altmap support for vmemmap mappings

 arch/arm64/mm/mmu.c       | 59 ++++++++++++++++++++++++++-------------
 arch/ia64/mm/discontig.c  |  2 +-
 arch/powerpc/mm/init_64.c | 10 +++----
 arch/riscv/mm/init.c      |  2 +-
 arch/x86/mm/init_64.c     | 12 ++++----
 include/linux/mm.h        |  8 ++++--
 mm/sparse-vmemmap.c       | 38 ++++++++++++++++++++-----
 7 files changed, 87 insertions(+), 44 deletions(-)

</pre>
    </blockquote>
    <pre class="moz-signature" cols="79">-- 

</pre>
  </body>
</html>