Thank you, I could enable DAX PMD suport for HPE NVDIMM modules.

The following ndctl command changed the nvdimm device type 
from "namespace_io_device_type" to "nd_pfn_device_type", right?


I did the following: 
------
# ndctl create-namespace --reconfig=namespace1.0 --mode=memory --force
{
  "dev":"namespace1.0",
  "mode":"memory",
  "size":33820770304,
  "uuid":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
  "blockdev":"pmem1"
}

# ndctl list --namespaces
{
  "provider":"ACPI.NFIT",
  "dev":"ndbus0",
  "namespaces":[
    {
      "dev":"namespace1.0",
      "mode":"memory",
      "size":33820770304,
      "uuid":"XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
      "blockdev":"pmem1"
    },
    {
      "dev":"namespace0.0",
      "mode":"raw",
      "size":34359738368,
      "blockdev":"pmem0"
    }
  ]
}

# 
------


><[email protected]> wrote:
>You can achieve the same by putting your namespace into "memory" mode
>with the following ndctl command.  Note that this will destroy the
>current contents of the namespace, and you must unmount /dev/pmem1
>before running this.
>
>    ndctl create-namespace --reconfig=namespace1.0 --mode=memory --force
>
>This arranges for struct page / memmap entries to be created for the 
>namespace.
>


_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm

Reply via email to