* [PATCH 1/2] Add module "90nvdimm" for NVDIMM support
@ 2020-01-30 15:18 mwilck-IBi9RG/b67k
[not found] ` <20200130151821.24042-1-mwilck-IBi9RG/b67k@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: mwilck-IBi9RG/b67k @ 2020-01-30 15:18 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA, Harald Hoyer
Cc: Hannes Reinecke, Daniel Molkentin, Thomas Blume, Martin Wilck,
Kairui Song
From: Martin Wilck <mwilck-IBi9RG/b67k@public.gmane.org>
Detection of persistent memory devices works mostly out of the box
already. Only the "provider" modules for ndbus devices, which are responsible
to extract information of available NVDIMM devices and their configuration
from system firmware, are only indirectly linked into the module stack.
Examples for such modules are nfit.ko, nd_e820.ko, and virtio-pmem.ko.
Add a module that resolves these dependencies.
---
modules.d/90nvdimm/module-setup.sh | 31 ++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100755 modules.d/90nvdimm/module-setup.sh
diff --git a/modules.d/90nvdimm/module-setup.sh b/modules.d/90nvdimm/module-setup.sh
new file mode 100755
index 0000000..98913a4
--- /dev/null
+++ b/modules.d/90nvdimm/module-setup.sh
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+# called by dracut
+check() {
+ if [[ ! $hostonly ]]; then
+ return 0
+ fi
+ [[ $DRACUT_KERNEL_MODALIASES && -f "$DRACUT_KERNEL_MODALIASES" ]] && \
+ grep -q libnvdimm "$DRACUT_KERNEL_MODALIASES" && return 0
+ return 255
+}
+
+# called by dracut
+depends() {
+ return 0
+}
+
+# called by dracut
+installkernel() {
+ # Directories to search for NVDIMM "providers" (firmware drivers)
+ # These modules call "nvdimm_bus_register()".
+ local _provider_dirs='=drivers/nvdimm =drivers/acpi =arch/powerpc'
+
+ #instmods() will take care of hostonly
+ dracut_instmods -o -s nvdimm_bus_register $_provider_dirs
+}
+
+# called by dracut
+install() {
+ inst /usr/bin/ndctl
+}
--
2.25.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] 90kernel-modules: remove nfit from static module list
[not found] ` <20200130151821.24042-1-mwilck-IBi9RG/b67k@public.gmane.org>
@ 2020-01-30 15:18 ` mwilck-IBi9RG/b67k
[not found] ` <20200130151821.24042-2-mwilck-IBi9RG/b67k@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: mwilck-IBi9RG/b67k @ 2020-01-30 15:18 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA, Harald Hoyer
Cc: Hannes Reinecke, Daniel Molkentin, Thomas Blume, Martin Wilck,
Kairui Song
From: Martin Wilck <mwilck-IBi9RG/b67k@public.gmane.org>
The 90nvdimm module now resolves the nfit dependency when it's
necessary, so it's not necessary any more to pack it always.
---
modules.d/90kernel-modules/module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh
index 7ae8813..d8c7d43 100755
--- a/modules.d/90kernel-modules/module-setup.sh
+++ b/modules.d/90kernel-modules/module-setup.sh
@@ -28,7 +28,7 @@ installkernel() {
hostonly='' instmods sr_mod sd_mod scsi_dh ata_piix
instmods \
scsi_dh_rdac scsi_dh_emc scsi_dh_alua \
- =ide nvme vmd nfit \
+ =ide nvme vmd \
virtio_blk
dracut_instmods -o -s "${_blockfuncs}" "=drivers"
--
2.25.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] 90kernel-modules: remove nfit from static module list
[not found] ` <20200130151821.24042-2-mwilck-IBi9RG/b67k@public.gmane.org>
@ 2020-01-30 16:04 ` Dracut GitHub Import Bot
0 siblings, 0 replies; 3+ messages in thread
From: Dracut GitHub Import Bot @ 2020-01-30 16:04 UTC (permalink / raw)
To: initramfs-u79uwXL29TY76Z2rM5mHXA
Patchset imported to github.
Pull request:
<https://github.com/dracutdevs/dracut/compare/master...dracut-mailing-devs:20200130151821.24042-2-mwilck%40suse.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-01-30 16:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-30 15:18 [PATCH 1/2] Add module "90nvdimm" for NVDIMM support mwilck-IBi9RG/b67k
[not found] ` <20200130151821.24042-1-mwilck-IBi9RG/b67k@public.gmane.org>
2020-01-30 15:18 ` [PATCH 2/2] 90kernel-modules: remove nfit from static module list mwilck-IBi9RG/b67k
[not found] ` <20200130151821.24042-2-mwilck-IBi9RG/b67k@public.gmane.org>
2020-01-30 16:04 ` Dracut GitHub Import Bot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox