Skip to contentSkip to conversation

daxctl fails to reconfigure to system-ram when DAX modules built-in?

DISCUSSION Brice Goglin 2 participants 2 messages Sep 3, 2019 libnvdimm: non-volatile memory device

lore
Share & tools
lore
#0 lore raw

Hello

It looks like daxctl fails to reconfigure to system-ram when DAX modules are built-in the kernel:

$ daxctl reconfigure-device --mode=system-ram dax1.0 -v
libdaxctl: daxctl_insert_kmod_for_mode: dax1.0: a modalias lookup list was not created
error reconfiguring devices: No such device or address
reconfigured 0 devices

It looks like things were failing in kmod_module_new_from_lookup()

I changed my .config with this and now it works:
-CONFIG_DEV_DAX=y
-CONFIG_DEV_DAX_PMEM=y
-CONFIG_DEV_DAX_KMEM=y
+CONFIG_DEV_DAX=m
+CONFIG_DEV_DAX_PMEM=m
+CONFIG_DEV_DAX_KMEM=m

(and +CONFIG_DEV_DAX_PMEM_COMPAT=m but it's now disabled in modprobe.d)

This is with 5.2.11.

Thanks
Brice

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

maintainer
#1 lore raw
Quoted 5 lines · Brice Goglin

Hello

It looks like daxctl fails to reconfigure to system-ram when DAX modules are built-in the kernel:

Quoted 7 lines
$ daxctl reconfigure-device --mode=system-ram dax1.0 -v
libdaxctl: daxctl_insert_kmod_for_mode: dax1.0: a modalias lookup list
was not created
error reconfiguring devices: No such device or address
reconfigured 0 devices

It looks like things were failing in kmod_module_new_from_lookup()

Hi Brice,

Thanks for the report - Dave Hansen also hit this recently, and I'll take a look at kmod builtin detection. I've created a github issue for this:

https://github.com/pmem/ndctl/issues/108

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