public inbox for bpf@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
@ 2025-09-04 10:51 Hengqi Chen
  2025-09-05  1:55 ` Pu Lehui
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Hengqi Chen @ 2025-09-04 10:51 UTC (permalink / raw)
  To: ast, daniel, andrii, martin.lau, bjorn, pulehui, puranjay
  Cc: bpf, linux-riscv, Hengqi Chen

The bpf_flush_icache() is done by bpf_arch_text_copy() already.
Remove the duplicated one in arch_prepare_bpf_trampoline().

Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
---
 arch/riscv/net/bpf_jit_comp64.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c
index c7ae4d0a8361..3fcc011c6be4 100644
--- a/arch/riscv/net/bpf_jit_comp64.c
+++ b/arch/riscv/net/bpf_jit_comp64.c
@@ -1305,7 +1305,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
 		goto out;
 	}
 
-	bpf_flush_icache(ro_image, ro_image_end);
 out:
 	kvfree(image);
 	return ret < 0 ? ret : size;
-- 
2.45.2


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

* Re: [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
  2025-09-04 10:51 [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache() Hengqi Chen
@ 2025-09-05  1:55 ` Pu Lehui
  2025-09-15 11:30 ` patchwork-bot+netdevbpf
  2025-10-09  1:06 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 4+ messages in thread
From: Pu Lehui @ 2025-09-05  1:55 UTC (permalink / raw)
  To: Hengqi Chen, ast, daniel, andrii, martin.lau, bjorn, puranjay
  Cc: bpf, linux-riscv


On 2025/9/4 18:51, Hengqi Chen wrote:
> The bpf_flush_icache() is done by bpf_arch_text_copy() already.
> Remove the duplicated one in arch_prepare_bpf_trampoline().
> 
> Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
> ---
>   arch/riscv/net/bpf_jit_comp64.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/arch/riscv/net/bpf_jit_comp64.c b/arch/riscv/net/bpf_jit_comp64.c
> index c7ae4d0a8361..3fcc011c6be4 100644
> --- a/arch/riscv/net/bpf_jit_comp64.c
> +++ b/arch/riscv/net/bpf_jit_comp64.c
> @@ -1305,7 +1305,6 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *ro_image,
>   		goto out;
>   	}
>   
> -	bpf_flush_icache(ro_image, ro_image_end);
>   out:
>   	kvfree(image);
>   	return ret < 0 ? ret : size;

Reviewed-by: Pu Lehui <pulehui@huawei.com>

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

* Re: [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
  2025-09-04 10:51 [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache() Hengqi Chen
  2025-09-05  1:55 ` Pu Lehui
@ 2025-09-15 11:30 ` patchwork-bot+netdevbpf
  2025-10-09  1:06 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-09-15 11:30 UTC (permalink / raw)
  To: Hengqi Chen
  Cc: ast, daniel, andrii, martin.lau, bjorn, pulehui, puranjay, bpf,
	linux-riscv

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Daniel Borkmann <daniel@iogearbox.net>:

On Thu,  4 Sep 2025 10:51:18 +0000 you wrote:
> The bpf_flush_icache() is done by bpf_arch_text_copy() already.
> Remove the duplicated one in arch_prepare_bpf_trampoline().
> 
> Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
> ---
>  arch/riscv/net/bpf_jit_comp64.c | 1 -
>  1 file changed, 1 deletion(-)

Here is the summary with links:
  - [bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
    https://git.kernel.org/bpf/bpf-next/c/6798668ab195

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

* Re: [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
  2025-09-04 10:51 [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache() Hengqi Chen
  2025-09-05  1:55 ` Pu Lehui
  2025-09-15 11:30 ` patchwork-bot+netdevbpf
@ 2025-10-09  1:06 ` patchwork-bot+linux-riscv
  2 siblings, 0 replies; 4+ messages in thread
From: patchwork-bot+linux-riscv @ 2025-10-09  1:06 UTC (permalink / raw)
  To: Hengqi Chen
  Cc: linux-riscv, ast, daniel, andrii, martin.lau, bjorn, pulehui,
	puranjay, bpf

Hello:

This patch was applied to riscv/linux.git (for-next)
by Daniel Borkmann <daniel@iogearbox.net>:

On Thu,  4 Sep 2025 10:51:18 +0000 you wrote:
> The bpf_flush_icache() is done by bpf_arch_text_copy() already.
> Remove the duplicated one in arch_prepare_bpf_trampoline().
> 
> Signed-off-by: Hengqi Chen <hengqi.chen@gmail.com>
> ---
>  arch/riscv/net/bpf_jit_comp64.c | 1 -
>  1 file changed, 1 deletion(-)

Here is the summary with links:
  - [bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache()
    https://git.kernel.org/riscv/c/6798668ab195

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2025-10-09  1:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-04 10:51 [PATCH bpf-next] riscv, bpf: Remove duplicated bpf_flush_icache() Hengqi Chen
2025-09-05  1:55 ` Pu Lehui
2025-09-15 11:30 ` patchwork-bot+netdevbpf
2025-10-09  1:06 ` patchwork-bot+linux-riscv

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox