Add module "90nvdimm" for NVDIMM support
PATCH 1/2 Add module "90nvdimm" for NVDIMM support
From: Martin Wilck <mwilck-IBi9RG/[email protected]>
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
modules.d/90nvdimm/module-setup.sh new file +31 -0
@@ -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 +}
Signature · 1 line
2.25.0
A message that is not in the archive (sent off-list or not yet received): 20200130151821.24042-1-mwilck-IBi9RG/[email protected]
PATCH 2/2 90kernel-modules: remove nfit from static module list
From: Martin Wilck <mwilck-IBi9RG/[email protected]>
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(-)
modules.d/90kernel-modules/module-setup.sh +1 -1
@@ -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"
Signature · 1 line
2.25.0
A message that is not in the archive (sent off-list or not yet received): 20200130151821.24042-2-mwilck-IBi9RG/[email protected]
Re: [PATCH 2/2] 90kernel-modules: remove nfit from static module list
Patchset imported to github.
Pull request:
<https://github.com/dracutdevs/dracut/compare/master...dracut-mailing-devs:20200130151821.24042-2-mwilck%40suse.com>