Re: [PATCH v3 07/13] s390: add pte_free_defer() for pgtables sharing page

2023-07-12 Thread Alexander Gordeev
On Tue, Jul 11, 2023 at 09:38:35PM -0700, Hugh Dickins wrote: > Add s390-specific pte_free_defer(), to free table page via call_rcu(). > pte_free_defer() will be called inside khugepaged's retract_page_tables() > loop, where allocating extra memory cannot be relied upon. This precedes > the

[PATCH] powerpc/crypto: Add gitignore for generated P10 AES/GCM .S files

2023-07-12 Thread Russell Currey
aesp10-ppc.S and ghashp10-ppc.S are autogenerated and not tracked by git, so they should be ignored. This is doing the same as the P8 files in drivers/crypto/vmx/.gitignore but for the P10 files in arch/powerpc/crypto. Signed-off-by: Russell Currey --- Fixes: 81d358b118dc ("powerpc/crypto: Fix

Re: [PATCH 17/17] perf tests task_analyzer: skip tests if no libtraceevent support

2023-07-12 Thread Ian Rogers
On Tue, Jun 13, 2023 at 10:04 AM Athira Rajeev wrote: > > From: Aditya Gupta > > Test "perf script task-analyzer tests" fails in environment with missing > libtraceevent support, as perf record fails to create the perf.data > file, which further tests depend on. > > Instead, when perf is not

Re: [PATCH] soc: fsl: qe: Replace all non-returning strlcpy with strscpy

2023-07-12 Thread Kees Cook
On Mon, Jul 10, 2023 at 04:46:50PM +, Leo Li wrote: > > > > -Original Message- > > From: Azeem Shaikh > > Sent: Sunday, July 9, 2023 9:36 PM > > To: Kees Cook > > Cc: Qiang Zhao ; linux-harden...@vger.kernel.org; > > linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; Leo

[PATCH v6 04/14] ia64/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/ia64/Kconfig | 28

[PATCH v6 14/14] kexec: rename ARCH_HAS_KEXEC_PURGATORY

2023-07-12 Thread Eric DeVolder
The Kconfig refactor to consolidate KEXEC and CRASH options utilized option names of the form ARCH_SUPPORTS_. Thus rename the ARCH_HAS_KEXEC_PURGATORY to ARCH_SUPPORTS_KEXEC_PURGATORY to follow the same. Signed-off-by: Eric DeVolder --- arch/powerpc/Kconfig | 2 +- arch/riscv/Kbuild

[PATCH v6 13/14] sh/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Acked-by: John Paul Adrian Glaubitz ---

[PATCH v6 12/14] s390/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Acked-by: Alexander Gordeev ---

[PATCH v6 11/14] riscv/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Acked-by: Palmer Dabbelt ---

[PATCH v6 10/14] powerpc/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Reviewed-by: Sourabh Jain ---

[PATCH v6 09/14] parisc/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/parisc/Kconfig | 34

[PATCH v6 08/14] mips/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Acked-by: Thomas Bogendoerfer ---

[PATCH v6 06/14] loongarch/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/loongarch/Kconfig | 26

[PATCH v6 07/14] m68k/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder Reviewed-by: Geert Uytterhoeven

[PATCH v6 05/14] arm64/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/arm64/Kconfig | 64

[PATCH v6 00/14] refactor Kconfig to consolidate KEXEC and CRASH options

2023-07-12 Thread Eric DeVolder
The Kconfig is refactored to consolidate KEXEC and CRASH options from various arch//Kconfig files into new file kernel/Kconfig.kexec. The Kconfig.kexec is now a submenu titled "Kexec and crash features" located under "General Setup". The following options are impacted: - KEXEC - KEXEC_FILE -

[PATCH v6 01/14] kexec: consolidate kexec and crash options into kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The config options for kexec and crash features are consolidated into new file kernel/Kconfig.kexec. Under the "General Setup" submenu is a new submenu "Kexec and crash handling". All the kexec and crash options that were once in the arch-dependent submenu "Processor type and features" are now

[PATCH v6 03/14] arm/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/arm/Kconfig | 29

[PATCH v6 02/14] x86/kexec: refactor for kernel/Kconfig.kexec

2023-07-12 Thread Eric DeVolder
The kexec and crash kernel options are provided in the common kernel/Kconfig.kexec. Utilize the common options and provide the ARCH_SUPPORTS_ and ARCH_SELECTS_ entries to recreate the equivalent set of KEXEC and CRASH options. Signed-off-by: Eric DeVolder --- arch/x86/Kconfig | 92

Re: [PATCH 01/79] fs: add ctime accessors infrastructure

2023-07-12 Thread Randy Dunlap
Hi Jeff, On arch/um/, (subarch i386 or x86_64), hostfs build fails with: ../fs/hostfs/hostfs_kern.c:520:36: error: incompatible type for arg ument 2 of 'inode_set_ctime_to_ts' ../include/linux/fs.h:1499:73: note: expected 'struct timespec64' b ut argument is of type 'const struct hostfs_timespec

Re: [PATCH v3 3/7] mm/hotplug: Allow architecture to override memmap on memory support check

2023-07-12 Thread John Hubbard
On 7/11/23 09:09, David Hildenbrand wrote: ... Can we make that a __weak function instead? We can. It is confusing because we do have these two patterns within the kernel where we use #ifndef x #endif vs __weak x What is the recommended way to override ? I have mostly been using #ifndef

Re: [PATCH v3 4/7] mm/hotplug: Allow pageblock alignment via altmap reservation

2023-07-12 Thread David Hildenbrand
On 12.07.23 15:50, Aneesh Kumar K.V wrote: David Hildenbrand writes: On 12.07.23 05:16, Aneesh Kumar K V wrote: On 7/11/23 10:49 PM, David Hildenbrand wrote: On 11.07.23 06:48, Aneesh Kumar K.V wrote: Add a new kconfig option that can be selected if we want to allow pageblock alignment by

Re: [PATCH v4 00/15] powerpc/objtool: uaccess validation for PPC32 (v4)

2023-07-12 Thread Christophe Leroy
Le 12/07/2023 à 16:23, Peter Zijlstra a écrit : > On Tue, Jul 11, 2023 at 06:08:26PM +0200, Christophe Leroy wrote: >> This series adds UACCESS validation for PPC32. It includes >> a dozen of changes to objtool core. >> >> It applies on top of series "Cleanup/Optimise KUAP (v3)" >>

Re: [RFC][PATCH] sched: Rename DIE domain

2023-07-12 Thread Peter Zijlstra
On Wed, Jul 12, 2023 at 04:02:38PM +0100, Valentin Schneider wrote: > On 12/07/23 16:10, Peter Zijlstra wrote: > > Hi > > > > Thomas just tripped over the x86 topology setup creating a 'DIE' domain > > for the package mask :-) > > > > Since these names are SCHED_DEBUG only, rename them. > > I

