]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: Remove PPMU_HAS_SSLOT flag for Power8
authorMadhavan Srinivasan <maddy@linux.vnet.ibm.com>
Mon, 25 Jan 2016 08:33:46 +0000 (14:03 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 28 Jan 2016 12:48:35 +0000 (23:48 +1100)
commit2265d7119025f7b5f2d72a2c92ec9abaacaf144d
tree1899b7250e66f391c54ef17057f98b5304ec0176
parent59a626c225fb60f52696f58bbf3c883c8e1e2acf
powerpc/perf: Remove PPMU_HAS_SSLOT flag for Power8

Commit 8a4588d82775 ("powerpc/perf: Add an explict flag indicating
presence of SLOT field") introduced the PPMU_HAS_SSLOT flag to remove
the assumption that MMCRA[SLOT] was present when PPMU_ALT_SIPR was not
set.

That commit's changelog also mentions that Power8 does not support
MMCRA[SLOT]. However when the Power8 PMU support was merged, it
errnoeously included the PPMU_HAS_SSLOT flag.

So remove PPMU_HAS_SSLOT from the Power8 flags.

mpe: On systems where MMCRA[SLOT] exists, the field occupies bits 37:39
(IBM numbering). On Power8 bit 37 is reserved, and 38:39 overlap with
the high bits of the Threshold Event Counter Mantissa. I am not aware of
any published events which use the threshold counting mechanism, which
would cause the mantissa bits to be set. So in practice this bug is
unlikely to trigger.

Fixes: fd6278bbccf8 ("powerpc/perf: Power8 PMU support")
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/power8-pmu.c