[PATCH] powerpc/chrp: Make hydra_init() static

2021-02-23 Thread Geert Uytterhoeven
Commit 407d418f2fd4c20a ("powerpc/chrp: Move PHB discovery") moved the sole call to hydra_init() to the source file where it is defined, so it can be made static. Signed-off-by: Geert Uytterhoeven --- Compile-tested only. My LongTrail died in 2004. --- arch/powerpc/include/asm/hydra.h | 2 --

Re: [PATCH] powerpc/perf: Fix handling of privilege level checks in perf interrupt context

2021-02-23 Thread Ondrej Mosnacek
(CC'ing LSM and SELinux lists; the initial message can be found here: https://lore.kernel.org/linuxppc-dev/1614061909-1734-1-git-send-email-atraj...@linux.vnet.ibm.com/T/) On Tue, Feb 23, 2021 at 7:32 AM Athira Rajeev wrote: > > Running "perf mem record" in powerpc platforms with selinux enabled

Re: [PATCH] powerpc/perf: Fix handling of privilege level checks in perf interrupt context

2021-02-23 Thread Peter Zijlstra
On Tue, Feb 23, 2021 at 01:31:49AM -0500, Athira Rajeev wrote: > Running "perf mem record" in powerpc platforms with selinux enabled > resulted in soft lockup's. Below call-trace was seen in the logs: > > CPU: 58 PID: 3751 Comm: sssd_nss Not tainted 5.11.0-rc7+ #2 > NIP: c0dff3d4 LR: c000

Re: [PATCH] powerpc/perf: Fix handling of privilege level checks in perf interrupt context

2021-02-23 Thread Michael Ellerman
Peter Zijlstra writes: > On Tue, Feb 23, 2021 at 01:31:49AM -0500, Athira Rajeev wrote: >> Running "perf mem record" in powerpc platforms with selinux enabled >> resulted in soft lockup's. Below call-trace was seen in the logs: ... >> >> Since the purpose of this security hook is to control acces

Re: [PATCH for 5.10] powerpc/32: Preserve cr1 in exception prolog stack check to fix build error

2021-02-23 Thread Christophe Leroy
Le 15/02/2021 à 15:30, Greg KH a écrit : On Fri, Feb 12, 2021 at 08:57:14AM +, Christophe Leroy wrote: This is backport of 3642eb21256a ("powerpc/32: Preserve cr1 in exception prolog stack check to fix build error") for kernel 5.10 It fixes the build failure on v5.10 reported by kernel t

Re: [PATCH v6 06/10] powerpc/signal64: Replace setup_sigcontext() w/ unsafe_setup_sigcontext()

2021-02-23 Thread Christophe Leroy
Le 21/02/2021 à 02:23, Christopher M. Riedl a écrit : Previously setup_sigcontext() performed a costly KUAP switch on every uaccess operation. These repeated uaccess switches cause a significant drop in signal handling performance. Rewrite setup_sigcontext() to assume that a userspace write a

Re: [PATCH v6 01/10] powerpc/uaccess: Add unsafe_copy_from_user

2021-02-23 Thread Christophe Leroy
Le 21/02/2021 à 02:23, Christopher M. Riedl a écrit : Just wrap __copy_tofrom_user() for the usual 'unsafe' pattern which accepts a label to goto on error. Signed-off-by: Christopher M. Riedl Reviewed-by: Daniel Axtens --- arch/powerpc/include/asm/uaccess.h | 3 +++ 1 file changed, 3 ins

Re: [PATCH v6 07/10] powerpc/signal64: Replace restore_sigcontext() w/ unsafe_restore_sigcontext()

2021-02-23 Thread Christophe Leroy
Le 21/02/2021 à 02:23, Christopher M. Riedl a écrit : Previously restore_sigcontext() performed a costly KUAP switch on every uaccess operation. These repeated uaccess switches cause a significant drop in signal handling performance. Rewrite restore_sigcontext() to assume that a userspace rea

[PASEMI] Nemo board doesn't boot anymore because of moving pas_pci_init

2021-02-23 Thread Christian Zigotzky
Hello, The Nemo board [1] with a P.A. Semi PA6T SoC doesn't boot anymore because of moving "pas_pci_init" to the device tree adoption [2] in the latest PowerPC updates 5.12-1 [3]. Unfortunately the Nemo board doesn't have it in its device tree. I reverted this commit and after that the Nemo

Re: [PASEMI] Nemo board doesn't boot anymore because of moving pas_pci_init

2021-02-23 Thread Olof Johansson
Hi, On Tue, Feb 23, 2021 at 1:43 PM Christian Zigotzky wrote: > > Hello, > > The Nemo board [1] with a P.A. Semi PA6T SoC doesn't boot anymore > because of moving "pas_pci_init" to the device tree adoption [2] in the > latest PowerPC updates 5.12-1 [3]. > > Unfortunately the Nemo board doesn't ha

Re: [PATCH] ibmveth: Switch to using the new API kobj_to_dev()

2021-02-23 Thread Jakub Kicinski
On Mon, 22 Feb 2021 16:02:21 +0800 Yang Li wrote: > fixed the following coccicheck: > ./drivers/net/ethernet/ibm/ibmveth.c:1805:51-52: WARNING opportunity for > kobj_to_dev() > > Reported-by: Abaci Robot > Signed-off-by: Yang Li # Form letter - net-next is closed We have already sent the netwo

Re: [PATCH v2 1/2] ima: Free IMA measurement buffer on error

2021-02-23 Thread Petr Vorel
Hi all, > > > > > > > > This is not the correct way to submit patches for inclusion in the > > > > stable kernel tree. Please read: > > > > > > > > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html > > > > for how to do this properly. > > > > > > > Thanks for t

Re: [PATCH v2] selftests/powerpc: Fix L1D flushing tests for Power10

2021-02-23 Thread Daniel Axtens
Russell Currey writes: > The rfi_flush and entry_flush selftests work by using the PM_LD_MISS_L1 > perf event to count L1D misses. The value of this event has changed > over time: > > - Power7 uses 0x400f0 > - Power8 and Power9 use both 0x400f0 and 0x3e054 > - Power10 uses only 0x3e054 > > Rathe

Re: [PASEMI] Nemo board doesn't boot anymore because of moving pas_pci_init

2021-02-23 Thread Michael Ellerman
Olof Johansson writes: > Hi, > > On Tue, Feb 23, 2021 at 1:43 PM Christian Zigotzky > wrote: >> >> Hello, >> >> The Nemo board [1] with a P.A. Semi PA6T SoC doesn't boot anymore >> because of moving "pas_pci_init" to the device tree adoption [2] in the >> latest PowerPC updates 5.12-1 [3]. >> >>

Re: [PATCH v19 01/13] kexec: Move ELF fields to struct kimage

2021-02-23 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > ELF related fields elf_headers, elf_headers_sz, and elf_load_addr are > defined in architecture specific 'struct kimage_arch' for x86, powerpc, > and arm64. The name of these fields are different in these > architectures that makes it hard to have a common cod

Re: [PATCH v19 02/13] arm64: Use ELF fields defined in 'struct kimage'

2021-02-23 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > ELF related fields elf_headers, elf_headers_sz, and elf_headers_mem > have been moved from 'struct kimage_arch' to 'struct kimage' as > elf_headers, elf_headers_sz, and elf_load_addr respectively. > > Use the ELF fields defined in 'struct kimage'. > > Signed-of

Re: [PATCH v19 03/13] powerpc: Use ELF fields defined in 'struct kimage'

2021-02-23 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > ELF related fields elf_headers, elf_headers_sz, and elfcorehdr_addr > have been moved from 'struct kimage_arch' to 'struct kimage' as > elf_headers, elf_headers_sz, and elf_load_addr respectively. > > Use the ELF fields defined in 'struct kimage'. > > Signed-of

Re: [PATCH v19 04/13] x86: Use ELF fields defined in 'struct kimage'

2021-02-23 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > ELF related fields elf_headers, elf_headers_sz, and elf_load_addr > have been moved from 'struct kimage_arch' to 'struct kimage'. > > Use the ELF fields defined in 'struct kimage'. > > Signed-off-by: Lakshmi Ramasubramanian > Suggested-by: Rob Herring > Fixes

Re: [PATCH v19 04/13] x86: Use ELF fields defined in 'struct kimage'

2021-02-23 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > ELF related fields elf_headers, elf_headers_sz, and elf_load_addr > have been moved from 'struct kimage_arch' to 'struct kimage'. > > Use the ELF fields defined in 'struct kimage'. > > Signed-off-by: Lakshmi Ramasubramanian > Suggested-by: Rob Herring > Fixes

Re: [PATCH v19 05/13] of: Add a common kexec FDT setup function

2021-02-23 Thread Thiago Jung Bauermann
Lakshmi Ramasubramanian writes: > From: Rob Herring > > Both arm64 and powerpc do essentially the same FDT /chosen setup for > kexec. The differences are either omissions that arm64 should have > or additional properties that will be ignored. The setup code can be > combined and shared by bo

Re: [PATCH v19 05/13] of: Add a common kexec FDT setup function

2021-02-23 Thread Lakshmi Ramasubramanian
On 2/23/21 5:20 PM, Thiago Jung Bauermann wrote: Lakshmi Ramasubramanian writes: From: Rob Herring Both arm64 and powerpc do essentially the same FDT /chosen setup for kexec. The differences are either omissions that arm64 should have or additional properties that will be ignored. The set

Re: [PASEMI] Nemo board doesn't boot anymore because of moving pas_pci_init

2021-02-23 Thread Oliver O'Halloran
On Wed, Feb 24, 2021 at 11:55 AM Michael Ellerman wrote: > > Olof Johansson writes: > > Hi, > > > > On Tue, Feb 23, 2021 at 1:43 PM Christian Zigotzky > > wrote: > >> > >> Hello, > >> > >> The Nemo board [1] with a P.A. Semi PA6T SoC doesn't boot anymore > >> because of moving "pas_pci_init" to

[PATCH] powerpc/syscall: Force inlining of __prep_irq_for_enabled_exit()

2021-02-23 Thread Christophe Leroy
As reported by kernel test robot, a randconfig with high amount of debuging options can lead to build failure for undefined reference to replay_soft_interrupts() on ppc32. This is due to gcc not seeing that __prep_irq_for_enabled_exit() always returns true on ppc32 because it doesn't inline it for

[PATCH] powerpc: remove unneeded semicolon

2021-02-23 Thread Jiapeng Chong
Fix the following coccicheck warnings: ./arch/powerpc/kernel/prom_init.c:2986:2-3: Unneeded semicolon. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- arch/powerpc/kernel/prom_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/prom_init.c b

[PATCH v2] vio: make remove callback return void

2021-02-23 Thread Uwe Kleine-König
The driver core ignores the return value of struct bus_type::remove() because there is only little that can be done. To simplify the quest to make this function return void, let struct vio_driver::remove() return void, too. All users already unconditionally return 0, this commit makes it obvious th

[PATCH] arch: powerpc: kernel: Change droping to dropping in the file traps.c

2021-02-23 Thread Bhaskar Chowdhury
s/droping/dropping/ Signed-off-by: Bhaskar Chowdhury --- arch/powerpc/kernel/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c index 1583fd1c6010..83a53b67412a 100644 --- a/arch/powerpc/kernel/traps.c +++ b/arc