Re: [RFC][PATCH] sched: Rename DIE domain

2023-07-12 Thread Valentin Schneider
On 12/07/23 16:10, Peter Zijlstra wrote: > Hi > > Thomas just tripped over the x86 topology setup creating a 'DIE' domain > for the package mask :-) > > Since these names are SCHED_DEBUG only, rename them. > I don't think anybody *should* be relying on this, but who knows. > FWIW I don't care

Re: [PATCH v4 00/15] powerpc/objtool: uaccess validation for PPC32 (v4)

2023-07-12 Thread Peter Zijlstra
On Tue, Jul 11, 2023 at 06:08:26PM +0200, Christophe Leroy wrote: > This series adds UACCESS validation for PPC32. It includes > a dozen of changes to objtool core. > > It applies on top of series "Cleanup/Optimise KUAP (v3)" >

[RFC][PATCH] sched: Rename DIE domain

2023-07-12 Thread Peter Zijlstra
Hi Thomas just tripped over the x86 topology setup creating a 'DIE' domain for the package mask :-) Since these names are SCHED_DEBUG only, rename them. I don't think anybody *should* be relying on this, but who knows. Signed-off-by: Peter Zijlstra (Intel) --- arch/powerpc/kernel/smp.c | 2

Re: [PATCH v5] Revert "powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto"

2023-07-12 Thread Christophe Leroy
Le 12/07/2023 à 15:45, Michael Ellerman a écrit : > From: Christophe Leroy > > This partly reverts commit 1e688dd2a3d6759d416616ff07afc4bb836c4213. > > That commit aimed at optimising the code around generation of > WARN_ON/BUG_ON but this leads to a lot of dead code erroneously > generated

Re: [PATCH v3 4/7] mm/hotplug: Allow pageblock alignment via altmap reservation

