Re: [PATCH] powerpc/pseries: Fix CONFIG_DTL=n build

2022-10-14 Thread Michael Ellerman
On Thu, 13 Oct 2022 17:31:31 +1000, Nicholas Piggin wrote: > The recently moved dtl code must be compiled-in if > CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y even if CONFIG_DTL=n. > > Applied to powerpc/fixes. [1/1] powerpc/pseries: Fix CONFIG_DTL=n build

Re: [PATCH] powerpc/64s/interrupt: Fix lost interrupts when returning to soft-masked context

2022-10-14 Thread Michael Ellerman
On Thu, 13 Oct 2022 16:44:18 +1000, Nicholas Piggin wrote: > It's possible for an interrupt returning to an irqs-disabled context to > lose a pending soft-masked irq because it branches to part of the exit > code for irqs-enabled contexts, which is meant to clear only the > PACA_IRQS_HARD_DIS flag

Re: (subset) [PATCH 1/2] powerpc/32: fix syscall wrappers with 64-bit arguments of unaligned register-pairs

2022-10-14 Thread Michael Ellerman
On Wed, 12 Oct 2022 13:53:34 +1000, Nicholas Piggin wrote: > powerpc 32-bit system call (and function) calling convention for 64-bit > arguments requires the next available odd-pair (two sequential registers > with the first being odd-numbered) from the standard register argument > allocation. >

[PATCH 10/13] powerpc: ptrace: user_regset_copyin_ignore() always returns 0

2022-10-14 Thread Sergey Shtylyov
user_regset_copyin_ignore() always returns 0, so checking its result seems pointless -- don't do this anymore... Signed-off-by: Sergey Shtylyov --- arch/powerpc/kernel/ptrace/ptrace-tm.c | 10 +- arch/powerpc/kernel/ptrace/ptrace-view.c | 10 +- 2 files changed, 10

[PATCH 00/13] Make user_regset_copyin_ignore() *void*

2022-10-14 Thread Sergey Shtylyov
Here are 13 patches against the 'next-20221014' tag of the 'linux-next.git' repo. I'm not sure how this cross-arch series should be merged -- perhaps thru Andrew Morton's tree? user_regset_copyin_ignore() apparently cannot fail and so always returns 0. Let's first remove the result checks

Re: [PATCH 1/2] tools/perf/tests/shell: Update stat+csv_output.sh to include sanity check for topology

2022-10-14 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 06, 2022 at 09:21:48PM +0530, Athira Rajeev escreveu: > Testcase stat+csv_output.sh fails in powerpc: > > 84: perf stat CSV output linter: FAILED! Thanks, applied both patches. - Arnaldo

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

2022-10-14 Thread pr-tracker-bot
The pull request you sent on Fri, 14 Oct 2022 22:41:42 +1100: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-6.1-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/70609c1495ae64e6534d8db7d6280dd7c79de815 Thank you! --

Re: Issues with the first PowerPC updates for the kernel 6.1

2022-10-14 Thread Olof Johansson
Hi, On Fri, Oct 14, 2022 at 9:11 AM Christian Zigotzky wrote: > > Hi All, > > make oldconfig has asked because of the CPU family. I choosed GENERIC for my > P.A. Semi PWRficient PA6T-1682M. Is this correct? Maybe this is the problem. > > config GENERIC_CPU > - bool "Generic (POWER4 and above)"

Re: [PATCH] powerpc/64s/interrupt: Fix lost interrupts when returning to soft-masked context

2022-10-14 Thread Guenter Roeck
On Thu, Oct 13, 2022 at 04:44:18PM +1000, Nicholas Piggin wrote: > It's possible for an interrupt returning to an irqs-disabled context to > lose a pending soft-masked irq because it branches to part of the exit > code for irqs-enabled contexts, which is meant to clear only the >

Re: [PATCH] powerpc/pseries: Fix CONFIG_DTL=n build

