[PATCH bpf-next 11/11] bpf: Fall back to nospec for spec path verification

2025-03-14 Thread Luis Gerhorst
This trades verification complexity for runtime overheads due to the nospec inserted because of the EINVAL. With increased limits this allows applying mitigations to large BPF progs such as the Parca Continuous Profiler's prog. However, this requires a jump-seq limit of 256k. In any case, the same

Re: [PATCH v4 4/4] dt-bindings: memory-controllers: Convert fsl,elbc to YAML

2025-03-14 Thread Rob Herring (Arm)
On Thu, 13 Mar 2025 22:35:47 +0100, J. Neuschäfer wrote: > Convert the Freescale localbus controller bindings from text form to > YAML. Compared to the .txt version, the YAML binding contains a new > usage example with FCM NAND flash, and a full list of compatible strings > based on current usage

[PATCH v2 0/6] powerpc: use lock guards for mutex Set 1

2025-03-14 Thread Shrikanth Hegde
This is an effort to make the code simpler by making use of lock guards which were introduced in [1], which works by using __cleanup attributes. More details in v1 cover letter This series aims mainly at simplifying code around mutex with goto statements. If it makes sense, there are more code si

[PATCH v2 5/6] powerpc: powernv: ocxl: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by: Shrikanth Hegde --- arch/powerpc/platforms/p

[PATCH v2 1/6] powerpc: eeh: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by: Shrikanth Hegde --- arch/powerpc/kernel/eeh.

Re: [PATCH v2 09/13] arch, mm: set max_mapnr when allocating memory map for FLATMEM

2025-03-14 Thread Christophe Leroy
Le 13/03/2025 à 14:49, Mike Rapoport a écrit : From: "Mike Rapoport (Microsoft)" max_mapnr is essentially the size of the memory map for systems that use FLATMEM. There is no reason to calculate it in each and every architecture when it's anyway calculated in alloc_node_mem_map(). Drop sett

Re: [PATCH 5/6] powerpc: powenv: oxcl: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
On 3/14/25 11:15, Shrikanth Hegde wrote: use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by:

[PATCH v2] powerpc/boot: Fix build with gcc 15

2025-03-14 Thread Michal Suchanek
Similar to x86 the ppc boot code does not build with GCC 15. Copy the fix from commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15") Signed-off-by: Michal Suchanek --- v2: Move the fix outside of ifdef to apply to all subarchitectures --- arch/powerpc/boot/Makefile | 2 ++

[PATCH v4 05/14] drm: Suppress intentional warning backtraces in scaling unit tests

2025-03-14 Thread Alessandro Carminati
From: Guenter Roeck The drm_test_rect_calc_hscale and drm_test_rect_calc_vscale unit tests intentionally trigger warning backtraces by providing bad parameters to the tested functions. What is tested is the return value, not the existence of a warning backtrace. Suppress the backtraces to avoid c

[PATCH 27/41] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers

2025-03-14 Thread Thomas Huth
While the GCC and Clang compilers already define __ASSEMBLER__ automatically when compiling assembly code, __ASSEMBLY__ is a macro that only gets defined by the Makefiles in the kernel. This can be very confusing when switching between userspace and kernelspace coding, or when dealing with uapi hea

[PATCH 26/41] powerpc: Replace __ASSEMBLY__ with __ASSEMBLER__ in uapi headers

2025-03-14 Thread Thomas Huth
__ASSEMBLY__ is only defined by the Makefile of the kernel, so this is not really useful for uapi headers (unless the userspace Makefile defines it, too). Let's switch to __ASSEMBLER__ which gets set automatically by the compiler when compiling assembly code. This is a completely mechanical patch

[PATCH v2 3/6] powerpc: fadump: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
use scoped_guard for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by: Shrikanth Hegde --- arch/powerpc/kernel/fadu

[PATCH v2 2/6] powerpc: rtas: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by: Shrikanth Hegde --- arch/powerpc/kernel/rtas

Re: [PATCH 5/6] powerpc: powenv: oxcl: use lock guard for mutex

2025-03-14 Thread Andrew Donnellan
On Fri, 2025-03-14 at 11:15 +0530, Shrikanth Hegde wrote: > use guard(mutex) for scope based resource management of mutex. > This would make the code simpler and easier to maintain. > > More details on lock guards can be found at > https://lore.kernel.org/all/20230612093537.614161...@infradead.org

[PATCH v2 6/6] powerpc: sysdev: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
use guard(mutex) for scope based resource management of mutex This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.614161...@infradead.org/T/#u Signed-off-by: Shrikanth Hegde --- arch/powerpc/sysdev/fsl_m

