[PATCH] ASoC: fsl_mqs: Support accessing registers by scmi interface

2024-10-11 Thread Shengjiu Wang
On i.MX95, the MQS module in Always-on (AON) domain only can be accessed by System Controller Management Interface (SCMI) MISC Protocol. So define a specific regmap_config for the case. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_mqs.c | 41 + 1 fil

[PATCH] x86/uaccess: Avoid barrier_nospec() in copy_from_user()

2024-10-11 Thread Josh Poimboeuf
For x86-64, the barrier_nospec() in copy_from_user() is overkill and painfully slow. Instead, use pointer masking to force the user pointer to a non-kernel value even in speculative paths. While at it, harden the x86 implementations of raw_copy_to_user() and clear_user(): a write in a mispredicte

[PATCH 7/7] powerpc/entry: fix 32bit compile issue for common entry

2024-10-11 Thread Luming Yu
fix irqentry in 32bit code path and hw_irq helpers. Signed-off-by: Luming Yu --- arch/powerpc/include/asm/hw_irq.h | 6 ++ arch/powerpc/kernel/interrupt.c | 4 include/linux/entry-common.h | 1 + 3 files changed, 11 insertions(+) diff --git a/arch/powerpc/include/asm/hw_irq.h b

[PATCH 2/7] powerpc/entry: cleanup syscall entry

2024-10-11 Thread Luming Yu
cleanup do_syscall_trace_enter/leave and do_seccomp. Signed-off-by: Luming Yu --- arch/powerpc/kernel/interrupt.c | 5 - arch/powerpc/kernel/ptrace/ptrace.c | 141 2 files changed, 146 deletions(-) diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/ke

[PATCH 3/7] powerpc/debug: implement HAVE_USER_RETURN_NOTIFIER

2024-10-11 Thread Luming Yu
enable the common entry of user return notifier for powerpc as a debug feature. Signed-off-by Luming Yu --- arch/powerpc/Kconfig| 1 + arch/powerpc/include/asm/entry-common.h | 16 arch/powerpc/include/asm/thread_info.h | 2 ++ arch/powerpc/kernel/process.

[PATCH 1/7] powerpc/entry: convert to common and generic entry

2024-10-11 Thread Luming Yu
convert powerpc entry code in syscall and fault to use syscall_work and irqentry_state as well as common calls implemented in generic entry infrastructure. Signed-off-by: Luming Yu --- arch/powerpc/Kconfig | 1 + arch/powerpc/include/asm/hw_irq.h | 5 + arch/powerpc/in

[PATCH 5/7] powerpc/entry: add irqentry_state and generic entry support

2024-10-11 Thread Luming Yu
generic irq entry support via generic irqentry is added for powerpc. There may be duplciate calls and missing callbacks requires further work. Signed-off-by: Luming Yu --- arch/powerpc/include/asm/entry-common.h | 32 arch/powerpc/kernel/interrupt.c | 51 +---

[PATCH 4/7] powerpc/debug: hook to user return notifier infrastructure

2024-10-11 Thread Luming Yu
calls back to all registered user return notifier functions. Signed-off-by: Luming Yu --- arch/powerpc/kernel/interrupt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/powerpc/kernel/interrupt.c b/arch/powerpc/kernel/interrupt.c index 8c532cecbc60..609ba48034de 100644 --- a/arch/po

[PATCH 6/7] powerpc/entry: factout irqentry-state

2024-10-11 Thread Luming Yu
To have lowlevel paca.h include high level entry-common.h cause include file dependency mess. Split irqentry-state.h to have the irqentry_state.h can be included in low level paca.h Signed-off-by: Luming Yu --- arch/powerpc/include/asm/paca.h | 2 ++ arch/powerpc/kernel/interrupt.c | 2 ++ inc

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-10-11 Thread Luis Chamberlain
On Fri, Oct 11, 2024 at 04:45:25PM -0700, Luis Chamberlain wrote: > > Also, just as I asked Sami, coould you split this up into patch sets? > One with all the cleanups and elf validation code shifts. And then the > other code. That will let me pick up quickly the first patch set. Oh and if you ca

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-10-11 Thread Luis Chamberlain
Also, just as I asked Sami, coould you split this up into patch sets? One with all the cleanups and elf validation code shifts. And then the other code. That will let me pick up quickly the first patch set. Luis

Re: [PATCH net] net: enetc: add missing static descriptor and inline keyword

