* [PATCH] test: add cxl region test template
@ 2024-09-09 9:19 luzhixing12345
2024-09-09 15:54 ` Dave Jiang
0 siblings, 1 reply; 2+ messages in thread
From: luzhixing12345 @ 2024-09-09 9:19 UTC (permalink / raw)
To: linux-cxl
Cc: luzhixing12345, Davidlohr Bueso, Jonathan Cameron, Dave Jiang,
Alison Schofield, Vishal Verma, Ira Weiny, Dan Williams,
open list
CXL2.0 support dynamic provisioning of new memory region,
add cxl region test template
Signed-off-by: luzhixing12345 <luzhixing12345@gmail.com>
---
MAINTAINERS | 1 +
tools/testing/cxl/Kbuild | 6 ++++++
tools/testing/cxl/cxl_region_test.c | 6 ++++++
tools/testing/cxl/test/cxl.c | 1 +
4 files changed, 14 insertions(+)
create mode 100644 tools/testing/cxl/cxl_region_test.c
diff --git a/MAINTAINERS b/MAINTAINERS
index 10430778c998..708407d34584 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -5616,6 +5616,7 @@ M: Alison Schofield <alison.schofield@intel.com>
M: Vishal Verma <vishal.l.verma@intel.com>
M: Ira Weiny <ira.weiny@intel.com>
M: Dan Williams <dan.j.williams@intel.com>
+M: luzhixing12345 <luzhixing12345@gmail.com>
L: linux-cxl@vger.kernel.org
S: Maintained
F: Documentation/driver-api/cxl
diff --git a/tools/testing/cxl/Kbuild b/tools/testing/cxl/Kbuild
index 3d1ca9e38b1f..8b430274a1ad 100644
--- a/tools/testing/cxl/Kbuild
+++ b/tools/testing/cxl/Kbuild
@@ -67,6 +67,12 @@ cxl_core-y += config_check.o
cxl_core-y += cxl_core_test.o
cxl_core-y += cxl_core_exports.o
+obj-m += cxl_region.o
+
+cxl_region-y += $(CXL_CORE_SRC)/region.o
+cxl_region-y += config_check.o
+cxl_region-y += cxl_region_test.o
+
KBUILD_CFLAGS := $(filter-out -Wmissing-prototypes -Wmissing-declarations, $(KBUILD_CFLAGS))
obj-m += test/
diff --git a/tools/testing/cxl/cxl_region_test.c b/tools/testing/cxl/cxl_region_test.c
new file mode 100644
index 000000000000..c5859a96e35b
--- /dev/null
+++ b/tools/testing/cxl/cxl_region_test.c
@@ -0,0 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright(c) 2022 Intel Corporation. All rights reserved. */
+
+#include "watermark.h"
+
+cxl_test_watermark(cxl_region);
diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c
index 90d5afd52dd0..320aaed2df17 100644
--- a/tools/testing/cxl/test/cxl.c
+++ b/tools/testing/cxl/test/cxl.c
@@ -1304,6 +1304,7 @@ static __init int cxl_test_init(void)
cxl_mem_test();
cxl_pmem_test();
cxl_port_test();
+ cxl_region_test();
register_cxl_mock_ops(&cxl_mock_ops);
--
2.34.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] test: add cxl region test template
2024-09-09 9:19 [PATCH] test: add cxl region test template luzhixing12345
@ 2024-09-09 15:54 ` Dave Jiang
0 siblings, 0 replies; 2+ messages in thread
From: Dave Jiang @ 2024-09-09 15:54 UTC (permalink / raw)
To: luzhixing12345, linux-cxl
Cc: Davidlohr Bueso, Jonathan Cameron, Alison Schofield,
Vishal Verma, Ira Weiny, Dan Williams, open list
On 9/9/24 2:19 AM, luzhixing12345 wrote:
> CXL2.0 support dynamic provisioning of new memory region,
> add cxl region test template
>
> Signed-off-by: luzhixing12345 <luzhixing12345@gmail.com>
> ---
> MAINTAINERS | 1 +
> tools/testing/cxl/Kbuild | 6 ++++++
> tools/testing/cxl/cxl_region_test.c | 6 ++++++
> tools/testing/cxl/test/cxl.c | 1 +
> 4 files changed, 14 insertions(+)
> create mode 100644 tools/testing/cxl/cxl_region_test.c
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 10430778c998..708407d34584 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -5616,6 +5616,7 @@ M: Alison Schofield <alison.schofield@intel.com>
> M: Vishal Verma <vishal.l.verma@intel.com>
> M: Ira Weiny <ira.weiny@intel.com>
> M: Dan Williams <dan.j.williams@intel.com>
> +M: luzhixing12345 <luzhixing12345@gmail.com>
lol NAK nice try
> L: linux-cxl@vger.kernel.org
> S: Maintained
> F: Documentation/driver-api/cxl
> diff --git a/tools/testing/cxl/Kbuild b/tools/testing/cxl/Kbuild
> index 3d1ca9e38b1f..8b430274a1ad 100644
> --- a/tools/testing/cxl/Kbuild
> +++ b/tools/testing/cxl/Kbuild
> @@ -67,6 +67,12 @@ cxl_core-y += config_check.o
> cxl_core-y += cxl_core_test.o
> cxl_core-y += cxl_core_exports.o
>
> +obj-m += cxl_region.o
> +
> +cxl_region-y += $(CXL_CORE_SRC)/region.o
> +cxl_region-y += config_check.o
> +cxl_region-y += cxl_region_test.o
> +
> KBUILD_CFLAGS := $(filter-out -Wmissing-prototypes -Wmissing-declarations, $(KBUILD_CFLAGS))
>
> obj-m += test/
> diff --git a/tools/testing/cxl/cxl_region_test.c b/tools/testing/cxl/cxl_region_test.c
> new file mode 100644
> index 000000000000..c5859a96e35b
> --- /dev/null
> +++ b/tools/testing/cxl/cxl_region_test.c
> @@ -0,0 +1,6 @@
> +// SPDX-License-Identifier: GPL-2.0
> +/* Copyright(c) 2022 Intel Corporation. All rights reserved. */
> +
> +#include "watermark.h"
> +
> +cxl_test_watermark(cxl_region);
> diff --git a/tools/testing/cxl/test/cxl.c b/tools/testing/cxl/test/cxl.c
> index 90d5afd52dd0..320aaed2df17 100644
> --- a/tools/testing/cxl/test/cxl.c
> +++ b/tools/testing/cxl/test/cxl.c
> @@ -1304,6 +1304,7 @@ static __init int cxl_test_init(void)
> cxl_mem_test();
> cxl_pmem_test();
> cxl_port_test();
> + cxl_region_test();
>
> register_cxl_mock_ops(&cxl_mock_ops);
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-09-09 15:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-09 9:19 [PATCH] test: add cxl region test template luzhixing12345
2024-09-09 15:54 ` Dave Jiang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®