Skip to content

ndctl test suite dm.sh failed at cmd ndctl create-namespace -b ACPI.NFIT -s 1073741824 -t pmem -m fsdax -n test_pmem #294

@yizhanglinux

Description

@yizhanglinux

Hi
I found this issue with 6.17.0-rc4+ and the latest ndctl, here is the log [1]:
[1]

================================== 40/44 ====================================
test:         ndctl:dax / dm.sh
start time:   02:52:53
duration:     19.06s
result:       exit status 1
command:      CXL=/root/ndctl/build/cxl/cxl UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 NDCTL=/root/ndctl/build/ndctl/ndctl DATA_PATH=/root/ndctl/test TEST_PATH=/root/ndctl/build/test MALLOC_PERTURB_=17 LD_LIBRARY_PATH=/root/ndctl/build/cxl/lib:/root/ndctl/build/daxctl/lib:/root/ndctl/build/ndctl/lib MSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 DAXCTL=/root/ndctl/build/daxctl/daxctl ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 LC_ALL=C /root/ndctl/test/dm.sh
----------------------------------- stdout -----------------------------------
test/dm.sh: failed at line 48
test/dm.sh: failed at line
----------------------------------- stderr -----------------------------------
+ set -e
+ SKIP=77
+ FAIL=1
+ SUCCESS=0
++ dirname /root/ndctl/test/dm.sh
+ . /root/ndctl/test/common
+++ basename /root/ndctl/test/dm.sh
++ test_basename=dm.sh
++ '[' -z /root/ndctl/build/ndctl/ndctl ']'
++ '[' -z /root/ndctl/build/daxctl/daxctl ']'
++ '[' -z /root/ndctl/build/cxl/cxl ']'
++ '[' -z /root/ndctl/build/test ']'
++ NFIT_TEST_BUS0=nfit_test.0
++ NFIT_TEST_BUS1=nfit_test.1
++ CXL_TEST_BUS=cxl_test
++ ACPI_BUS=ACPI.NFIT
++ E820_BUS=e820
++ CXL_TEST_QOS_CLASS=42
+ MNT=test_dax_mnt
+ TEST_DM_PMEM=/dev/mapper/test_pmem
++ basename /dev/mapper/test_pmem
+ NAME=test_pmem
+ mkdir -p test_dax_mnt
+ TEST_SIZE=1073741824
+ rc=1
+ trap 'err $LINENO cleanup' ERR
+ ndctl list -RBNiD
+ dev=x
++ /root/ndctl/build/ndctl/ndctl create-namespace -b ACPI.NFIT -s 1073741824 -t pmem -m fsdax -n test_pmem
libndctl: ndctl_pfn_enable: pfn1.2: failed to enable
  Error: namespace1.0: failed to enable

failed to create namespace: No such device or address
+ json=
++ err 48 cleanup
++ echo test/dm.sh: failed at line 48
++ '[' -n cleanup ']'
++ cleanup
++ '[' 1 -ne 0 ']'
++ echo 'test/dm.sh: failed at line '
++ mountpoint -q test_dax_mnt
++ '[' -L /dev/mapper/test_pmem ']'
++ rm -rf test_dax_mnt
+++ /root/ndctl/build/ndctl/ndctl list -N
+++ jq -r '.[] | select(.name=="test_pmem") | .dev'
++ namespaces=
++ exit 1
==============================================================================

[2]

# ndctl create-namespace -b ACPI.NFIT -s 1073741824 -t pmem -m fsdax -n test_pmem
libndctl: ndctl_pfn_enable: pfn1.2: failed to enable
  Error: namespace1.0: failed to enable

failed to create namespace: No such device or address
# dmesg
[ 6209.084121] nd_pmem pfn1.2: could not reserve region [??? 0x2070000000-0x20afffffff flags 0x0]
[ 6209.092739] nd_pmem pfn1.2: probe with driver nd_pmem failed with error -16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions