Linux-NVDIMM Archive on lore.kernel.org
 help / color / Atom feed
* daxctl fails to reconfigure to system-ram when DAX modules built-in?
@ 2019-09-03 21:20 Brice Goglin
  2019-09-03 22:39 ` Verma, Vishal L
  0 siblings, 1 reply; 2+ messages in thread
From: Brice Goglin @ 2019-09-03 21:20 UTC (permalink / raw)
  To: linux-nvdimm

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
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: daxctl fails to reconfigure to system-ram when DAX modules built-in?
  2019-09-03 21:20 daxctl fails to reconfigure to system-ram when DAX modules built-in? Brice Goglin
@ 2019-09-03 22:39 ` Verma, Vishal L
  0 siblings, 0 replies; 2+ messages in thread
From: Verma, Vishal L @ 2019-09-03 22:39 UTC (permalink / raw)
  To: linux-nvdimm, Brice.Goglin

On Tue, 2019-09-03 at 23:20 +0200, Brice Goglin wrote:
> 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()

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
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-03 21:20 daxctl fails to reconfigure to system-ram when DAX modules built-in? Brice Goglin
2019-09-03 22:39 ` Verma, Vishal L

Linux-NVDIMM Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-nvdimm/0 linux-nvdimm/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nvdimm linux-nvdimm/ https://lore.kernel.org/linux-nvdimm \
		linux-nvdimm@lists.01.org linux-nvdimm@archiver.kernel.org
	public-inbox-index linux-nvdimm


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.01.lists.linux-nvdimm


AGPL code for this site: git clone https://public-inbox.org/ public-inbox