Re: [PATCH v2 2/4] seccomp: fix the __secure_computing() stub for !HAVE_ARCH_SECCOMP_FILTER

2025-01-29 Thread Linus Walleij
On Tue, Jan 28, 2025 at 4:03 PM Oleg Nesterov wrote: > Depending on CONFIG_HAVE_ARCH_SECCOMP_FILTER, __secure_computing(NULL) > will crash or not. This is not consistent/safe, especially considering > that after the previous change __secure_computing(sd) is always called > with sd == NULL. > > Fo

Re: [PATCH 5/5] powerpc/microwatt: Add SMP support

2025-01-29 Thread Michael Ellerman
Paul Mackerras writes: > On Wed, Jan 29, 2025 at 04:21:26PM +1000, Nicholas Piggin wrote: >> On Wed Jan 29, 2025 at 8:55 AM AEST, Paul Mackerras wrote: >> > This adds support for Microwatt systems with more than one core, and >> > updates the device tree for a 2-core version. (This does not preve

Re: [PATCH v2] fs: introduce getfsxattrat and setfsxattrat syscalls

2025-01-29 Thread Andrey Albershteyn
On 2025-01-24 10:33:54, Christian Brauner wrote: > On Wed, Jan 22, 2025 at 03:18:34PM +0100, Andrey Albershteyn wrote: > > From: Andrey Albershteyn > > > > Introduce getfsxattrat and setfsxattrat syscalls to manipulate inode > > extended attributes/flags. The syscalls take parent directory FD and

Re: [PATCH v2] powerpc: Remove eieio() in PowerPC IO functions

2025-01-29 Thread Segher Boessenkool
On Wed, Jan 29, 2025 at 10:45:10AM +0100, Julian Vetter wrote: > Remove the eieio() calls in IO functions for PowerPC. While other > architectures permit prefetching, combining, and reordering, the eieio() > calls on PowerPC prevent such optimizations. Yes, and it is crucial to prevent combining,

[PATCH v2] powerpc: Remove eieio() in PowerPC IO functions

2025-01-29 Thread Julian Vetter
Remove the eieio() calls in IO functions for PowerPC. While other architectures permit prefetching, combining, and reordering, the eieio() calls on PowerPC prevent such optimizations. This has only historical reasons, because in the early arch/powerpc64 code also readl() had these eieio() calls, bu

Re: [RFC PATCH 0/2] powerpc: change syscall error return scheme

2025-01-29 Thread Dmitry V. Levin
Hi, On Wed, Jan 29, 2025 at 11:21:41PM +1000, Nicholas Piggin wrote: > Hi, > > I've been toying with the seccomp vs syscall return value problems, and > wonder if something like this approach could give us a simpler alternative. > Basically all the core code uses -errno return value, then we conv

[PATCH v2] KVM: PPC: Enable CAP_SPAPR_TCE_VFIO on pSeries KVM guests

2025-01-29 Thread Amit Machhiwal
Currently on book3s-hv, the capability KVM_CAP_SPAPR_TCE_VFIO is only available for KVM Guests running on PowerNV and not for the KVM guests running on pSeries hypervisors. This prevents a pSeries L2 guest from leveraging the in-kernel acceleration for H_PUT_TCE_INDIRECT and H_STUFF_TCE hcalls that

Re: [PATCH] kbuild: Add missing $(objtree) prefix to powerpc crtsavres.o artifact

2025-01-29 Thread Nicolas Schier
On Tue 28 Jan 2025 10:53:42 GMT, Kienan Stewart wrote: > Hi, > > I missed a few CCs, looping them in now. Apologies for the extra noise. > > thanks, > kienan > > On 1/27/25 1:47 PM, Kienan Stewart wrote: > > In the upstream commit 214c0eea43b2ea66bcd6467ea57e47ce8874191b > > ("kbuild: add $(objt

[RFC PATCH 0/2] powerpc: change syscall error return scheme

2025-01-29 Thread Nicholas Piggin
Hi, I've been toying with the seccomp vs syscall return value problems, and wonder if something like this approach could give us a simpler alternative. Basically all the core code uses -errno return value, then we convert it to the powerpc convention at the last minute when returning. This seems

[GIT PULL] Please pull powerpc/linux.git powerpc-6.14-2 tag

2025-01-29 Thread Madhavan Srinivasan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull couple of powerpc fixes for 6.14: The following changes since commit 2bf66e66d2e6feece6175ec09ec590a0a8563bdd: selftests/powerpc: Fix argument order to timer_sub() (2025-01-11 10:39:45 +0530) are available in the git repo

Re: [PATCH 5/5] powerpc/microwatt: Add SMP support

2025-01-29 Thread Nicholas Piggin
On Wed Jan 29, 2025 at 4:57 PM AEST, Paul Mackerras wrote: > On Wed, Jan 29, 2025 at 04:21:26PM +1000, Nicholas Piggin wrote: >> On Wed Jan 29, 2025 at 8:55 AM AEST, Paul Mackerras wrote: >> > This adds support for Microwatt systems with more than one core, and >> > updates the device tree for a 2-

Re: [PATCH 4/5] powerpc: Define config option for processors without broadcast TLBIE

2025-01-29 Thread Nicholas Piggin
On Wed Jan 29, 2025 at 5:10 PM AEST, Paul Mackerras wrote: > On Wed, Jan 29, 2025 at 04:14:25PM +1000, Nicholas Piggin wrote: >> On Wed Jan 29, 2025 at 8:53 AM AEST, Paul Mackerras wrote: >> > Power ISA v3.1 implementations in the Linux Compliancy Subset and >> > lower are not required to implement

Re: [PATCH 2/5] powerpc/microwatt: Device-tree updates

2025-01-29 Thread Nicholas Piggin
On Wed Jan 29, 2025 at 5:18 PM AEST, Paul Mackerras wrote: > On Wed, Jan 29, 2025 at 04:36:14PM +1000, Nicholas Piggin wrote: >> On Wed Jan 29, 2025 at 8:52 AM AEST, Paul Mackerras wrote: >> > Microwatt now implements ISA v3.1 (SFFS compliancy subset), including >> > prefixed instructions, scv/rfsc

Re: Re: Re: Re: Re: [PATCH v2] treewide: const qualify ctl_tables where applicable

2025-01-29 Thread Joel Granados
On Tue, Jan 28, 2025 at 10:43:10AM -0500, Paul Moore wrote: > On Tue, Jan 28, 2025 at 6:22 AM Joel Granados > wrote: > > On Mon, Jan 27, 2025 at 03:42:39PM +, Matthew Wilcox wrote: > > > On Mon, Jan 27, 2025 at 04:55:58PM +0200, Jani Nikula wrote: > > > > You could have static const within fu

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Sidhartha Kumar
+ Liam, Matthew Hello, I believe this patch needs to be reverted for now as it breaks the user-space build of /tools/testing/radix-tree with: In file included from xarray.c:11: ../../../lib/test_xarray.c:9:10: fatal error: kunit/test.h: No such file or directory 9 | #include |

Re: [PATCH 0/9] YAML conversion of several Freescale/PowerPC DT bindings

2025-01-29 Thread Frank Li
On Sun, Jan 26, 2025 at 07:58:55PM +0100, J. Neuschäfer wrote: > This is a spin-off of the series titled > "powerpc: MPC83xx cleanup and LANCOM NWAPP2 board". > > During the development of that series, it became clear that many > devicetree bindings for Freescale MPC8xxx platforms are still in the

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Liam R. Howlett
t; this then prevents the maple tree test suite from building. > > > > How are grammar corrections going to the right person (but not the > > mailing list) while an entire conversion to kunit is not [1]? > > Very simple: the tests are not properly included in MAINT

Re: [PATCH 27/27] mm/hugetlb: enable bootmem allocation from CMA areas

2025-01-29 Thread Frank van der Linden
On Tue, Jan 28, 2025 at 9:52 AM Frank van der Linden wrote: > > Hi Christophe, thanks for your comments. Replies inline below. > > On Tue, Jan 28, 2025 at 12:55 AM Christophe Leroy > wrote: > > > > > > > > Le 28/01/2025 à 00:22, Frank van der Linden a écrit : > > > If hugetlb_cma_only is enabled,

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Tamir Duberstein
> > > > compilation terminated. > > > > make: *** [: xarray.o] Error 1 > > > > make: *** Waiting for unfinished jobs > > > > > > > > this then prevents the maple tree test suite from building. > > > > > > How are

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Tamir Duberstein
On Wed, Jan 29, 2025 at 6:11 PM Matthew Wilcox wrote: > > On Wed, Jan 29, 2025 at 06:08:22PM -0500, Tamir Duberstein wrote: > > The whole point of tools is to liberate stupid humans' brains like > > mine from mundane tasks like working out who to email. The tool wasn't > > wrong; it did exactly wh

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Tamir Duberstein
ist) while an entire conversion to kunit is not [1]? Very simple: the tests are not properly included in MAINTAINERS. I sent https://lore.kernel.org/all/20250129-xarray-test-maintainer-v1-1-482e31f30...@gmail.com/ a few minutes ago for this reason. > Does the patch really need to drop the module testing

Re: [PATCH] kbuild: Add missing $(objtree) prefix to powerpc crtsavres.o artifact

2025-01-29 Thread Masahiro Yamada
On Wed, Jan 29, 2025 at 12:53 AM Kienan Stewart wrote: > > Hi, > > I missed a few CCs, looping them in now. Apologies for the extra noise. > > thanks, > kienan > > On 1/27/25 1:47 PM, Kienan Stewart wrote: > > In the upstream commit 214c0eea43b2ea66bcd6467ea57e47ce8874191b > > ("kbuild: add $(objt

Re: [PATCH 5/9] dt-bindings: dma: Convert fsl,elo*-dma bindings to YAML

2025-01-29 Thread Frank Li
On Sun, Jan 26, 2025 at 07:59:00PM +0100, J. Neuschäfer wrote: > The devicetree bindings for Freescale DMA engines have so far existed as > a text file. This patch converts them to YAML, and specifies all the > compatible strings currently in use in arch/powerpc/boot/dts. > > Signed-off-by: J. Neus

Re: [PATCH 6/9] dt-bindings: pci: Add fsl,mpc83xx-pcie bindings

2025-01-29 Thread Frank Li
On Sun, Jan 26, 2025 at 07:59:01PM +0100, J. Neuschäfer wrote: > Supplement Documentation/devicetree/bindings/pci/fsl,pci.txt with a more > formal binding in YAML format. > > Signed-off-by: J. Neuschäfer > --- > .../devicetree/bindings/pci/fsl,mpc8xxx-pci.yaml | 83 > ++ >

[PATCH v2 27/28] mm/hugetlb: enable bootmem allocation from CMA areas

2025-01-29 Thread Frank van der Linden
If hugetlb_cma_only is enabled, we know that hugetlb pages can only be allocated from CMA. Now that there is an interface to do early reservations from a CMA area (returning memblock memory), it can be used to allocate hugetlb pages from CMA. This also allows for doing pre-HVO on these pages (if e

Re: [PATCH RFC 9/9] dt-bindings: nand: Convert fsl,elbc bindings to YAML

2025-01-29 Thread Frank Li
On Sun, Jan 26, 2025 at 07:59:04PM +0100, J. Neuschäfer wrote: > Convert the Freescale localbus controller bindings from text form to > YAML. The list of compatible strings reflects current usage. > > Changes compared to the txt version: > - removed the board-control (fsl,mpc8272ads-bcsr) node bec

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Matthew Wilcox
On Wed, Jan 29, 2025 at 05:33:06PM -0500, Tamir Duberstein wrote: > > $ ./scripts/get_maintainer.pl --git lib/xarray.c > > Matthew Wilcox > > (supporter:XARRAY,commit_signer:1/3=33%,authored:1/3=33%,added_lines:19/52=37%,removed_lines:4/23=17%) > > Andrew Morton (supporter:LIBRARY > > CODE,com

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Liam R. Howlett
* Sidhartha Kumar [250129 16:02]: > + Liam, Matthew + linux-mm Thank you Sid. > > Hello, > > I believe this patch needs to be reverted for now as it breaks the > user-space build of /tools/testing/radix-tree with: > > In file included from xarray.c:11: > ../../../lib/test_xarray.c:9:10: fata

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Matthew Wilcox
On Wed, Jan 29, 2025 at 06:08:22PM -0500, Tamir Duberstein wrote: > The whole point of tools is to liberate stupid humans' brains like > mine from mundane tasks like working out who to email. The tool wasn't > wrong; it did exactly what you told it to do in your MAINTAINERS > entry. Tools do get t

Re: [PATCH] xarray: port tests to kunit

2025-01-29 Thread Tamir Duberstein
On Wed, Jan 29, 2025 at 6:02 PM Matthew Wilcox wrote: > > On Wed, Jan 29, 2025 at 05:33:06PM -0500, Tamir Duberstein wrote: > > > $ ./scripts/get_maintainer.pl --git lib/xarray.c > > > Matthew Wilcox > > > (supporter:XARRAY,commit_signer:1/3=33%,authored:1/3=33%,added_lines:19/52=37%,removed_li

Re: [PATCH v2] powerpc: Remove eieio() in PowerPC IO functions

2025-01-29 Thread Julian Vetter
On 29.01.25 12:14, Segher Boessenkool wrote: On Wed, Jan 29, 2025 at 10:45:10AM +0100, Julian Vetter wrote: Remove the eieio() calls in IO functions for PowerPC. While other architectures permit prefetching, combining, and reordering, the eieio() calls on PowerPC prevent such optimizations. Ye

[RFC PATCH 1/2] powerpc/signal: Clean up pt_regs access

2025-01-29 Thread Nicholas Piggin
There are places in signal code that are made more readable by using a 'regs' local variable instead of finding it from the task. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/signal.c| 11 ++- arch/powerpc/kernel/signal_64.c | 5 +++-- 2 files changed, 9 insertions(+), 7 d

[RFC PATCH 2/2] powerpc/syscall: rework syscall return value handling

2025-01-29 Thread Nicholas Piggin
powerpc is one of the "interesting" archs when it comes to system call error return convention. Rather than returning a -errno, it sets a condition register bit and returns a +errno. To make matters more complicated, a new system call instruction was introduced that uses the -errno convention. The

Re: [PATCH 3/9] dt-bindings: crypto: Convert fsl,sec-2.0 binding to YAML

2025-01-29 Thread J . Neuschäfer
On Sun, Jan 26, 2025 at 10:41:28PM -0600, Rob Herring wrote: > On Sun, Jan 26, 2025 at 07:58:58PM +0100, J. Neuschäfer wrote: > > Convert the Freescale security engine (crypto accelerator) binding from > > text form to YAML. The list of compatible strings reflects what was > > previously described

Re: [PATCH v3 0/6] ptrace: introduce PTRACE_SET_SYSCALL_INFO API

2025-01-29 Thread Oleg Nesterov
On 01/28, Dmitry V. Levin wrote: > > * ptrace: Add explicit padding to the end of struct ptrace_syscall_info, > simplify obtaining of user ptrace_syscall_info, > do not introduce PTRACE_SYSCALL_INFO_SIZE_VER0 > * ptrace: Change the return type of ptrace_set_syscall_info_* functi

Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.14-2 tag

2025-01-29 Thread pr-tracker-bot
The pull request you sent on Wed, 29 Jan 2025 19:06:18 +0530: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.14-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/aa5216a2b06594c558942d491cf71af76d34521e Thank you! -- Deet-doot-d