All of lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list
@ 2023-05-23  3:57 Li Zhijian
  2023-05-23  3:57 ` [ndctl PATCH 2/2] README.md: document CXL unit tests Li Zhijian
  2023-05-25 15:29 ` [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Dave Jiang
  0 siblings, 2 replies; 7+ messages in thread
From: Li Zhijian @ 2023-05-23  3:57 UTC (permalink / raw)
  To: nvdimm; +Cc: linux-cxl, Li Zhijian

Any change and question relevant to should also CC to the CXL mailing
list.

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
---
 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.
 
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [ndctl PATCH 2/2] README.md: document CXL unit tests
  2023-05-23  3:57 [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Li Zhijian
@ 2023-05-23  3:57 ` Li Zhijian
  2023-05-25 15:28   ` Dave Jiang
  2023-05-25 15:29 ` [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Dave Jiang
  1 sibling, 1 reply; 7+ messages in thread
From: Li Zhijian @ 2023-05-23  3:57 UTC (permalink / raw)
  To: nvdimm; +Cc: linux-cxl, Li Zhijian

It requires some CLX specific kconfigs and testing purpose module

Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
---
 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
    ```
 
-- 
2.29.2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [ndctl PATCH 2/2] README.md: document CXL unit tests
  2023-05-23  3:57 ` [ndctl PATCH 2/2] README.md: document CXL unit tests Li Zhijian
@ 2023-05-25 15:28   ` Dave Jiang
  2023-05-26  4:01     ` Zhijian Li (Fujitsu)
  0 siblings, 1 reply; 7+ messages in thread
From: Dave Jiang @ 2023-05-25 15:28 UTC (permalink / raw)
  To: Li Zhijian, nvdimm; +Cc: linux-cxl


On 5/22/23 20:57, Li Zhijian wrote:
> It requires some CLX specific kconfigs and testing purpose module
>
> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
> ---
>   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

Probably should have a separate entry for CXL configs for testing. 
There's a cxl.git at kernel.org as well.

Also will need:

CONFIG_NVDIMM_SECURITY_TEST=y

CONFIG_CXL_REGION_INVALIDATION_TEST=y



>      ```
>   
>   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
>      ```
>   

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list
  2023-05-23  3:57 [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Li Zhijian
  2023-05-23  3:57 ` [ndctl PATCH 2/2] README.md: document CXL unit tests Li Zhijian
@ 2023-05-25 15:29 ` Dave Jiang
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Jiang @ 2023-05-25 15:29 UTC (permalink / raw)
  To: Li Zhijian, nvdimm; +Cc: linux-cxl


On 5/22/23 20:57, Li Zhijian wrote:
> Any change and question relevant to should also CC to the CXL mailing
> list.
>
> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>

Reviewed-by: Dave Jiang <dave.jiang@intel.com>

Thank you for sending this Zhijian!


> ---
>   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.
>   

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ndctl PATCH 2/2] README.md: document CXL unit tests
  2023-05-25 15:28   ` Dave Jiang
@ 2023-05-26  4:01     ` Zhijian Li (Fujitsu)
  2023-05-26  4:21       ` Zhijian Li (Fujitsu)
  2023-05-30 21:38       ` Dave Jiang
  0 siblings, 2 replies; 7+ messages in thread
From: Zhijian Li (Fujitsu) @ 2023-05-26  4:01 UTC (permalink / raw)
  To: Dave Jiang, nvdimm; +Cc: linux-cxl



On 25/05/2023 23:28, Dave Jiang wrote:
> 
> On 5/22/23 20:57, Li Zhijian wrote:
>> It requires some CLX specific kconfigs and testing purpose module
>>
>> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
>> ---
>>   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
> 
> Probably should have a separate entry for CXL configs for testing. There's a cxl.git at kernel.org as well.
> 
> Also will need:
> 
> CONFIG_NVDIMM_SECURITY_TEST=y
> 

I also noticed that Yi have sent a patch to add this and some other kconfigs
https://lore.kernel.org/nvdimm/20230516121730.2561605-1-yi.zhang@redhat.com/T/#u

> CONFIG_CXL_REGION_INVALIDATION_TEST=y

Yes, i indeed missed it.

I insert a section before *run the test* as below. A markdown preview of README.md
Please take another look.

diff --git a/README.md b/README.md
index 7c7cf0dd065d..324d179ac4ea 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 properly, 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
+   ```For 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.


> 
> 
> 
>>      ```
>>   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
>>      ```

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [ndctl PATCH 2/2] README.md: document CXL unit tests
  2023-05-26  4:01     ` Zhijian Li (Fujitsu)
@ 2023-05-26  4:21       ` Zhijian Li (Fujitsu)
  2023-05-30 21:38       ` Dave Jiang
  1 sibling, 0 replies; 7+ messages in thread
From: Zhijian Li (Fujitsu) @ 2023-05-26  4:21 UTC (permalink / raw)
  To: Dave Jiang, nvdimm; +Cc: linux-cxl



On 26/05/2023 12:01, Zhijian Li (Fujitsu) wrote:
> 
> 
> On 25/05/2023 23:28, Dave Jiang wrote:
>>
>> On 5/22/23 20:57, Li Zhijian wrote:
>>> It requires some CLX specific kconfigs and testing purpose module
>>>
>>> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
>>> ---
>>>    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
>>
>> Probably should have a separate entry for CXL configs for testing. There's a cxl.git at kernel.org as well.
>>
>> Also will need:
>>
>> CONFIG_NVDIMM_SECURITY_TEST=y
>>
> 
> I also noticed that Yi have sent a patch to add this and some other kconfigs
> https://lore.kernel.org/nvdimm/20230516121730.2561605-1-yi.zhang@redhat.com/T/#u
> 
>> CONFIG_CXL_REGION_INVALIDATION_TEST=y
> 
> Yes, i indeed missed it.
> 
> I insert a section before *run the test* as below. A markdown preview of README.md 


Attach the README preview link: https://github.com/zhijianli88/ndctl/blob/cxl/README.md



> Please take another look.
> 
> diff --git a/README.md b/README.md
> index 7c7cf0dd065d..324d179ac4ea 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 properly, 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
> +   ```For 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.
> 
> 
>>
>>
>>
>>>       ```
>>>    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
>>>       ```

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [ndctl PATCH 2/2] README.md: document CXL unit tests
  2023-05-26  4:01     ` Zhijian Li (Fujitsu)
  2023-05-26  4:21       ` Zhijian Li (Fujitsu)
@ 2023-05-30 21:38       ` Dave Jiang
  1 sibling, 0 replies; 7+ messages in thread
From: Dave Jiang @ 2023-05-30 21:38 UTC (permalink / raw)
  To: Zhijian Li (Fujitsu), nvdimm; +Cc: linux-cxl


On 5/25/23 21:01, Zhijian Li (Fujitsu) wrote:
>
> On 25/05/2023 23:28, Dave Jiang wrote:
>> On 5/22/23 20:57, Li Zhijian wrote:
>>> It requires some CLX specific kconfigs and testing purpose module
>>>
>>> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
>>> ---
>>>    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
>> Probably should have a separate entry for CXL configs for testing. There's a cxl.git at kernel.org as well.
>>
>> Also will need:
>>
>> CONFIG_NVDIMM_SECURITY_TEST=y
>>
> I also noticed that Yi have sent a patch to add this and some other kconfigs
> https://lore.kernel.org/nvdimm/20230516121730.2561605-1-yi.zhang@redhat.com/T/#u
>
>> CONFIG_CXL_REGION_INVALIDATION_TEST=y
> Yes, i indeed missed it.
>
> I insert a section before *run the test* as below. A markdown preview of README.md
> Please take another look.
>
> diff --git a/README.md b/README.md
> index 7c7cf0dd065d..324d179ac4ea 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 properly, 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
> +   ```For 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.


LGTM


>
>
>>
>>
>>>       ```
>>>    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
>>>       ```

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-05-30 21:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-23  3:57 [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Li Zhijian
2023-05-23  3:57 ` [ndctl PATCH 2/2] README.md: document CXL unit tests Li Zhijian
2023-05-25 15:28   ` Dave Jiang
2023-05-26  4:01     ` Zhijian Li (Fujitsu)
2023-05-26  4:21       ` Zhijian Li (Fujitsu)
2023-05-30 21:38       ` Dave Jiang
2023-05-25 15:29 ` [ndctl PATCH 1/2] CONTRIBUTING.md: document cxl mailing list Dave Jiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.