On Thursday, March 12, 2020 6:06 PM Dan Williams <[email protected]> 
wrote:
> 
> Yes, you're environment is not being careful to exclude the production
> version of the modules from being loaded. The ndctl unit test core
> also sanity checks nfit_Test and reports the collisions before running
> tests. See nfit_test_init():
> 
>     https://github.com/pmem/ndctl/blob/master/test/core.c#L119
> 
> I'd recommend at least running:
> 
>     make TESTS=libndctl check
> 
> ...from latest ndctl.git to sanity check your nfit_test module
> dependencies before trying to load it manually.
> 
> See the troubleshooting document:
> 
>     https://github.com/pmem/ndctl#troubleshooting
> 
> ...for other tips about how to prevent the production modules from loading.

Thanks for tips! I have followed those instructions and it did not help:

$ cat /etc/depmod.d/nvdimm-extra
override nfit * extra
override device_dax * extra
override dax_pmem * extra
override dax_pmem_core * extra
override dax_pmem_compat * extra
override libnvdimm * extra
override nd_blk * extra
override nd_btt * extra
override nd_e820 * extra
override nd_pmem * extra

$ find /lib/modules/5.6.0-rc1-13504-g7b27a8622f80/ -name "*nfit*"
/lib/modules/5.6.0-rc1-13504-g7b27a8622f80/kernel/drivers/acpi/nfit
/lib/modules/5.6.0-rc1-13504-g7b27a8622f80/kernel/drivers/acpi/nfit/nfit.ko.xz
/lib/modules/5.6.0-rc1-13504-g7b27a8622f80/extra/nfit.ko.xz
/lib/modules/5.6.0-rc1-13504-g7b27a8622f80/extra/test/nfit_test.ko.xz
/lib/modules/5.6.0-rc1-13504-g7b27a8622f80/extra/test/nfit_test_iomap.ko.xz

$ make TESTS=libndctl check
[...]
make --no-print-directory check-TESTS
SKIP: libndctl
============================================================================
Testsuite summary for ndctl 67
============================================================================
# TOTAL: 1
# PASS:  0
# SKIP:  1
# XFAIL: 0
# FAIL:  0
# XPASS: 0
# ERROR: 0
============================================================================

$ cat test/test-suite.log
[...]
.. contents:: :depth: 2

SKIP: libndctl
==============

test/init: nfit_test_init: nfit.ko: appears to be production version: 
/lib/modules/5.6.0-rc1-13504-g7b27a8622f80/kernel/drivers/acpi/nfit/nfit.ko.xz
__ndctl_test_skip: explicit skip test_libndctl:2695
nfit_test unavailable skipping tests
libdaxctl: daxctl_unref: context 0xe02a00 released
libndctl: ndctl_unref: context 0xe05f20 released
attempted: 1 skipped: 1
SKIP libndctl (exit status: 77)

As you can see 'ndctl' also cannot load the extra test version of the modules 
even if there is the following file:

$ cat /etc/depmod.d/nvdimm-extra
override nfit * extra
override device_dax * extra
override dax_pmem * extra
override dax_pmem_core * extra
override dax_pmem_compat * extra
override libnvdimm * extra
override nd_blk * extra
override nd_btt * extra
override nd_e820 * extra
override nd_pmem * extra

Can I try anything else? Do you have any suggestions?

--
Lukasz
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to