On 2/17/23 5:40 PM, Vishal Verma wrote:
This test failed intermittently because the ndctl-list operation right
after a 'modprobe cxl_test' could race the actual nmem devices getting
loaded.
Since CXL device probes are asynchronous, and cxl_acpi might've kicked
off a cxl_bus_rescan(), a cxl_flush() (via cxl_wait_probe()) can ensure
everything is loaded.
Add a plain cxl-list right after the modprobe to allow for a flush/wait
cycle.
Cc: Dave Jiang <dave.ji...@intel.com>
Suggested-by: Dan Williams <dan.j.willi...@intel.com>
Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com>
Reviewed-by: Dave Jiang <dave.ji...@intel.com>
---
test/security.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/security.sh b/test/security.sh
index 04f630e..fb04aa6 100755
--- a/test/security.sh
+++ b/test/security.sh
@@ -225,6 +225,7 @@ if [ "$uid" -ne 0 ]; then
fi
modprobe "$KMOD_TEST"
+cxl list
setup
check_prereq "keyctl"
rc=1