]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Use regs->nip when SIAR is zero
authorMadhavan Srinivasan <maddy@linux.ibm.com>
Wed, 21 Oct 2020 08:53:29 +0000 (14:23 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 05:56:56 +0000 (16:56 +1100)
commit126480ec6f838f1514a1f6a83a51182490350d2a
treef681c01bc4c81f76b0bcdd0b32f1fff0f31ef545
parentbef974baa7ed9179d8be2ba7e876516df5fcb187
powerpc/perf: Use regs->nip when SIAR is zero

In power10 DD1, there is an issue where the SIAR (Sampled Instruction
Address Register) is not latching to the sampled address during random
sampling. This results in value of 0s in the SIAR. Add a check to use
regs->nip when SIAR is zero.

Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201021085329.384535-5-maddy@linux.ibm.com
arch/powerpc/perf/core-book3s.c