powerpc/perf: Add restrictions to PMC5 in power9 DD1
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Sun, 12 Feb 2017 17:03:15 +0000 (22:33 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Feb 2017 10:48:54 +0000 (21:48 +1100)
commit8d911904f3ce412b20874a9c95f82009dcbb007c
treecf55b2971dbb391e076d5bb3bfd3e97f835fc905
parent356d8ce3d0a4a1d7c8448c4d234121736ad3d471
powerpc/perf: Add restrictions to PMC5 in power9 DD1

PMC5 on POWER9 DD1 may not provide right counts in all
sampling scenarios, hence use PM_INST_DISP event instead
in PMC2 or PMC3 in preference.

Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/isa207-common.h
arch/powerpc/perf/power9-pmu.c