2024-10-11 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 11 Oct 2024 11:01:03 +0800 you wrote: > Fix the build warnings when CONFIG_FSL_ENETC_MDIO is not enabled. > The detailed warnings are shown as follows. > > include/linux/fsl/enetc_mdio.h:62:18: warning: no previou

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-10-11 Thread Luis Chamberlain
On Fri, Oct 11, 2024 at 03:27:30PM -0700, Matthew Maurer wrote: > On Fri, Oct 11, 2024 at 3:22 PM Luis Chamberlain wrote: > > > > On Wed, Sep 25, 2024 at 11:38:29PM +, Matthew Maurer wrote: > > > Adds a new format for MODVERSIONS which stores each field in a separate > > > ELF section. This in

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-10-11 Thread Matthew Maurer
On Fri, Oct 11, 2024 at 3:22 PM Luis Chamberlain wrote: > > On Wed, Sep 25, 2024 at 11:38:29PM +, Matthew Maurer wrote: > > Adds a new format for MODVERSIONS which stores each field in a separate > > ELF section. This initially adds support for variable length names, but > > could later be use

Re: [PATCH v5 14/16] modules: Support extended MODVERSIONS info

2024-10-11 Thread Luis Chamberlain
On Wed, Sep 25, 2024 at 11:38:29PM +, Matthew Maurer wrote: > Adds a new format for MODVERSIONS which stores each field in a separate > ELF section. This initially adds support for variable length names, but > could later be used to add additional fields to MODVERSIONS in a > backwards compatib

[PATCH] powermac: Use of_property_match_string() in pmac_has_backlight_type()

2024-10-11 Thread Markus Elfring
From: Markus Elfring Date: Fri, 11 Oct 2024 18:10:06 +0200 Replace an of_get_property() call by of_property_match_string() so that this function implementation can be simplified. Suggested-by: Christophe Leroy Link: https://lore.kernel.org/linuxppc-dev/d9bdc1b6-ea7e-47aa-80aa-02ae649ab...@csgr

Re: [RFC v3 -next] cma: Enforce non-zero pageblock_order during cma_init_reserved_mem()

2024-10-11 Thread Zi Yan
On 11 Oct 2024, at 10:56, Ritesh Harjani (IBM) wrote: > cma_init_reserved_mem() checks base and size alignment with > CMA_MIN_ALIGNMENT_BYTES. However, some users might call this during > early boot when pageblock_order is 0. That means if base and size does > not have pageblock_order alignment, i

Re: [PATCH net] net: enetc: add missing static descriptor and inline keyword

