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

2025-02-19 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 v3 1/2] ASoC: dt-bindings: imx-card: Add playback-only and capture-only property

2025-02-19 Thread Rob Herring (Arm)
On Mon, 17 Feb 2025 10:17:14 +0800, Shengjiu Wang wrote: > Refer to audio graph card, add playback-only and capture-only property > for imx-audio-card.yaml for the case that only playback or capture is > supported. > > Signed-off-by: Shengjiu Wang > Reviewed-by: Daniel Baluta > Reviewed-by: Iu

Re: [PATCH v2] powerpc/pseries/iommu: Wait until all TCEs are unmapped before deleting DDW

2025-02-19 Thread Gaurav Batra
I agree the right fix for this issue would be in the page_pool code. I will see if we can reproduce the issue and try out the patch Thanks, Gaurav On 2/19/25 5:17 AM, Yunsheng Lin wrote: On 2025/2/18 22:40, Jesper Dangaard Brouer wrote: Cc. netdev and Yunsheng Lin Thanks for Cc'ing. On 13

Re: [PATCH v4 3/3] printf: implicate test line in failure messages

2025-02-19 Thread Rasmus Villemoes
On Fri, 14 Feb 2025 at 22:53, Tamir Duberstein wrote: > > This improves the failure output by pointing to the failing line at the > top level of the test, e.g.: > # test_number: EXPECTATION FAILED at lib/printf_kunit.c:103 > lib/printf_kunit.c:167: vsnprintf(buf, 256, "%#-12x", ...) wrote

Re: [PATCH v6 2/6] syscall.h: add syscall_set_arguments()

2025-02-19 Thread Maciej W. Rozycki
On Mon, 17 Feb 2025, Dmitry V. Levin wrote: > This function is going to be needed on all HAVE_ARCH_TRACEHOOK > architectures to implement PTRACE_SET_SYSCALL_INFO API. > > This partially reverts commit 7962c2eddbfe ("arch: remove unused > function syscall_set_arguments()") by reusing some of old >

Re: [PATCH v4 3/3] printf: implicate test line in failure messages

2025-02-19 Thread Tamir Duberstein
On Wed, Feb 19, 2025 at 3:41 PM Rasmus Villemoes wrote: > > On Fri, 14 Feb 2025 at 22:53, Tamir Duberstein wrote: > > > > This improves the failure output by pointing to the failing line at the > > top level of the test, e.g.: > > # test_number: EXPECTATION FAILED at lib/printf_kunit.c:103

Re: [PATCH v2 1/1] mm: pgtable: fix pte_swp_exclusive

2025-02-19 Thread Sam James
Lovely cleanup and a great suggestion from Al. Reviewed-by: Sam James I'd suggest adding a: Suggested-by: Al Viro thanks, sam

[PATCH v3 10/19] crypto: nx - use the new scatterwalk functions

2025-02-19 Thread Eric Biggers
From: Eric Biggers - In nx_walk_and_build(), use scatterwalk_start_at_pos() instead of a more complex way to achieve the same result. - Also in nx_walk_and_build(), use the new functions scatterwalk_next() which consolidates scatterwalk_clamp() and scatterwalk_map(), and use scatterwalk_do

Re: [PATCH v6 3/6] syscall.h: introduce syscall_set_nr()

2025-02-19 Thread Maciej W. Rozycki
On Mon, 17 Feb 2025, Dmitry V. Levin wrote: > diff --git a/arch/mips/include/asm/syscall.h b/arch/mips/include/asm/syscall.h > index ea050b23d428..b956b015641c 100644 > --- a/arch/mips/include/asm/syscall.h > +++ b/arch/mips/include/asm/syscall.h > @@ -41,6 +41,20 @@ static inline long syscall_get

[RFC PATCH] objtool: Skip unannotated intra-function call warning for bl+mflr pattern

2025-02-19 Thread Sathvika Vasireddy
Architectures like PowerPC use a pattern where the compiler generates a branch-and-link (bl) instruction that targets the very next instruction, followed by loading the link register (mflr) later. This pattern appears in the code like: bl .+4 li r5,0 mflr r30 Objtool currently warns about this

Re: [RESEND PATCH] powerpc/ps3: Use str_write_read() in ps3_notification_read_write()

