From patchwork Wed May 31 02:24:13 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: 13261349 Received: from esa5.hc1455-7.c3s2.iphmx.com (esa5.hc1455-7.c3s2.iphmx.com [68.232.139.130]) (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 1466C1846 for ; Wed, 31 May 2023 02:26:03 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="118391941" X-IronPort-AV: E=Sophos;i="6.00,205,1681138800"; d="scan'208";a="118391941" Received: from unknown (HELO yto-r3.gw.nic.fujitsu.com) ([218.44.52.219]) by esa5.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 11:24:52 +0900 Received: from yto-m1.gw.nic.fujitsu.com (yto-nat-yto-m1.gw.nic.fujitsu.com [192.168.83.64]) by yto-r3.gw.nic.fujitsu.com (Postfix) with ESMTP id 3A1C4E4289 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 yto-m1.gw.nic.fujitsu.com (Postfix) with ESMTP id 895BECF7D1 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 E9A592007AA82; Wed, 31 May 2023 11:24:47 +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 1/2] CONTRIBUTING.md: document cxl mailing list Date: Wed, 31 May 2023 10:24:13 +0800 Message-Id: <20230531022414.7604-1-lizhijian@fujitsu.com> X-Mailer: git-send-email 2.31.1 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--7.585600-10.000000 X-TMASE-MatchedRID: E/g93qo2P+FTorztX3wKRKoXHZz/dXlxwTlc9CcHMZerwqxtE531VIPc XuILVCbaGBKlWUwuGkazIl9yuO/5TfWzx4I556JguFdP7vaalM1AApRfVHzqNBHfiujuTbedAVU qe0H38EqAAna+Q7+KBIfO35fV1SF6buWRvIwrG23lMFX0LZQzce9Bi8r8zoNMmfCW/sLDo1BrqM MR8f2KK9hjV/rOEii5gts6uXSYOZ6XBXaJoB9JZxRFJJyf5BJe3QfwsVk0UbtuRXh7bFKB7tmP2 EOiWBNtkvU19ytASnPtIcbc5zr2DDYIHp9W/7lPsBTJSD2iAW0= X-TMASE-SNAP-Result: 1.821001.0001-0-1-22:0,33:0,34:0-0 Any change and question relevant to should also CC to the CXL mailing list. Reviewed-by: Dave Jiang Signed-off-by: Li Zhijian --- V2: add reviewed tag --- CONTRIBUTING.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4f4865db9da4..7d1e7f64984f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,15 +5,21 @@ Thank you for taking the time to contribute to ndctl. The following is a set of guidelines that we adhere to, and request that contributors follow. +1. **NOTE**: ndctl utils have extended to support CXL CLI, so any change + and question relevant to CXL should also CC to the CXL mailing list + **```linux-cxl@vger.kernel.org```**. + 1. The libnvdimm (kernel subsystem) and ndctl developers primarily use the [nvdimm](https://subspace.kernel.org/lists.linux.dev.html) mailing list for everything. It is recommended to send patches to - **```nvdimm@lists.linux.dev```** - An archive is available on [lore](https://lore.kernel.org/nvdimm/) + **```nvdimm@lists.linux.dev```** and CC **```linux-cxl@vger.kernel.org```** if needed. + The archives are available on [nvdimm](https://lore.kernel.org/nvdimm/) and + [cxl](https://lore.kernel.org/linux-cxl/) 1. Github [issues](https://github.com/pmem/ndctl/issues) are an acceptable way to report a problem, but if you just have a question, - [email](mailto:nvdimm@lists.linux.dev) the above list. + [email](mailto:nvdimm@lists.linux.dev) the above list and CC + `linux-cxl@linux-cxl@vger.kernel.org` if needed. 1. We follow the Linux Kernel [Coding Style Guide][cs] as applicable. 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.