2024-10-11 Thread Vladimir Oltean
On Fri, Oct 11, 2024 at 11:01:03AM +0800, Wei Fang wrote: > Fix the build warnings when CONFIG_FSL_ENETC_MDIO is not enabled. > The detailed warnings are shown as follows. > > include/linux/fsl/enetc_mdio.h:62:18: warning: no previous prototype for > function 'enetc_hw_alloc' [-Wmissing-prototype

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 05:13:11PM +0530, Vishal Chourasia wrote: > On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > > Vishal Chourasia writes: > > > Hi, > > > I am getting Invalid wait context warning printed when rebooting lpar > > > > > > kexec/61926 is trying to acquire `of_

Re: [PATCH] powermac: Use of_property_match_string() in pmac_has_backlight_type()

2024-10-11 Thread Christophe Leroy
Le 11/10/2024 à 18:18, Markus Elfring a écrit : From: Markus Elfring Date: Fri, 11 Oct 2024 18:10:06 +0200 Replace an of_get_property() call by of_property_match_string() so that this function implementation can be simplified. Suggested-by: Christophe Leroy Link: https://eur01.safelinks.p

[RFC v3 3/3] fadump: Move fadump_cma_init to setup_arch() after initmem_init()

2024-10-11 Thread Ritesh Harjani (IBM)
During early init CMA_MIN_ALIGNMENT_BYTES can be PAGE_SIZE, since pageblock_order is still zero and it gets initialized later during initmem_init() e.g. setup_arch() -> initmem_init() -> sparse_init() -> set_pageblock_order() One such use case where this causes issues is - early_setup() -> early_i

[RFC v3 2/3] fadump: Reserve page-aligned boot_memory_size during fadump_reserve_mem

2024-10-11 Thread Ritesh Harjani (IBM)
This patch refactors all CMA related initialization and alignment code to within fadump_cma_init() which gets called in the end. This also means that we keep [reserve_dump_area_start, boot_memory_size] page aligned during fadump_reserve_mem(). Then later in fadump_cma_init() we extract the aligned

[RFC v3 1/3] fadump: Refactor and prepare fadump_cma_init for late init

2024-10-11 Thread Ritesh Harjani (IBM)
We anyway don't use any return values from fadump_cma_init(). Since fadump_reserve_mem() from where fadump_cma_init() gets called today, already has the required checks. This patch makes this function return type as void. Let's also handle extra cases like return if fadump_supported is false or dum

[RFC v3 -next] cma: Enforce non-zero pageblock_order during cma_init_reserved_mem()

2024-10-11 Thread Ritesh Harjani (IBM)
cma_init_reserved_mem() checks base and size alignment with CMA_MIN_ALIGNMENT_BYTES. However, some users might call this during early boot when pageblock_order is 0. That means if base and size does not have pageblock_order alignment, it can cause functional failures during cma activate area. So l

Re: [PATCH] ASoC: fsl_esai: change dev_warn to dev_dbg in irq handler

2024-10-11 Thread Mark Brown
On Fri, 11 Oct 2024 12:53:53 +0800, Shengjiu Wang wrote: > Irq handler need to be executed as fast as possible, so > the log in irq handler is better to use dev_dbg which needs > to be enabled when debugging. > > Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git fo

Re: [PATCH v3] ftrace: Consolidate ftrace_regs accessor functions for archs using pt_regs

2024-10-11 Thread Steven Rostedt
On Fri, 11 Oct 2024 11:26:10 +0100 Catalin Marinas wrote: > On Thu, Oct 10, 2024 at 08:21:14PM -0400, Steven Rostedt wrote: > > diff --git a/arch/arm64/include/asm/ftrace.h > > b/arch/arm64/include/asm/ftrace.h > > index bbb69c7751b9..5ccff4de7f09 100644 > > --- a/arch/arm64/include/asm/ftrace.h

Re: [PATCH v5 6/8] x86/module: perpare module loading for ROX allocations of text

2024-10-11 Thread Mike Rapoport
On Thu, Oct 10, 2024 at 03:54:11PM -0700, Nathan Chancellor wrote: > Hi Mike, > > On Wed, Oct 09, 2024 at 09:08:14PM +0300, Mike Rapoport wrote: > > From: "Mike Rapoport (Microsoft)" > > > > When module text memory will be allocated with ROX permissions, the > > memory at the actual address wher

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > Vishal Chourasia writes: > > Hi, > > I am getting Invalid wait context warning printed when rebooting lpar > > > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > > spinlock `devdata_mutex` > > > > Note:

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > Vishal Chourasia writes: > > Hi, > > I am getting Invalid wait context warning printed when rebooting lpar > > > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > > spinlock `devdata_mutex` > > > > Note:

Re: [PATCH net-next] eth: remove the DLink/Sundance (ST201) driver

2024-10-11 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller : On Tue, 8 Oct 2024 08:48:24 -0700 you wrote: > Konstantin reports the maintainer's address bounces. > There is no other maintainer and the driver is quite old. > There is a good chance nobody is using this driver an

Re: [PATCH 2/2] powerpc/vdso: Implement __arch_get_vdso_rng_data()

2024-10-11 Thread Michael Ellerman
Christophe Leroy writes: > Le 10/10/2024 à 11:12, Thomas Weißschuh a écrit : >> On Thu, Oct 10, 2024 at 11:00:15AM +0200, Christophe Leroy wrote: >>> Hi Thomas, >>> >>> Le 10/10/2024 à 10:20, Thomas Weißschuh a écrit : On Wed, Oct 02, 2024 at 10:39:29AM +0200, Christophe Leroy wrote: > VD

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
On Fri, Oct 11, 2024 at 09:37:27PM +1100, Michael Ellerman wrote: > Vishal Chourasia writes: > > Hi, > > I am getting Invalid wait context warning printed when rebooting lpar > > > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > > spinlock `devdata_mutex` > > > > Note:

Re: [RFC v2 0/4] cma: powerpc fadump fixes

2024-10-11 Thread IBM
Michael Ellerman writes: > "Ritesh Harjani (IBM)" writes: >> Please find the v2 of cma related powerpc fadump fixes. >> >> Patch-1 is a change in mm/cma.c to make sure we return an error if someone >> uses >> cma_init_reserved_mem() before the pageblock_order is initalized. >> >> I guess, it's

Re: [RFC v2 3/4] fadump: Reserve page-aligned boot_memory_size during fadump_reserve_mem

2024-10-11 Thread Hari Bathini
On 11/10/24 12:53 pm, Ritesh Harjani (IBM) wrote: This patch refactors all CMA related initialization and alignment code to within fadump_cma_init() which gets called in the end. This also means that we keep [reserve_dump_area_start, boot_memory_size] page aligned during fadump_reserve_mem().

Re: BUG: Kernel NULL pointer dereference on read at 0x00000000 in pnv_get_random_long()

2024-10-11 Thread Corentin LABBE
Le Thu, Oct 03, 2024 at 11:49:27AM +0530, Madhavan Srinivasan a écrit : > > > On 10/2/24 5:31 PM, Corentin LABBE wrote: > > Hello > > > > I have a 8335-GCA POWER8 which got a kernel crash during boot: > > [ 11.754238] Kernel attempted to read user page (0) - exploit attempt? > > (uid: 0) > >

Re: [PATCH 2/2] powerpc/vdso: Implement __arch_get_vdso_rng_data()

2024-10-11 Thread Michael Ellerman
"Jason A. Donenfeld" writes: > On Fri, Oct 04, 2024 at 04:03:34PM +0200, Jason A. Donenfeld wrote: >> On Fri, Oct 04, 2024 at 08:52:40PM +1000, Michael Ellerman wrote: >> > >> > >> > On October 4, 2024 2:33:54 AM GMT+10:00, "Jason A. Donenfeld" >> > wrote: >> > >Hey Christophe, Michael, >> > >

Re: drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Michael Ellerman
Vishal Chourasia writes: > Hi, > I am getting Invalid wait context warning printed when rebooting lpar > > kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding > spinlock `devdata_mutex` > > Note: Name of the spinlock is misleading. Oof, yeah let's rename that to devdata_spinl

Re: [PATCH v3] ftrace: Consolidate ftrace_regs accessor functions for archs using pt_regs

2024-10-11 Thread Catalin Marinas
On Thu, Oct 10, 2024 at 08:21:14PM -0400, Steven Rostedt wrote: > diff --git a/arch/arm64/include/asm/ftrace.h b/arch/arm64/include/asm/ftrace.h > index bbb69c7751b9..5ccff4de7f09 100644 > --- a/arch/arm64/include/asm/ftrace.h > +++ b/arch/arm64/include/asm/ftrace.h > @@ -54,6 +54,7 @@ extern void

Re: [RFC v2 0/4] cma: powerpc fadump fixes

2024-10-11 Thread David Hildenbrand
On 11.10.24 12:17, Michael Ellerman wrote: "Ritesh Harjani (IBM)" writes: Please find the v2 of cma related powerpc fadump fixes. Patch-1 is a change in mm/cma.c to make sure we return an error if someone uses cma_init_reserved_mem() before the pageblock_order is initalized. I guess, it's bes

Re: [RFC v2 0/4] cma: powerpc fadump fixes

2024-10-11 Thread Michael Ellerman
"Ritesh Harjani (IBM)" writes: > Please find the v2 of cma related powerpc fadump fixes. > > Patch-1 is a change in mm/cma.c to make sure we return an error if someone > uses > cma_init_reserved_mem() before the pageblock_order is initalized. > > I guess, it's best if Patch-1 goes via mm tree and

Re: [RFC v2 1/4] cma: Enforce non-zero pageblock_order during cma_init_reserved_mem()

2024-10-11 Thread David Hildenbrand
On 11.10.24 09:23, Ritesh Harjani (IBM) wrote: cma_init_reserved_mem() checks base and size alignment with CMA_MIN_ALIGNMENT_BYTES. However, some users might call this during early boot when pageblock_order is 0. That means if base and size does not have pageblock_order alignment, it can cause fu

Re: [RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-11 Thread Paolo Bonzini
On Fri, Oct 11, 2024 at 12:04 PM Vishal Chourasia wrote: > diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig > index 8094a01974cca..568dc856f0dfa 100644 > --- a/arch/powerpc/Kconfig > +++ b/arch/powerpc/Kconfig > @@ -168,6 +168,7 @@ config PPC > select ARCH_STACKWALK > selec

Re: [RFC] powerpc/kvm: Fix spinlock member access for PREEMPT_RT

2024-10-11 Thread Vishal Chourasia
On Thu, Oct 10, 2024 at 11:23:55PM +0200, Paolo Bonzini wrote: > On 10/10/24 20:09, Vishal Chourasia wrote: > > Hi, > > > > While building the kernel with CONFIG_PREEMPT_RT, I encountered several > > compilation errors in the PowerPC KVM code. The issues appear in > > book3s_hv_rm_mmu.c where it t

drivers/nx: Invalid wait context issue when rebooting

2024-10-11 Thread Vishal Chourasia
Hi, I am getting Invalid wait context warning printed when rebooting lpar kexec/61926 is trying to acquire `of_reconfig_chain.rwsem` while holding spinlock `devdata_mutex` Note: Name of the spinlock is misleading. In my case, I compiled a new vmlinux file and loaded it into the running kernel us

Re: [PATCH] ASoC: fsl_esai: change dev_warn to dev_dbg in irq handler

2024-10-11 Thread Iuliana Prodan
On 10/11/2024 7:53 AM, Shengjiu Wang wrote: Irq handler need to be executed as fast as possible, so the log in irq handler is better to use dev_dbg which needs to be enabled when debugging. Signed-off-by: Shengjiu Wang Reviewed-by: Iuliana Prodan Thanks, Iulia --- sound/soc/fsl/fsl_esai.c

Re: [PATCH v5 7/8] execmem: add support for cache of large ROX pages

2024-10-11 Thread Christoph Hellwig
On Thu, Oct 10, 2024 at 03:57:33PM +0300, Mike Rapoport wrote: > On Wed, Oct 09, 2024 at 11:58:33PM -0700, Christoph Hellwig wrote: > > On Wed, Oct 09, 2024 at 09:08:15PM +0300, Mike Rapoport wrote: > > > /** > > > * struct execmem_info - architecture parameters for code allocations > > > + * @f

[RFC v2 4/4] fadump: Move fadump_cma_init to setup_arch() after initmem_init()

2024-10-11 Thread Ritesh Harjani (IBM)
During early init CMA_MIN_ALIGNMENT_BYTES can be PAGE_SIZE, since pageblock_order is still zero and it gets initialized later during initmem_init() e.g. setup_arch() -> initmem_init() -> sparse_init() -> set_pageblock_order() One such use case where this causes issues is - early_setup() -> early_i

[RFC v2 3/4] fadump: Reserve page-aligned boot_memory_size during fadump_reserve_mem

2024-10-11 Thread Ritesh Harjani (IBM)
This patch refactors all CMA related initialization and alignment code to within fadump_cma_init() which gets called in the end. This also means that we keep [reserve_dump_area_start, boot_memory_size] page aligned during fadump_reserve_mem(). Then later in fadump_cma_init() we extract the aligned

[RFC v2 2/4] fadump: Refactor and prepare fadump_cma_init for late init

2024-10-11 Thread Ritesh Harjani (IBM)
We anyway don't use any return values from fadump_cma_init(). Since fadump_reserve_mem() from where fadump_cma_init() gets called today, already has the required checks. This patch makes this function return type as void. Let's also handle extra cases like return if fadump_supported is false or dum

[RFC v2 1/4] cma: Enforce non-zero pageblock_order during cma_init_reserved_mem()

2024-10-11 Thread Ritesh Harjani (IBM)
cma_init_reserved_mem() checks base and size alignment with CMA_MIN_ALIGNMENT_BYTES. However, some users might call this during early boot when pageblock_order is 0. That means if base and size does not have pageblock_order alignment, it can cause functional failures during cma activate area. So l

[RFC v2 0/4] cma: powerpc fadump fixes

2024-10-11 Thread Ritesh Harjani (IBM)
Please find the v2 of cma related powerpc fadump fixes. Patch-1 is a change in mm/cma.c to make sure we return an error if someone uses cma_init_reserved_mem() before the pageblock_order is initalized. I guess, it's best if Patch-1 goes via mm tree and since rest of the changes are powerpc fadump

RE: [PATCH net] net: enetc: add missing static descriptor and inline keyword

2024-10-11 Thread Claudiu Manoil
> -Original Message- > From: Wei Fang > Sent: Friday, October 11, 2024 6:01 AM [...] > Subject: [PATCH net] net: enetc: add missing static descriptor and inline > keyword > > Fix the build warnings when CONFIG_FSL_ENETC_MDIO is not enabled. > The detailed warnings are shown as follows. >