Re: [PATCH 0/2] powerpc/perf: Add instruction and data address registers to extended regs

2021-09-19 Thread Michael Ellerman
Arnaldo Carvalho de Melo writes: > Em Mon, Sep 06, 2021 at 08:13:13AM +0530, Athira Rajeev escreveu: >> > On 02-Sep-2021, at 1:04 PM, kajoljain wrote: >> > On 6/20/21 8:15 PM, Athira Rajeev wrote: >> >> Patch set adds PMU registers namely Sampled Instruction Address Register >> >> (SIAR) and Samp

[PATCH v2 2/3] powerpc/inst: Define ppc_inst_t

2021-09-19 Thread Christophe Leroy
In order to stop using 'struct ppc_inst' on PPC32, define a ppc_inst_t typedef. Signed-off-by: Christophe Leroy --- v2: Anonymise the structure so that only the typedef can be used --- arch/powerpc/include/asm/code-patching.h | 18 +++ arch/powerpc/include/asm/hw_breakpoint.h | 4

[PATCH v2 3/3] powerpc/inst: Define ppc_inst_t as u32 on PPC32

2021-09-19 Thread Christophe Leroy
Unlike PPC64 ABI, PPC32 uses the stack to pass a parameter defined as a struct, even when the struct has a single simple element. To avoid that, define ppc_inst_t as u32 on PPC32. Keep it as 'struct ppc_inst' when __CHECKER__ is defined so that sparse can perform type checking. Also revert commi

[PATCH v2 1/3] powerpc/inst: Refactor ___get_user_instr()

2021-09-19 Thread Christophe Leroy
PPC64 version of ___get_user_instr() can be used for PPC32 as well, by simply disabling the suffix part with IS_ENABLED(CONFIG_PPC64). Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/inst.h | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/arch/powerpc/

[5.15-rc1][PPC/PCI] IPR adapter reset threw EEH and fail to recover while booting mainline on powerpc

2021-09-19 Thread Abdul Haleem
Greeting's IPR adapter reset triggers EEH errors and recovered 6 times and than task hung on today's mainline kernel on powerpc box with loads of hung task call traces The problem is not seen with 5.14-rc7 (good)  and is last recreated on 5.15-rc1 (bad) kernel Console logs EEH: Recovering

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

2021-09-19 Thread pr-tracker-bot
The pull request you sent on Sun, 19 Sep 2021 23:11:04 +1000: > https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git > tags/powerpc-5.15-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/62453a460a000156b100bf20ab78cf77232284d0 Thank you! -- Deet-doot-d

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

2021-09-19 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull powerpc fixes for 5.15: The following changes since commit 6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f: Linux 5.15-rc1 (2021-09-12 16:28:37 -0700) are available in the git repository at: https://git.kernel.org/pub/scm/linu

Re: [PATCH v2] powerpc/mce: Fix access error in mce handler

2021-09-19 Thread Michael Ellerman
On Thu, 9 Sep 2021 12:13:30 +0530, Ganesh Goudar wrote: > We queue an irq work for deferred processing of mce event > in realmode mce handler, where translation is disabled. > Queuing of the work may result in accessing memory outside > RMO region, such access needs the translation to be enabled >

Re: [PATCH] powerpc/xics: Set the IRQ chip data for the ICS native backend

2021-09-19 Thread Michael Ellerman
On Mon, 13 Sep 2021 15:40:56 +0200, Cédric Le Goater wrote: > The ICS native driver relies on the IRQ chip data to find the struct > 'ics_native' describing the ICS controller but it was removed by commit > 248af248a8f4 ("powerpc/xics: Rename the map handler in a check handler"). > Revert this chan

Re: [PATCH v3 1/2] powerpc/64s: system call scv tabort fix for corrupt irq soft-mask state

2021-09-19 Thread Michael Ellerman
On Fri, 3 Sep 2021 22:57:06 +1000, Nicholas Piggin wrote: > If a system call is made with a transaction active, the kernel > immediately aborts it and returns. scv system calls disable irqs even > earlier in their interrupt handler, and tabort_syscall does not fix this > up. > > This can result in

Re: [PATCH v1 1/2] powerpc/64s: system call rfscv workaround for TM bugs

2021-09-19 Thread Michael Ellerman
On Wed, 8 Sep 2021 20:17:17 +1000, Nicholas Piggin wrote: > The rfscv instruction does not work correctly with the fake-suspend mode > in POWER9, which can end up with the hypervisor restoring an incorrect > checkpoint. > > Work around this by setting the _TIF_RESTOREALL flag if a system call > re