Re: [PATCH 5/6] powerpc: powenv: oxcl: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
On 3/14/25 15:00, Shrikanth Hegde wrote: On 3/14/25 11:15, Shrikanth Hegde wrote: use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org/all/20230612093537.6

Re: [PATCH v4 net-next 01/14] net: enetc: add initial netc-lib driver to support NTMP

2025-03-14 Thread Vladimir Oltean
On Fri, Mar 14, 2025 at 05:38:18AM +0200, Wei Fang wrote: > > > + __le16 update_act; > > > + u8 dbg_opt; > > > + u8 tblv_qact; > > > +#define NTMP_QUERY_ACT GENMASK(3, 0) > > > +#define NTMP_TBL_VER GENMASK(7, 0) > > > +#define NTMP_TBLV_QACT(v, a) (FIELD_PREP(NTMP_TBL_VER

Re: [PATCH 3/6] powerpc: fadump: use lock guard for mutex

2025-03-14 Thread Peter Zijlstra
On Fri, Mar 14, 2025 at 11:15:41AM +0530, Shrikanth Hegde wrote: > use guard(mutex) for scope based resource management of mutex. > This would make the code simpler and easier to maintain. > > More details on lock guards can be found at > https://lore.kernel.org/all/20230612093537.614161...@infrad

RE: [PATCH v4 net-next 01/14] net: enetc: add initial netc-lib driver to support NTMP

2025-03-14 Thread Wei Fang
Best Regards, Wei Fang > -Original Message- > From: Vladimir Oltean > On Fri, Mar 14, 2025 at 05:38:18AM +0200, Wei Fang wrote: > > > > + __le16 update_act; > > > > + u8 dbg_opt; > > > > + u8 tblv_qact; > > > > +#define NTMP_QUERY_ACT GENMASK(3, 0) > > > > +#d

[PATCH 3/9] powerpc/pseries/htmdump: Add htm start support to htmdump module

2025-03-14 Thread Athira Rajeev
Support starting of Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmstart". The interface allows starting of htm via this file by writing value "1". Also allows stopping of htm tracing by writing value "0" to this fil

[PATCH 1/9] powerpc/pseries/htmdump: Add htm_hcall_wrapper to integrate other htm operations

2025-03-14 Thread Athira Rajeev
H_HTM (Hardware Trace Macro) hypervisor call is an HCALL to export data from Hardware Trace Macro (HTM) function. The debugfs interface to export the HTM function data in an lpar currently supports only dumping of HTM data in an lpar. To add support for setup, configuration and control of HTM funct

[PATCH 4/9] powerpc/pseries/htmdump: Add htm status support to htmdump module

2025-03-14 Thread Athira Rajeev
Support dumping status of Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmstatus”. The interface allows only read of this file which will present the content of HTM status buffer from the hcall. The 16th offset of HTM

[PATCH 0/9] Add support for configure and control of Hardware Trace Macro(HTM)

2025-03-14 Thread Athira Rajeev
H_HTM (Hardware Trace Macro) hypervisor call is an HCALL to export data from Hardware Trace Macro (HTM) function. The debugfs interface to export the HTM function data in a partition currently supports only dumping of HTM data in an lpar. Patchset add support for configuration and control of HTM fu

[PATCH 2/9] powerpc/pseries/htmdump: Add htm configure support to htmdump module

2025-03-14 Thread Athira Rajeev
Support configuring of Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmconfigure". The interface allows configuring of htm via this file by writing value "1". Allow deconfiguring of htm via this file by writing value

[PATCH 9/9] powerpc/pseries/htmdump: Add documentation for H_HTM debugfs interface

2025-03-14 Thread Athira Rajeev
Documentation for HTM (Hardware Trace Macro) debugfs interface and how it can be used to configure/control the HTM operations. Signed-off-by: Athira Rajeev --- Documentation/arch/powerpc/htm.rst | 104 + 1 file changed, 104 insertions(+) create mode 100644 Documentat

RE: [PATCH v4 net-next 02/14] net: enetc: add command BD ring support for i.MX95 ENETC

2025-03-14 Thread Wei Fang
> On Fri, Mar 14, 2025 at 06:51:06AM +0200, Wei Fang wrote: > > > I don't understand the need for si->ops->setup_cbdr() and > > > si->ops->teardown_cbdr()? > > > Doesn't every call site know which kind of SI it is dealing with, and > > > thus it > can > > > appropriately call the direct symbol? >

[PATCH 7/9] powerpc/pseries/htmdump: Add htm flags support to htmdump module

