From patchwork Tue May 23 03:57:03 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: 13251492 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 57FDCC7EE2D for ; Tue, 23 May 2023 03:58:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232272AbjEWD6h (ORCPT ); Mon, 22 May 2023 23:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjEWD6Y (ORCPT ); Mon, 22 May 2023 23:58:24 -0400 X-Greylist: delayed 63 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Mon, 22 May 2023 20:58:21 PDT Received: from esa12.hc1455-7.c3s2.iphmx.com (esa12.hc1455-7.c3s2.iphmx.com [139.138.37.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2D419C for ; Mon, 22 May 2023 20:58:21 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="97063266" X-IronPort-AV: E=Sophos;i="6.00,185,1681138800"; d="scan'208";a="97063266" Received: from unknown (HELO yto-r1.gw.nic.fujitsu.com) ([218.44.52.217]) by esa12.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2023 12:57:16 +0900 Received: from yto-m1.gw.nic.fujitsu.com (yto-nat-yto-m1.gw.nic.fujitsu.com [192.168.83.64]) by yto-r1.gw.nic.fujitsu.com (Postfix) with ESMTP id 417BEDB393 for ; Tue, 23 May 2023 12:57:14 +0900 (JST) Received: from kws-ab4.gw.nic.fujitsu.com (kws-ab4.gw.nic.fujitsu.com [192.51.206.22]) by yto-m1.gw.nic.fujitsu.com (Postfix) with ESMTP id 85B22CFBB2 for ; Tue, 23 May 2023 12:57:13 +0900 (JST) Received: from localhost.localdomain (unknown [10.167.226.45]) by kws-ab4.gw.nic.fujitsu.com (Postfix) with ESMTP id E81F140FC0; Tue, 23 May 2023 12:57:12 +0900 (JST) From: Li Zhijian To: nvdimm@lists.linux.dev Cc: linux-cxl@vger.kernel.org, Li Zhijian Subject: [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Date: Tue, 23 May 2023 11:57:03 +0800 Message-Id: <20230523035704.826188-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-27644.004 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1417-9.0.1002-27644.004 X-TMASE-Result: 10--6.981600-10.000000 X-TMASE-MatchedRID: Ws93scA2AKdTorztX3wKRE7nLUqYrlslFIuBIWrdOeOjEIt+uIPPOP/G MtOzOpELoDygFaGdGdDGp/huIU6WTAUOfEwe75QIrMZ+BqQt2Nr4qCLIu0mtIL42hLbi424DN1N eJEsbqQ7Nc3GjcAzz4qZMOr9som97lI9wYQFSXLyfrLSY2RbRpDWRH7TlULWGzAKTiuEfBeJ/KC gekkQUpQac8ZIsTvB5xMqtK+ju5GcfE8yM4pjsDwtuKBGekqUpI/NGWt0UYPBKQ5c45GfIgTkZA R8SebWVYLjK29AKgworMFEbiFB7CeSPyTK27pvM 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. Signed-off-by: Li Zhijian Reviewed-by: Dave Jiang --- CONTRIBUTING.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4f4865db9da4..c5eb391122d5 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 Tue May 23 03:57:04 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: 13251491 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 14959C77B7A for ; Tue, 23 May 2023 03:57:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230017AbjEWD50 (ORCPT ); Mon, 22 May 2023 23:57:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49274 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229587AbjEWD5Z (ORCPT ); Mon, 22 May 2023 23:57:25 -0400 Received: from esa1.hc1455-7.c3s2.iphmx.com (esa1.hc1455-7.c3s2.iphmx.com [207.54.90.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C02BD91 for ; Mon, 22 May 2023 20:57:18 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10718"; a="117513789" X-IronPort-AV: E=Sophos;i="6.00,185,1681138800"; d="scan'208";a="117513789" Received: from unknown (HELO oym-r4.gw.nic.fujitsu.com) ([210.162.30.92]) by esa1.hc1455-7.c3s2.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 May 2023 12:57:17 +0900 Received: from oym-m1.gw.nic.fujitsu.com (oym-nat-oym-m1.gw.nic.fujitsu.com [192.168.87.58]) by oym-r4.gw.nic.fujitsu.com (Postfix) with ESMTP id 9B5B0DDC63 for ; Tue, 23 May 2023 12:57:14 +0900 (JST) Received: from kws-ab4.gw.nic.fujitsu.com (kws-ab4.gw.nic.fujitsu.com [192.51.206.22]) by oym-m1.gw.nic.fujitsu.com (Postfix) with ESMTP id CE545D5010 for ; Tue, 23 May 2023 12:57:13 +0900 (JST) Received: from localhost.localdomain (unknown [10.167.226.45]) by kws-ab4.gw.nic.fujitsu.com (Postfix) with ESMTP id 3E92240FC2; Tue, 23 May 2023 12:57:13 +0900 (JST) From: Li Zhijian To: nvdimm@lists.linux.dev Cc: linux-cxl@vger.kernel.org, Li Zhijian Subject: [ndctl PATCH 2/2] README.md: document CXL unit tests Date: Tue, 23 May 2023 11:57:04 +0800 Message-Id: <20230523035704.826188-2-lizhijian@fujitsu.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230523035704.826188-1-lizhijian@fujitsu.com> References: <20230523035704.826188-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-27644.004 X-TM-AS-User-Approved-Sender: Yes X-TMASE-Version: IMSS-9.1.0.1417-9.0.1002-27644.004 X-TMASE-Result: 10--4.914400-10.000000 X-TMASE-MatchedRID: I8E55Gq38a7oRc6WqPysdk7nLUqYrlslFIuBIWrdOeNLjXXGQy6nlGNo keyvFnLM8BJmQCWBMFC4Dzk272eIPC01VXlcjcCUa87CDXaKRVI217sBakpdK5soi2XrUn/Jn6K dMrRsL14qtq5d3cxkNdp7S6pz2tVNuQgUUrAXVg/cfF98QxjS4ps/7s2bBGZ9qomCPfEtTyH1t1 JTTds9P4RbXLmQnDP1no2xRMzjw4jgk114yn08DBlPNqSHOjQGFcUQf3Yp/ridO0/GUi4gFb0fO PzpgdcEKeJ/HkAZ8Is= 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 --- README.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7c7cf0dd065d..521e2582fb05 100644 --- a/README.md +++ b/README.md @@ -39,8 +39,8 @@ https://nvdimm.wiki.kernel.org/start Unit Tests ========== -The unit tests run by `meson test` require the nfit_test.ko module to be -loaded. To build and install nfit_test.ko: +The unit tests run by `meson test` require the nfit_test.ko and cxl_test.ko modules to be +loaded. To build and install nfit_test.ko and cxl_test.ko: 1. Obtain the kernel source. For example, `git clone -b libnvdimm-for-next git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git` @@ -70,6 +70,13 @@ loaded. To build and install nfit_test.ko: CONFIG_NVDIMM_DAX=y CONFIG_DEV_DAX_PMEM=m CONFIG_ENCRYPTED_KEYS=y + 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_DEV_DAX_CXL=m ``` 1. Build and install the unit test enabled libnvdimm modules in the @@ -77,8 +84,14 @@ loaded. To build and install nfit_test.ko: the `depmod` that runs during the final `modules_install` ``` + # For nfit_test.ko make M=tools/testing/nvdimm sudo make M=tools/testing/nvdimm modules_install + + # For cxl_test.ko + make M=tools/testing/cxl + sudo make M=tools/testing/cxl modules_install + sudo make modules_install ```