2025-02-19 Thread Geert Uytterhoeven
On Wed, 19 Feb 2025 at 12:15, Thorsten Blum wrote: > Remove hard-coded strings by using the str_write_read() helper function. > > Suggested-by: Christophe Leroy > Signed-off-by: Thorsten Blum Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterho

Re: [PATCH RFC v2 03/29] mm: asi: Introduce ASI core API

2025-02-19 Thread Brendan Jackman
Argh, sorry, GMail switched back to HTML mode somehow. Maybe I have to get a proper mail client after all. Here's the clean version. On Wed, 19 Feb 2025 at 11:57, Borislav Petkov wrote: > > > + * Runtime usage: > > + * > > + * 1. Call asi_enter() to switch to the restricted address space. This

Re: [PATCH RFC v2 03/29] mm: asi: Introduce ASI core API

2025-02-19 Thread Brendan Jackman
On Wed, 19 Feb 2025 at 11:57, Borislav Petkov wrote: > > + * Runtime usage: > > + * > > + * 1. Call asi_enter() to switch to the restricted address space. This > can't be > > + *from an interrupt or exception handler and preemption must be > disabled. > > + * > > + * 2. Execute untrusted code

Re: [PATCH] mm/ioremap: Pass pgprot_t to ioremap_prot() instead of unsigned long

2025-02-19 Thread Catalin Marinas
On Tue, Feb 18, 2025 at 03:49:54PM +0530, Anshuman Khandual wrote: > From: Ryan Roberts > > ioremap_prot() currently accepts pgprot_val parameter as an unsigned long, > thus implicitly assuming that pgprot_val and pgprot_t could never be bigger > than unsigned long. But this assumption soon will

Re: [PATCH v2] powerpc/pseries/iommu: Wait until all TCEs are unmapped before deleting DDW

2025-02-19 Thread Yunsheng Lin
On 2025/2/18 22:40, Jesper Dangaard Brouer wrote: > Cc. netdev and Yunsheng Lin Thanks for Cc'ing. > > On 13/02/2025 18.10, Gaurav Batra wrote: >> Some of the network drivers, like Mellanox, use core linux page_pool APIs >> to manage DMA buffers. These page_pool APIs cache DMA buffers with >> in

[RESEND PATCH] powerpc: mpic: Use str_enabled_disabled() helper function

2025-02-19 Thread Thorsten Blum
Remove hard-coded strings by using the str_enabled_disabled() helper function. Use pr_debug() instead of printk(KERN_DEBUG) to silence a checkpatch warning. Reviewed-by: Ricardo B. Marlière Signed-off-by: Thorsten Blum --- arch/powerpc/sysdev/mpic.c | 7 --- 1 file changed, 4 insertions(+)

[RESEND PATCH] powerpc/ps3: Use str_write_read() in ps3_notification_read_write()

2025-02-19 Thread Thorsten Blum
Remove hard-coded strings by using the str_write_read() helper function. Suggested-by: Christophe Leroy Signed-off-by: Thorsten Blum --- arch/powerpc/platforms/ps3/device-init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/ps3/device-init.c b/arc

Re: [PATCH RFC v2 03/29] mm: asi: Introduce ASI core API

2025-02-19 Thread Borislav Petkov
On Fri, Jan 10, 2025 at 06:40:29PM +, Brendan Jackman wrote: > Subject: Re: [PATCH RFC v2 03/29] mm: asi: Introduce ASI core API x86/asi: ... > Introduce core API for Address Space Isolation (ASI). Kernel address > space isolation provides the ability to run some kernel > code with a restric

[PATCH 6.1 207/578] module: Extend the preempt disabled section in dereference_symbol_descriptor().

2025-02-19 Thread Greg Kroah-Hartman
6.1-stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior [ Upstream commit a145c848d69f9c6f32008d8319edaa133360dd74 ] dereference_symbol_descriptor() needs to obtain the module pointer belonging to pointer in order to resolv

Re: [PATCH] cxl: Fix cross-reference in documentation and add deprecation warning

2025-02-19 Thread Madhavan Srinivasan
On 2/19/25 12:18 PM, Andrew Donnellan wrote: > commit 5731d41af924 ("cxl: Deprecate driver") labelled the cxl driver as > deprecated and moved the ABI documentation to the obsolete/ subdirectory, > but didn't update cxl.rst, causing a warning once ff7ff6eb4f809 ("docs: > media: Allow creating cr