Re: [RFC][PATCH v2 01/21] e820: cheat PMEM as DRAM

From: Matthew Wilcox
Date: Wed Dec 26 2018 - 22:41:47 EST


On Wed, Dec 26, 2018 at 09:14:47PM +0800, Fengguang Wu wrote:
> From: Fan Du <fan.du@xxxxxxxxx>
>
> This is a hack to enumerate PMEM as NUMA nodes.
> It's necessary for current BIOS that don't yet fill ACPI HMAT table.
>
> WARNING: take care to backup. It is mutual exclusive with libnvdimm
> subsystem and can destroy ndctl managed namespaces.

Why depend on firmware to present this "correctly"? It seems to me like
less effort all around to have ndctl label some namespaces as being for
this kind of use.