Re: [pmem_attach_disk] WARNING: CPU: 46 PID: 518 at kernel/memremap.c:363 devm_memremap_pages+0x350/0x4b0

From: Theodore Ts'o
Date: Sat Nov 11 2017 - 19:15:41 EST


On Mon, Oct 30, 2017 at 05:24:42PM -0700, Dan Williams wrote:
>
> Something is going wrong with memmap= because you are not getting 1G
> aligned address ranges. I think you would have better luck switching
> to the official nvdimm emulation in qemu-kvm rather than relying on
> memmap= which is just a fragile / unreliable interface. In fact we
> should look to deprecate it and point everyone to use the standard
> methods. We just have a problem of legacy pre-ACPI6 platforms that
> have no other way than a kernel command line to identify persistent
> memory ranges.

Why is memmap fragile/unreliable? I'm not using qemu-kvm for most of
my testing and right now memmap is the only way I can test ext4 DAX
codepaths. :-/

- Ted