angler-fishThe Vulnerability History Project

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
    
commit 2ca13a4cc56c920a6c9fc8ee45d02bccacd7f46c
+17 -4
expand_less