]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Fix sampled instruction type for larx/stcx
authorAthira Rajeev <atrajeev@linux.vnet.ibm.com>
Thu, 4 Mar 2021 11:55:37 +0000 (06:55 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Apr 2021 15:38:02 +0000 (01:38 +1000)
commit06842b86adb177531a50d0792d17aa23667daaa1
tree2b620af7dff153a6bc909bb18c116268a9f12421
parent098a23a89cd7d7210572979cb410c39e144c7983
powerpc/perf: Fix sampled instruction type for larx/stcx

Sampled Instruction Event Register (SIER) field [46:48] identifies the
sampled instruction type. ISA v3.1 says value of 0b111 for this field as
reserved, but in POWER10 it denotes LARX/STCX type which will hopefully
be fixed in ISA v3.1 update.

Patch fixes the functions to handle type value 7 for CPU_FTR_ARCH_31.

Fixes: 2002c870d9cb ("powerpc/perf: power10 Performance Monitoring support")
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Reviewed-by: Madhavan Srinivasan <maddy@linux.ibm.com>
[mpe: Avoid reading mmcra until necessary, use early return to deindent if block]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1614858937-1485-1-git-send-email-atrajeev@linux.vnet.ibm.com
arch/powerpc/perf/isa207-common.c
arch/powerpc/perf/isa207-common.h