Re: [External] Re: [PATCH v5 0/3] Enable Zicbom in usermode

2025-02-26 Thread yunhui cui
Hi Alex, On Tue, Feb 25, 2025 at 10:07 PM Alexandre Ghiti wrote: > > On Tue, Feb 25, 2025 at 2:27 PM yunhui cui wrote: > > > > Hi Alex, > > > > On Tue, Feb 25, 2025 at 9:21 PM Alexandre Ghiti > > wrote: > > > > > > Hi Yunhui,

[PATCH v7 1/3] RISC-V: Enable cbo.clean/flush in usermode

2025-02-25 Thread Yunhui Cui
Enabling cbo.clean and cbo.flush in user mode makes it more convenient to manage the cache state and achieve better performance. Reviewed-by: Andrew Jones Signed-off-by: Yunhui Cui --- arch/riscv/kernel/cpufeature.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel

[PATCH v7 0/3] Enable Zicbom in usermode

2025-02-25 Thread Yunhui Cui
. v5: 1. Modify the order of RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE in hwprobe.rst 2. "TEST_NO_ZICBOINVAL" -> "TEST_NO_CBO_INVAL" v6: Change hwprobe_ext0_has's second param to u64. v7: Rebase to the latest code of linux-next. Yunhui Cui (3): RISC-V: Enable cbo.clea

[PATCH v7 3/3] RISC-V: selftests: Add TEST_ZICBOM into CBO tests

2025-02-25 Thread Yunhui Cui
by: Samuel Holland Signed-off-by: Yunhui Cui --- tools/testing/selftests/riscv/hwprobe/cbo.c | 66 + 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/tools/testing/selftests/riscv/hwprobe/cbo.c b/tools/testing/selftests/riscv/hwprobe/cbo.c index a40541bb7c7d..5e

