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: 13261352 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F3D8C7EE2C for ; Wed, 31 May 2023 02:24:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230296AbjEaCY6 (ORCPT ); Tue, 30 May 2023 22:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233964AbjEaCY4 (ORCPT ); Tue, 30 May 2023 22:24:56 -0400 Received: from esa6.hc1455-7.c3s2.iphmx.com (esa6.hc1455-7.c3s2.iphmx.com [68.232.139.139]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8ED7B10E for ; Tue, 30 May 2023 19:24:53 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="120056771" X-IronPort-AV: E=Sophos;i="6.00,205,1681138800"; d="scan'208";a="120056771" Received: from unknown (HELO oym-r4.gw.nic.fujitsu.com) ([210.162.30.92]) by esa6.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 11:24:52 +0900 Received: from oym-m3.gw.nic.fujitsu.com (oym-nat-oym-m3.gw.nic.fujitsu.com [192.168.87.60]) by oym-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id 4CB91DDC60 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-m3.gw.nic.fujitsu.com (Postfix) with ESMTP id 846F0D947A 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 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 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org 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: 13261351 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E06E0C77B73 for ; Wed, 31 May 2023 02:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjEaCY6 (ORCPT ); Tue, 30 May 2023 22:24:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233942AbjEaCY4 (ORCPT ); Tue, 30 May 2023 22:24:56 -0400 Received: from esa7.hc1455-7.c3s2.iphmx.com (esa7.hc1455-7.c3s2.iphmx.com [139.138.61.252]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6008811D for ; Tue, 30 May 2023 19:24:54 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10726"; a="97629897" X-IronPort-AV: E=Sophos;i="6.00,205,1681138800"; d="scan'208";a="97629897" Received: from unknown (HELO oym-r1.gw.nic.fujitsu.com) ([210.162.30.89]) by esa7.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 May 2023 11:24:51 +0900 Received: from oym-m1.gw.nic.fujitsu.com (oym-nat-oym-m1.gw.nic.fujitsu.com [192.168.87.58]) by oym-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id A0509D29EA 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-m1.gw.nic.fujitsu.com (Postfix) with ESMTP id D238CD5014 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> 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 Precedence: bulk List-ID: X-Mailing-List: linux-cxl@vger.kernel.org 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.