Re: [PATCH v6 17/17] powerpc64/bpf: Add support for bpf trampolines

2024-10-27 Thread Michael Ellerman
Hari Bathini writes: > From: Naveen N Rao > > Add support for bpf_arch_text_poke() and arch_prepare_bpf_trampoline() > for 64-bit powerpc. While the code is generic, BPF trampolines are only > enabled on 64-bit powerpc. 32-bit powerpc will need testing and some > updates. Hi Hari, This is break

Re: [PATCH v2 04/18] crypto: crc32 - don't unnecessarily register arch algorithms

2024-10-27 Thread Ard Biesheuvel
On Sat, 26 Oct 2024 at 06:10, Eric Biggers wrote: > > On Fri, Oct 25, 2024 at 10:02:39PM +, Eric Biggers wrote: > > On Fri, Oct 25, 2024 at 10:47:15PM +0200, Ard Biesheuvel wrote: > > > On Fri, 25 Oct 2024 at 21:15, Eric Biggers wrote: > > > > > > > > From: Eric Biggers > > > > > > > > Inste

Re: [PATCH net-next] net: freescale: use ethtool string helpers

2024-10-27 Thread Rosen Penev
On Sun, Oct 27, 2024 at 7:32 PM Michael Ellerman wrote: > > Rosen Penev writes: > > On Fri, Oct 25, 2024 at 5:57 AM Simon Horman wrote: > >> > >> On Thu, Oct 24, 2024 at 01:52:57PM -0700, Rosen Penev wrote: > >> > The latter is the preferred way to copy ethtool strings. > >> > > >> > Avoids manu

Re: [PATCH] powerpc: Use str_enabled_disabled() helper function

2024-10-27 Thread IBM
Thorsten Blum writes: > Remove hard-coded strings by using the str_enabled_disabled() helper > function. > Looks like now a days LKP also reports this - e.g. [1] "opportunity for str_enabled_disabled(enable)" [1]: https://lore.kernel.org/all/202410071601.tfpxoqgw-...@intel.com/ I see more su

Re: [PATCH 10/12] fs/dax: Properly refcount fs dax pages

2024-10-27 Thread Alistair Popple
Dan Williams writes: > Alistair Popple wrote: > [..] >>> I'm not really following this scenario, or at least how it relates to >> >> the comment above. If the page is pinned for DMA it will have taken a >> >> refcount on it and so the page won't be considered free/idle per >> >> dax_wait_page_i

Re: [PATCH v5 17/17] powerpc64/bpf: Add support for bpf trampolines

2024-10-27 Thread Michael Ellerman
Hari Bathini writes: > On 10/10/24 3:09 pm, Hari Bathini wrote: >> On 10/10/24 5:48 am, Michael Ellerman wrote: >>> Alexei Starovoitov writes: On Tue, Oct 1, 2024 at 12:18 AM Hari Bathini wrote: > On 30/09/24 6:25 pm, Alexei Starovoitov wrote: >> On Sun, Sep 29, 2024 at 10:33 

Re: [PATCH v6 11/17] kbuild: Add generic hook for architectures to use before the final vmlinux link

2024-10-27 Thread Masahiro Yamada
On Sat, Oct 19, 2024 at 2:37 AM Hari Bathini wrote: > > From: Naveen N Rao > > On powerpc, we would like to be able to make a pass on vmlinux.o and > generate a new object file to be linked into vmlinux. Add a generic pass > in Makefile.vmlinux that architectures can use for this purpose. > > Arc

Re: [PATCH v6 13/17] powerpc64/ftrace: Support .text larger than 32MB with out-of-line stubs

2024-10-27 Thread Masahiro Yamada
On Sat, Oct 19, 2024 at 2:38 AM Hari Bathini wrote: > > From: Naveen N Rao > > We are restricted to a .text size of ~32MB when using out-of-line > function profile sequence. Allow this to be extended up to the previous > limit of ~64MB by reserving space in the middle of .text. > > A new config o

Re: [PATCH v6 12/17] powerpc64/ftrace: Move ftrace sequence out of line

2024-10-27 Thread Masahiro Yamada
On Sat, Oct 19, 2024 at 2:38 AM Hari Bathini wrote: > > From: Naveen N Rao > > Function profile sequence on powerpc includes two instructions at the > beginning of each function: > mflrr0 > bl ftrace_caller > > The call to ftrace_caller() gets nop'ed out during kernel boo

[PATCH] powerpc: Use str_enabled_disabled() helper function

2024-10-27 Thread Thorsten Blum
Remove hard-coded strings by using the str_enabled_disabled() helper function. Signed-off-by: Thorsten Blum --- arch/powerpc/kernel/secure_boot.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/secure_boot.c b/arch/powerpc/kernel/secure_boot.c index

Re: [PATCH net-next] net: freescale: use ethtool string helpers

2024-10-27 Thread Michael Ellerman
Rosen Penev writes: > On Fri, Oct 25, 2024 at 5:57 AM Simon Horman wrote: >> >> On Thu, Oct 24, 2024 at 01:52:57PM -0700, Rosen Penev wrote: >> > The latter is the preferred way to copy ethtool strings. >> > >> > Avoids manually incrementing the pointer. Cleans up the code quite well. >> > >> > S