[PATCH v7 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-02-25 Thread Yunhui Cui
Expose Zicbom through hwprobe and also provide a key to extract its respective block size. Reviewed-by: Andrew Jones Reviewed-by: Samuel Holland Signed-off-by: Yunhui Cui --- Documentation/arch/riscv/hwprobe.rst | 6 ++ arch/riscv/include/asm/hwprobe.h | 2 +- arch/riscv/include

Re: [External] Re: [PATCH v5 0/3] Enable Zicbom in usermode

2025-02-25 Thread yunhui cui
Hi Alex, On Tue, Feb 25, 2025 at 9:21 PM Alexandre Ghiti wrote: > > Hi Yunhui, > > On Wed, Jan 15, 2025 at 3:40 AM Yunhui Cui wrote: > > > > v1/v2: > > There is only the first patch: RISC-V: Enable cbo.clean/flush in usermode, > > which mainly removes th

[PATCH v6 3/3] RISC-V: selftests: Add TEST_ZICBOM into CBO tests

2025-01-23 Thread Yunhui Cui
by: Samuel Holland Signed-off-by: Yunhui Cui --- tools/testing/selftests/riscv/hwprobe/cbo.c | 66 + 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/tools/testing/selftests/riscv/hwprobe/cbo.c b/tools/testing/selftests/riscv/hwprobe/cbo.c index a40541bb7c7d..5e

[PATCH v6 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-23 Thread Yunhui Cui
Expose Zicbom through hwprobe and also provide a key to extract its respective block size. Reviewed-by: Andrew Jones Reviewed-by: Samuel Holland Signed-off-by: Yunhui Cui --- Documentation/arch/riscv/hwprobe.rst | 6 ++ arch/riscv/include/asm/hwprobe.h | 2 +- arch/riscv/include

[PATCH v6 1/3] RISC-V: Enable cbo.clean/flush in usermode

2025-01-23 Thread Yunhui Cui
Enabling cbo.clean and cbo.flush in user mode makes it more convenient to manage the cache state and achieve better performance. Reviewed-by: Andrew Jones Signed-off-by: Yunhui Cui --- arch/riscv/kernel/cpufeature.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel

[PATCH v6 0/3] Enable Zicbom in usermode

2025-01-23 Thread Yunhui Cui
. v5: 1. Modify the order of RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE in hwprobe.rst 2. "TEST_NO_ZICBOINVAL" -> "TEST_NO_CBO_INVAL" v6: Change hwprobe_ext0_has's second param to u64. Yunhui Cui (3): RISC-V: Enable cbo.clean/flush in usermode RISC-V: hwprobe: Expose Zi

Re: [External] Re: [PATCH v5 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-23 Thread yunhui cui
Hi drew, On Tue, Jan 21, 2025 at 11:29 PM Andrew Jones wrote: > > On Wed, Jan 15, 2025 at 10:40:23AM +0800, Yunhui Cui wrote: > > Expose Zicbom through hwprobe and also provide a key to extract its > > respective block size. > > > > Signed-off-by: Yunhui Cui &

[PATCH v5 1/3] RISC-V: Enable cbo.clean/flush in usermode

2025-01-14 Thread Yunhui Cui
Enabling cbo.clean and cbo.flush in user mode makes it more convenient to manage the cache state and achieve better performance. Reviewed-by: Andrew Jones Signed-off-by: Yunhui Cui --- arch/riscv/kernel/cpufeature.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel

[PATCH v5 3/3] RISC-V: selftests: Add TEST_ZICBOM into CBO tests

2025-01-14 Thread Yunhui Cui
by: Samuel Holland Signed-off-by: Yunhui Cui --- tools/testing/selftests/riscv/hwprobe/cbo.c | 66 + 1 file changed, 55 insertions(+), 11 deletions(-) diff --git a/tools/testing/selftests/riscv/hwprobe/cbo.c b/tools/testing/selftests/riscv/hwprobe/cbo.c index a40541bb7c7d..5e

[PATCH v5 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-14 Thread Yunhui Cui
Expose Zicbom through hwprobe and also provide a key to extract its respective block size. Signed-off-by: Yunhui Cui --- Documentation/arch/riscv/hwprobe.rst | 6 ++ arch/riscv/include/asm/hwprobe.h | 2 +- arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ arch/riscv/kernel/sys_hwprobe.c

[PATCH v5 0/3] Enable Zicbom in usermode

2025-01-14 Thread Yunhui Cui
. v5: 1. Modify the order of RISCV_HWPROBE_KEY_ZICBOM_BLOCK_SIZE in hwprobe.rst 2. "TEST_NO_ZICBOINVAL" -> "TEST_NO_CBO_INVAL" Yunhui Cui (3): RISC-V: Enable cbo.clean/flush in usermode RISC-V: hwprobe: Expose Zicbom extension and its block size RISC-V: selftests: A

Re: [External] Re: [PATCH v4 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-14 Thread yunhui cui
Hi Samuel, On Tue, Jan 14, 2025 at 1:28 PM Samuel Holland wrote: > > Hi Yunhui, > > On 2025-01-13 8:19 PM, Yunhui Cui wrote: > > Expose Zicbom through hwprobe and also provide a key to extract its > > respective block size. > > > > Signed-off-by: Yunhui Cui &

[PATCH v4 3/3] RISC-V: selftests: Add TEST_ZICBOM into CBO tests

2025-01-13 Thread Yunhui Cui
Add test for Zicbom and its block size into CBO tests, when Zicbom is present, test that cbo.clean/flush may be issued and works. As the software can't verify the clean/flush functions, we just judged that cbo.clean/flush isn't executed illegally. Signed-off-by: Yunhui Cui --- too

[PATCH v4 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-13 Thread Yunhui Cui
Expose Zicbom through hwprobe and also provide a key to extract its respective block size. Signed-off-by: Yunhui Cui --- Documentation/arch/riscv/hwprobe.rst | 6 ++ arch/riscv/include/asm/hwprobe.h | 2 +- arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ arch/riscv/kernel/sys_hwprobe.c

[PATCH v4 1/3] RISC-V: Enable cbo.clean/flush in usermode

2025-01-13 Thread Yunhui Cui
Enabling cbo.clean and cbo.flush in user mode makes it more convenient to manage the cache state and achieve better performance. Reviewed-by: Andrew Jones Signed-off-by: Yunhui Cui --- arch/riscv/kernel/cpufeature.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel

[PATCH v4 0/3] Enable Zicbom in usermode

2025-01-13 Thread Yunhui Cui
. Yunhui Cui (3): RISC-V: Enable cbo.clean/flush in usermode RISC-V: hwprobe: Expose Zicbom extension and its block size RISC-V: selftests: Add TEST_ZICBOM into CBO tests Documentation/arch/riscv/hwprobe.rst| 6 ++ arch/riscv/include/asm/hwprobe.h| 2 +- arch/riscv

Re: [External] Re: [PATCH v3 3/3] RISC-V: selftests: Add TEST_ZICBOM into CBO tests

2025-01-13 Thread yunhui cui
Hi drew, On Mon, Jan 13, 2025 at 5:18 PM Andrew Jones wrote: > > On Mon, Jan 13, 2025 at 04:36:35PM +0800, Yunhui Cui wrote: > > Add test for Zicbom and its block size into CBO tests, when > > Zicbom is present, test that cbo.clean/flush may be issued and works. > > As t

Re: [External] Re: [PATCH v3 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-13 Thread yunhui cui
Hi drew, On Mon, Jan 13, 2025 at 5:07 PM Andrew Jones wrote: > > On Mon, Jan 13, 2025 at 04:36:34PM +0800, Yunhui Cui wrote: > > Expose Zicbom through hwprobe and also provide a key to extract its > > respective block size. > > > > Signed-off-by: Yunhui Cui > &g

[PATCH v3 3/3] RISC-V: selftests: Add TEST_ZICBOM into CBO tests

2025-01-13 Thread Yunhui Cui
Add test for Zicbom and its block size into CBO tests, when Zicbom is present, test that cbo.clean/flush may be issued and works. As the software can't verify the clean/flush functions, we just judged that cbo.clean/flush isn't executed illegally. Signed-off-by: Yunhui Cui --- too

[PATCH v3 2/3] RISC-V: hwprobe: Expose Zicbom extension and its block size

2025-01-13 Thread Yunhui Cui
Expose Zicbom through hwprobe and also provide a key to extract its respective block size. Signed-off-by: Yunhui Cui --- Documentation/arch/riscv/hwprobe.rst | 6 ++ arch/riscv/include/asm/hwprobe.h | 2 +- arch/riscv/include/uapi/asm/hwprobe.h | 2 ++ arch/riscv/kernel/sys_hwprobe.c

[PATCH v3 1/3] RISC-V: Enable cbo.clean/flush in usermode

2025-01-13 Thread Yunhui Cui
Enabling cbo.clean and cbo.flush in user mode makes it more convenient to manage the cache state and achieve better performance. Reviewed-by: Andrew Jones Signed-off-by: Yunhui Cui --- arch/riscv/kernel/cpufeature.c | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/kernel