2022-10-14 Thread Guenter Roeck
On Thu, Oct 13, 2022 at 05:31:31PM +1000, Nicholas Piggin wrote: > The recently moved dtl code must be compiled-in if > CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y even if CONFIG_DTL=n. > > Reported-by: Guenter Roeck > Fixes: 6ba5aa541aaa0 ("powerpc/pseries: Move dtl scanning and steal time >

[PATCH v3 1/2] RISC-V: Fix /proc/cpuinfo cpumask warning

2022-10-14 Thread Andrew Jones
Commit 78e5a3399421 ("cpumask: fix checking valid cpu range") has started issuing warnings[*] when cpu indices equal to nr_cpu_ids - 1 are passed to cpumask_next* functions. seq_read_iter() and cpuinfo's start and next seq operations implement a pattern like n = cpumask_next(n - 1, mask);

[PATCH v3 2/2] x86: Fix /proc/cpuinfo cpumask warning

2022-10-14 Thread Andrew Jones
Commit 78e5a3399421 ("cpumask: fix checking valid cpu range") has started issuing warnings[*] when cpu indices equal to nr_cpu_ids - 1 are passed to cpumask_next* functions. seq_read_iter() and cpuinfo's start and next seq operations implement a pattern like n = cpumask_next(n - 1, mask);

[PATCH v3 0/2] Fix /proc/cpuinfo cpumask warning

2022-10-14 Thread Andrew Jones
Commit 78e5a3399421 ("cpumask: fix checking valid cpu range") has started issuing warnings[*] when cpu indices equal to nr_cpu_ids - 1 are passed to cpumask_next* functions. seq_read_iter() and cpuinfo's start and next seq operations implement a pattern like n = cpumask_next(n - 1, mask);

Re: [PATCH v2] perf: Rewrite core context handling

2022-10-14 Thread Peter Zijlstra
On Fri, Oct 14, 2022 at 03:26:07PM +0530, Ravi Bangoria wrote: > On 13-Oct-22 4:29 PM, Peter Zijlstra wrote: > > On Thu, Oct 13, 2022 at 03:37:23PM +0530, Ravi Bangoria wrote: > > > >>> - refcount_t refcount; > >>> + refcount_t refcount; /* event <-> ctx

Re: [PATCH AUTOSEL 4.9 1/3] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Joe Perches
On Fri, 2022-10-14 at 09:54 -0400, Sasha Levin wrote: > From: ye xingchen > > [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] > > Use timersub() function to simplify the code. Why should a code simplification be backported? > > Reported-by: Zeal Robot > Signed-off-by: ye

[PATCH] powerpc/perf: Fix hv-24x7 metric events for power10

2022-10-14 Thread Kajol Jain
Testcase stat_all_metrics.sh fails in powerpc: 90: perf all metrics test : FAILED! The testcase "stat_all_metrics.sh" verifies perf stat result for all the metric events present in perf list. It runs perf metric events with various commands and expects non-empty metric result. Incase of

[PATCH AUTOSEL 4.9 3/3] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 4.9 2/3] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 4.9 1/3] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 4.14 4/4] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 4.14 3/4] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 4.14 2/4] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 4.14 1/4] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 4.19 5/5] powerpc/64: Fix msr_check_and_set/clear MSR[EE] race

2022-10-14 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0fa6831811f62cfc10415d731bcf9fde2647ad81 ] irq soft-masking means that when Linux irqs are disabled, the MSR[EE] value can change from 1 to 0 asynchronously: if a masked interrupt of the PACA_IRQ_MUST_HARD_MASK variety fires while irqs are disabled, the

[PATCH AUTOSEL 4.19 4/5] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 4.19 3/5] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 4.19 2/5] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 4.19 1/5] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 5.4 7/7] powerpc/64: Fix msr_check_and_set/clear MSR[EE] race

2022-10-14 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0fa6831811f62cfc10415d731bcf9fde2647ad81 ] irq soft-masking means that when Linux irqs are disabled, the MSR[EE] value can change from 1 to 0 asynchronously: if a masked interrupt of the PACA_IRQ_MUST_HARD_MASK variety fires while irqs are disabled, the

[PATCH AUTOSEL 5.4 6/7] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 5.4 5/7] powerpc/perf: Fix branch_filter support for multiple filters

2022-10-14 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit b9c001276d4a756f98cc7dc4672eff5343949203 ] For PERF_SAMPLE_BRANCH_STACK sample type, different branch_sample_type ie branch filters are supported. The branch filters are requested via event attribute "branch_sample_type". Multiple branch filters can be

[PATCH AUTOSEL 5.4 4/7] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 5.4 3/7] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 5.4 2/7] powerpc/math-emu: Remove -w build flag and fix warnings

2022-10-14 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 7245fc5bb7a966852d5bd7779d1f5855530b461a ] As reported by Nathan, the module_init() macro was not taken into account because the header was missing. That means spe_mathemu_init() was never called. This should have been detected by gcc at build time, but

[PATCH AUTOSEL 5.4 1/7] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 5.10 7/7] powerpc/64: Fix msr_check_and_set/clear MSR[EE] race

2022-10-14 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0fa6831811f62cfc10415d731bcf9fde2647ad81 ] irq soft-masking means that when Linux irqs are disabled, the MSR[EE] value can change from 1 to 0 asynchronously: if a masked interrupt of the PACA_IRQ_MUST_HARD_MASK variety fires while irqs are disabled, the

[PATCH AUTOSEL 5.10 6/7] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 5.10 5/7] powerpc/perf: Fix branch_filter support for multiple filters

2022-10-14 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit b9c001276d4a756f98cc7dc4672eff5343949203 ] For PERF_SAMPLE_BRANCH_STACK sample type, different branch_sample_type ie branch filters are supported. The branch filters are requested via event attribute "branch_sample_type". Multiple branch filters can be

[PATCH AUTOSEL 5.10 4/7] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 5.10 3/7] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 5.10 2/7] powerpc/math-emu: Remove -w build flag and fix warnings

2022-10-14 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 7245fc5bb7a966852d5bd7779d1f5855530b461a ] As reported by Nathan, the module_init() macro was not taken into account because the header was missing. That means spe_mathemu_init() was never called. This should have been detected by gcc at build time, but

[PATCH AUTOSEL 5.10 1/7] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 5.15 8/8] powerpc/64: Fix msr_check_and_set/clear MSR[EE] race

2022-10-14 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0fa6831811f62cfc10415d731bcf9fde2647ad81 ] irq soft-masking means that when Linux irqs are disabled, the MSR[EE] value can change from 1 to 0 asynchronously: if a masked interrupt of the PACA_IRQ_MUST_HARD_MASK variety fires while irqs are disabled, the

[PATCH AUTOSEL 5.15 7/8] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 5.15 6/8] powerpc/perf: Fix branch_filter support for multiple filters

2022-10-14 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit b9c001276d4a756f98cc7dc4672eff5343949203 ] For PERF_SAMPLE_BRANCH_STACK sample type, different branch_sample_type ie branch filters are supported. The branch filters are requested via event attribute "branch_sample_type". Multiple branch filters can be

[PATCH AUTOSEL 5.15 5/8] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 5.15 4/8] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 5.15 3/8] powerpc/math-emu: Remove -w build flag and fix warnings

2022-10-14 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 7245fc5bb7a966852d5bd7779d1f5855530b461a ] As reported by Nathan, the module_init() macro was not taken into account because the header was missing. That means spe_mathemu_init() was never called. This should have been detected by gcc at build time, but

[PATCH AUTOSEL 5.15 2/8] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 5.19 10/10] powerpc/64: Fix msr_check_and_set/clear MSR[EE] race

2022-10-14 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0fa6831811f62cfc10415d731bcf9fde2647ad81 ] irq soft-masking means that when Linux irqs are disabled, the MSR[EE] value can change from 1 to 0 asynchronously: if a masked interrupt of the PACA_IRQ_MUST_HARD_MASK variety fires while irqs are disabled, the

[PATCH AUTOSEL 5.19 09/10] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 5.19 08/10] powerpc/rtas: block error injection when locked down

2022-10-14 Thread Sasha Levin
From: Nathan Lynch [ Upstream commit b8f3e48834fe8c86b4f21739c6effd160e2c2c19 ] The error injection facility on pseries VMs allows corruption of arbitrary guest memory, potentially enabling a sufficiently privileged user to disable lockdown or perform other modifications of the running kernel

[PATCH AUTOSEL 5.19 07/10] powerpc/perf: Fix branch_filter support for multiple filters

2022-10-14 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit b9c001276d4a756f98cc7dc4672eff5343949203 ] For PERF_SAMPLE_BRANCH_STACK sample type, different branch_sample_type ie branch filters are supported. The branch filters are requested via event attribute "branch_sample_type". Multiple branch filters can be

[PATCH AUTOSEL 5.19 06/10] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 5.19 05/10] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 5.19 04/10] powerpc/math-emu: Remove -w build flag and fix warnings

2022-10-14 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 7245fc5bb7a966852d5bd7779d1f5855530b461a ] As reported by Nathan, the module_init() macro was not taken into account because the header was missing. That means spe_mathemu_init() was never called. This should have been detected by gcc at build time, but

[PATCH AUTOSEL 5.19 02/10] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

[PATCH AUTOSEL 6.0 11/11] powerpc/64: Fix msr_check_and_set/clear MSR[EE] race

2022-10-14 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit 0fa6831811f62cfc10415d731bcf9fde2647ad81 ] irq soft-masking means that when Linux irqs are disabled, the MSR[EE] value can change from 1 to 0 asynchronously: if a masked interrupt of the PACA_IRQ_MUST_HARD_MASK variety fires while irqs are disabled, the

[PATCH AUTOSEL 6.0 10/11] powerpc/mm: Fix UBSAN warning reported on hugetlb

2022-10-14 Thread Sasha Levin
From: "Aneesh Kumar K.V" [ Upstream commit 7dd3a7b90bca2c12e2146a47d63cf69a2f5d7e89 ] Powerpc architecture supports 16GB hugetlb pages with hash translation. For 4K page size, this is implemented as a hugepage directory entry at PGD level and for 64K it is implemented as a huge page pte at PUD

[PATCH AUTOSEL 6.0 09/11] powerpc/rtas: block error injection when locked down

2022-10-14 Thread Sasha Levin
From: Nathan Lynch [ Upstream commit b8f3e48834fe8c86b4f21739c6effd160e2c2c19 ] The error injection facility on pseries VMs allows corruption of arbitrary guest memory, potentially enabling a sufficiently privileged user to disable lockdown or perform other modifications of the running kernel

[PATCH AUTOSEL 6.0 08/11] powerpc/perf: Fix branch_filter support for multiple filters

2022-10-14 Thread Sasha Levin
From: Athira Rajeev [ Upstream commit b9c001276d4a756f98cc7dc4672eff5343949203 ] For PERF_SAMPLE_BRANCH_STACK sample type, different branch_sample_type ie branch filters are supported. The branch filters are requested via event attribute "branch_sample_type". Multiple branch filters can be

[PATCH AUTOSEL 6.0 07/11] powerpc: Remove direct call to personality syscall handler

2022-10-14 Thread Sasha Levin
From: Rohan McLure [ Upstream commit 4df0221f9ded8c39aecfb1a80cef346026671cb7 ] Syscall handlers should not be invoked internally by their symbol names, as these symbols defined by the architecture-defined SYSCALL_DEFINE macro. Fortunately, in the case of ppc64_personality, its call to

[PATCH AUTOSEL 6.0 05/11] powerpc/85xx: Fix fall-through warning for Clang

2022-10-14 Thread Sasha Levin
From: "Gustavo A. R. Silva" [ Upstream commit d4d944ff68cb1f896d3f3b1af0bc656949dc626a ] Fix the following fallthrough warning: arch/powerpc/platforms/85xx/mpc85xx_cds.c:161:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] Reported-by: kernel test robot

[PATCH AUTOSEL 6.0 04/11] powerpc/math-emu: Remove -w build flag and fix warnings

2022-10-14 Thread Sasha Levin
From: Christophe Leroy [ Upstream commit 7245fc5bb7a966852d5bd7779d1f5855530b461a ] As reported by Nathan, the module_init() macro was not taken into account because the header was missing. That means spe_mathemu_init() was never called. This should have been detected by gcc at build time, but

[PATCH AUTOSEL 6.0 02/11] powerpc/selftests: Use timersub() for gettimeofday()

2022-10-14 Thread Sasha Levin
From: ye xingchen [ Upstream commit c814bf958926ff45a9c1e899bd001006ab6cfbae ] Use timersub() function to simplify the code. Reported-by: Zeal Robot Signed-off-by: ye xingchen Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20220816105106.82666-1-ye.xingc...@zte.com.cn

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

2022-10-14 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fixes for 6.1: The following changes since commit ae5b6779fa8724628bbad58126a626d0cd599414: powerpc: Fix 85xx build (2022-10-11 10:13:34 -0700) are available in the git repository at:

Re: [PATCH v2] perf: Rewrite core context handling

2022-10-14 Thread Ravi Bangoria
On 13-Oct-22 4:29 PM, Peter Zijlstra wrote: > On Thu, Oct 13, 2022 at 03:37:23PM +0530, Ravi Bangoria wrote: > >>> - refcount_t refcount; >>> + refcount_t refcount; /* event <-> ctx */ >> >> Ok. We need to remove all those // XXX get/put_ctx() from