Linux CXL
 help / color / mirror / Atom feed
* [PATCH] test/cxl-xor-region.sh: remove redundant waitting
@ 2025-05-14 11:20 ruansy.fnst
  2025-05-16 21:36 ` Alison Schofield
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: ruansy.fnst @ 2025-05-14 11:20 UTC (permalink / raw)
  To: linux-cxl; +Cc: dan.j.williams, vishal.l.verma, sunfishho12, Ruan Shiyang

From: Ruan Shiyang <ruansy.fnst@fujitsu.com>

Now that cxl_wait_probe() has been added[1] to wait for udev queue
empty, the `udevadm settle` here is no longer necessary.

[1] b231603 cxl/lib: Add cxl_wait_probe()

Signed-off-by: Ruan Shiyang <ruansy.fnst@fujitsu.com>

===
Question to Dan:

I understand how cxl_wait_probe() work, but I have some questions about
the motivation of adding this function:  Firstly, is it function added
for simply waiting for new added CXL device been ready before cxl
command does the actual work?  Just for replacing `udevadm settle`'s
work?

Now I am facing a problem that cxl command takes a long time to complete
when I run it in a udev rule(do some configuration when CXL memdev is
added).  I found it is caused by this function: waitting for udev
queue's endding but itself is in the queue.  The cxl_wait_probe()
function does not seem to allow me to do that.  So, the 2nd question is:
is it against the spec to run cxl command in a udev rule?
====
---
 test/cxl-xor-region.sh | 1 -
 1 file changed, 1 deletion(-)

diff --git a/test/cxl-xor-region.sh b/test/cxl-xor-region.sh
index b9e1d79..fb4f9a0 100644
--- a/test/cxl-xor-region.sh
+++ b/test/cxl-xor-region.sh
@@ -14,7 +14,6 @@ check_prereq "jq"
 
 modprobe -r cxl_test
 modprobe cxl_test interleave_arithmetic=1
-udevadm settle
 rc=1
 
 # THEORY OF OPERATION: Create x1,2,3,4 regions to exercise the XOR math
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-05-28 20:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 11:20 [PATCH] test/cxl-xor-region.sh: remove redundant waitting ruansy.fnst
2025-05-16 21:36 ` Alison Schofield
2025-05-20  3:54   ` Shiyang Ruan
2025-05-16 23:50 ` cxl <-> udev deadlock? Marc Herbert
2025-05-17  0:23 ` [PATCH] test/cxl-xor-region.sh: remove redundant waitting dan.j.williams
2025-05-19 21:47   ` Marc Herbert
2025-05-19 23:09     ` Dan Williams
2025-05-20  1:00       ` Marc Herbert
2025-05-20  3:38         ` Shiyang Ruan
2025-05-20  5:26           ` Marc Herbert
2025-05-28 20:49 ` Alison Schofield

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox