From patchwork Wed May 31 02:24:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Zhijian Li (Fujitsu)" X-Patchwork-Id: 13261348 Received: from esa4.hc1455-7.c3s2.iphmx.com (esa4.hc1455-7.c3s2.iphmx.com [68.232.139.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 616171390 for ; Wed, 31 May 2023 02:24:57 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="118880385" X-IronPort-AV: E=Sophos;i="6.00,205,1681138800"; d="scan'208";a="118880385" Received: from unknown (HELO oym-r2.gw.nic.fujitsu.com) ([210.162.30.90]) by esa4.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 11:24:51 +0900 Received: from oym-m2.gw.nic.fujitsu.com (oym-nat-oym-m2.gw.nic.fujitsu.com [192.168.87.59]) by oym-r2.gw.nic.fujitsu.com (Postfix) with ESMTP id A3237D4240 for ; Wed, 31 May 2023 11:24:49 +0900 (JST) Received: from kws-ab3.gw.nic.fujitsu.com (kws-ab3.gw.nic.fujitsu.com [192.51.206.21]) by oym-m2.gw.nic.fujitsu.com (Postfix) with ESMTP id D259DBF496 for ; Wed, 31 May 2023 11:24:48 +0900 (JST) Received: from localhost.localdomain (unknown [10.167.234.230]) by kws-ab3.gw.nic.fujitsu.com (Postfix) with ESMTP id 47DC12007CA97; Wed, 31 May 2023 11:24:48 +0900 (JST) From: Li Zhijian To: nvdimm@lists.linux.dev Cc: linux-cxl@vger.kernel.org, dave.jiang@intel.com, Li Zhijian Subject: [ndctl PATCH v2 2/2] README.md: document CXL unit tests Date: Wed, 31 May 2023 10:24:14 +0800 Message-Id: <20230531022414.7604-2-lizhijian@fujitsu.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230531022414.7604-1-lizhijian@fujitsu.com> References: <20230531022414.7604-1-lizhijian@fujitsu.com> Precedence: bulk X-Mailing-List: nvdimm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-TM-AS-Product-Ver: IMSS-9.1.0.1417-9.0.0.1002-27662.004 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1417-9.0.1002-27662.004 X-TMASE-Result: 10--6.086700-10.000000 X-TMASE-MatchedRID: 9ruk7ESG09bRTAZ5iUYfyaqHmm/V4M/Pe7Z0UyQO5TPAuQ0xDMaXkH4q tYI9sRE/T1fsjZmF+qy4Dzk272eIPLhPu4tF1R7B/sUSFaCjTLz0swHSFcVJ6MgVyTd/p+/IB82 GyGpZHXsR1Wjctg+PdYAy6p60ZV62yA7duzCw6dLdB/CxWTRRu/558CedkGIvqcoAhihTwvjy9H anYSITr4ePUgtHdQGaNEff0CGCMGfOXGmKP0nW9wgOZpnHHSxQ X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 It requires some CLX specific kconfigs and testing purpose module Signed-off-by: Li Zhijian --- V2: Add separate CXL unit test entry # Dave --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 7c7cf0dd065d..4874430a023b 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,32 @@ loaded. To build and install nfit_test.ko: sudo make modules_install ``` +1. CXL test + + The unit tests will also run CXL test by default. In order to make the + CXL test work smoothly, we need to install the cxl_test.ko as well. + + Obtain the CXL kernel source(optional). For example, + `git clone -b pending git://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git` + + Enable CXL specific kernel configurations + ``` + CONFIG_CXL_BUS=m + CONFIG_CXL_PCI=m + CONFIG_CXL_ACPI=m + CONFIG_CXL_PMEM=m + CONFIG_CXL_MEM=m + CONFIG_CXL_PORT=m + CONFIG_CXL_REGION=y + CONFIG_CXL_REGION_INVALIDATION_TEST=y + CONFIG_DEV_DAX_CXL=m + ``` + Install cxl_test.ko + ``` + make M=tools/testing/cxl + sudo make M=tools/testing/cxl modules_install + sudo make modules_install + ``` 1. Now run `meson test -C build` in the ndctl source directory, or `ndctl test`, if ndctl was built with `-Dtest=enabled` as a configuration option to meson.