2025-03-14 Thread Athira Rajeev
Under debugfs folder, "/sys/kernel/debug/powerpc/htmdump", add file "htmflags". Currently supported flag value is to enable/disable HTM buffer wrap. wrap is used along with "configure" to prevent HTM buffer from wrapping. Writing 1 will set noWrap while configuring HTM Signed-off-by: Athira Rajeev

[PATCH 8/9] powerpc/pseries/htmdump: Add htm capabilities support to htmdump module

2025-03-14 Thread Athira Rajeev
Support dumping HTM capabilities information from Hardware Trace Macro (HTM) function via debugfs interface. Under debugfs folder "/sys/kernel/debug/powerpc/htmdump", add file "htmcaps”. The interface allows only read of this file which will present the content of HTM buffer from the hcall. Signe

[PATCH v4 5/9] powerpc: Rely on generic printing of preemption model.

2025-03-14 Thread Sebastian Andrzej Siewior
After the first printk in __die() there is show_regs() -> show_regs_print_info() which prints the current preemption model. Remove the preempion model from the arch code. Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Nicholas Piggin Cc: Christophe Leroy Cc: Naveen N Rao Cc: linuxppc-dev@l

Re: [PATCH] powerpc/perf: Fix ref-counting on the PMU 'vpa_pmu'

2025-03-14 Thread Madhavan Srinivasan
On Tue, 04 Feb 2025 21:05:26 +0530, Vaibhav Jain wrote: > Commit 176cda0619b6 ("powerpc/perf: Add perf interface to expose vpa > counters") introduced 'vpa_pmu' to expose Book3s-HV nested APIv2 provided > L1<->L2 context switch latency counters to L1 user-space via > perf-events. However the newly

Re: [PATCH v12 0/4] Support SMT control on arm64

2025-03-14 Thread Catalin Marinas
On Tue, 11 Mar 2025 15:51:39 +0800, Yicong Yang wrote: > The core CPU control framework supports runtime SMT control which > is not yet supported on arm64. Besides the general vulnerabilities > concerns we want this runtime control on our arm64 server for: > > - better single CPU performance in so

[powerpc:merge] BUILD SUCCESS 7899b3afc74b7b34cbd161425542c2ea11618600

2025-03-14 Thread kernel test robot
13.2.0 arc allnoconfiggcc-13.2.0 arc allyesconfiggcc-13.2.0 arc randconfig-001-20250314gcc-13.2.0 arc randconfig-001-20250315gcc-13.2.0 arc randconfig-002-20250314gcc-13.2.0 arc rand

Re: [PATCH 4/6] powerpc: book3s: vas: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
On 3/14/25 13:55, Peter Zijlstra wrote: On Fri, Mar 14, 2025 at 11:15:42AM +0530, Shrikanth Hegde wrote: use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can be found at https://lore.kernel.org

[PATCH 6/9] powerpc/pseries/htmdump: Add htm setup support to htmdump module

2025-03-14 Thread Athira Rajeev
Add htm setup support to htmdump module. To use the HTM (Hardware Trace Macro), HTM buffer has to be allocated. Support setup of HTM buffers via debugfs interface. Under debugfs folder, "/sys/kernel/debug/powerpc/htmdump", add file "htmsetup". The interface allows setup of HTM buffer by writing siz

Re: [PATCH v2] powerpc/kexec: fix physical address calculation in clear_utlb_entry()

2025-03-14 Thread Madhavan Srinivasan
On Thu, 06 Mar 2025 11:24:28 +0100, Christophe Leroy wrote: > In relocate_32.S, function clear_utlb_entry() goes into real mode. To > do so, it has to calculate the physical address based on the virtual > address. To get the virtual address it uses 'bl' which is problematic > (see commit c974809a26

Re: [PATCH 4/6] powerpc: book3s: vas: use lock guard for mutex

2025-03-14 Thread Peter Zijlstra
On Fri, Mar 14, 2025 at 11:15:42AM +0530, Shrikanth Hegde wrote: > use guard(mutex) for scope based resource management of mutex. > This would make the code simpler and easier to maintain. > > More details on lock guards can be found at > https://lore.kernel.org/all/20230612093537.614161...@infrad

Re: [PATCH 3/6] powerpc: fadump: use lock guard for mutex

2025-03-14 Thread Shrikanth Hegde
On 3/14/25 13:52, Peter Zijlstra wrote: Thanks Peter for taking a look. On Fri, Mar 14, 2025 at 11:15:41AM +0530, Shrikanth Hegde wrote: use guard(mutex) for scope based resource management of mutex. This would make the code simpler and easier to maintain. More details on lock guards can b