2023-07-12 Thread Aneesh Kumar K.V
David Hildenbrand writes: > On 12.07.23 05:16, Aneesh Kumar K V wrote: >> On 7/11/23 10:49 PM, David Hildenbrand wrote: >>> On 11.07.23 06:48, Aneesh Kumar K.V wrote: Add a new kconfig option that can be selected if we want to allow pageblock alignment by reserving pages in the vmemmap

[PATCH] ASoC: fsl_sai: Disable bit clock with transmitter

2023-07-12 Thread Matus Gajdos
Otherwise bit clock remains running writing invalid data to the DAC. Signed-off-by: Matus Gajdos --- sound/soc/fsl/fsl_sai.c | 2 +- sound/soc/fsl/fsl_sai.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index

Fwd: [PATCH] powerpc/kernel: Fix comment typo

2023-07-12 Thread pangzizhen001
Delete duplicate word "the" Signed-off-by: Zizhen Pang --- arch/powerpc/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index b68898ac07e1..6e35037282b6 100644 ---

[PATCH v5] Revert "powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto"

2023-07-12 Thread Michael Ellerman
From: Christophe Leroy This partly reverts commit 1e688dd2a3d6759d416616ff07afc4bb836c4213. That commit aimed at optimising the code around generation of WARN_ON/BUG_ON but this leads to a lot of dead code erroneously generated by GCC. That dead code becomes a problem when we start using

Re: [PATCH v2 1/2] powerpc/tpm: Create linux,sml-base/size as big endian

2023-07-12 Thread Michael Ellerman
Jarkko Sakkinen writes: > On Tue, 2023-07-11 at 08:47 -0400, Stefan Berger wrote: >> On 7/10/23 17:23, Jarkko Sakkinen wrote: >> > On Thu, 2023-06-15 at 22:37 +1000, Michael Ellerman wrote: >> > > There's code in prom_instantiate_sml() to do a "SML handover" (Stored >> > > Measurement Log) from

Re: [PATCH v2 1/2] powerpc/tpm: Create linux,sml-base/size as big endian

2023-07-12 Thread Michael Ellerman
Stefan Berger writes: > On 7/10/23 17:23, Jarkko Sakkinen wrote: >> On Thu, 2023-06-15 at 22:37 +1000, Michael Ellerman wrote: >>> There's code in prom_instantiate_sml() to do a "SML handover" (Stored >>> Measurement Log) from OF to Linux, before Linux shuts down Open >>> Firmware. >>> >>> This

Re: [PATCH] ASoC: imx-pcm-rpmsg: Set PCM hardware parameters separately

2023-07-12 Thread Mark Brown
On Sun, 25 Jun 2023 14:54:12 +0800, Chancel Liu wrote: > Different PCM devices may have different PCM hardware parameters. It > requires PCM hardware parameters set separately if there is more than > one rpmsg sound card. > > Applied to

Re: [PATCH 10/17] hid/picolcd: Remove flag FBINFO_FLAG_DEFAULT from fbdev driver

2023-07-12 Thread Bruno Prémont
On Mon, 10 Jul 2023 14:50:14 +0200 Thomas Zimmermann wrote: > The flag FBINFO_FLAG_DEFAULT is 0 and has no effect, as struct > fbinfo.flags has been allocated to zero by framebuffer_alloc(). So do > not set it. > > Flags should signal differences from the default values. After cleaning > up all

Re: [PATCH v3 4/7] mm/hotplug: Allow pageblock alignment via altmap reservation

2023-07-12 Thread David Hildenbrand
On 12.07.23 05:16, Aneesh Kumar K V wrote: On 7/11/23 10:49 PM, David Hildenbrand wrote: On 11.07.23 06:48, Aneesh Kumar K.V wrote: Add a new kconfig option that can be selected if we want to allow pageblock alignment by reserving pages in the vmemmap altmap area. This implies we will be

Re: [PATCH 00/17] fbdev: Remove FBINFO_DEFAULT and FBINFO_FLAG_DEFAULT flags

2023-07-12 Thread Thomas Zimmermann
Am 11.07.23 um 16:47 schrieb Sam Ravnborg: Hi Thomas, On Tue, Jul 11, 2023 at 08:24:40AM +0200, Thomas Zimmermann wrote: Hi Sam Am 10.07.23 um 19:19 schrieb Sam Ravnborg: Hi Thomas, On Mon, Jul 10, 2023 at 02:50:04PM +0200, Thomas Zimmermann wrote: Remove the unused flags FBINFO_DEFAULT