]> www.infradead.org Git - users/dwmw2/linux.git/commit
cxl/test: Improve init-order fidelity relative to real-world systems
authorDan Williams <dan.j.williams@intel.com>
Wed, 23 Oct 2024 01:44:06 +0000 (18:44 -0700)
committerIra Weiny <ira.weiny@intel.com>
Fri, 25 Oct 2024 21:07:04 +0000 (16:07 -0500)
commit3a2b97b3210bd5758f66fad04c5171f85a016a04
treef0f9e5ec7ac3aeb98aee403ec86e3ce798fafdef
parent105b6235ad0f24f271aef17f8865186c4546cb3a
cxl/test: Improve init-order fidelity relative to real-world systems

The investigation of an initialization failure [1] highlighted that
cxl_test does not reflect the init-order of real world systems. The
expected order is root/bus first then async probing of the memory
devices.

Fix up cxl_test to reflect that order. While it did not reproduce the
initial bug report (since that is dependent on built-in vs modular
builds), it did reveal a separate latent bug in the subsystem's decoder
shutdown flow. Fix for that sent separately.

Link: http://lore.kernel.org/20241004212504.1246-1-gourry@gourry.net
Cc: Davidlohr Bueso <dave@stgolabs.net>
Cc: Jonathan Cameron <jonathan.cameron@huawei.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Alison Schofield <alison.schofield@intel.com>
Cc: Vishal Verma <vishal.l.verma@intel.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/172964784521.81806.15791069994065969243.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
tools/testing/cxl/test/cxl.c
tools/testing/cxl/test/mem.c