linux/tools/testing/selftests/powerpc/pmu
Athira Rajeev d81090ed44 selftests/powerpc: EBB selftest for MMCR0 control for PMU SPRs in ISA v3.1
With the MMCR0 control bit (PMCCEXT) in ISA v3.1, read access to
group B registers is restricted when MMCR0 PMCC=0b00. In other
platforms (like power9), the older behaviour works where group B
PMU SPRs are readable.

Patch creates a selftest which verifies that the test takes a
SIGILL when attempting to read PMU registers via helper function
"dump_ebb_state" for ISA v3.1.

Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Nageswara R Sastry <rnsastry@linux.ibm.com <mailto:rnsastry@linux.ibm.com>>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/1621950703-1532-3-git-send-email-atrajeev@linux.vnet.ibm.com
2021-06-17 00:09:11 +10:00
..
ebb selftests/powerpc: EBB selftest for MMCR0 control for PMU SPRs in ISA v3.1 2021-06-17 00:09:11 +10:00
.gitignore selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
count_instructions.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
count_stcx_fail.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00
event.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
event.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
l3_bank_test.c selftests/powerpc: Skip L3 bank test on older CPUs 2020-09-08 22:24:08 +10:00
lib.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 191 2019-05-30 11:29:21 -07:00
lib.h selftests/powerpc: Add test of stack expansion logic 2020-07-29 21:02:11 +10:00
loop.S selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
Makefile selftests/powerpc: Add a test of counting larx/stcx 2020-05-15 11:58:55 +10:00
per_event_excludes.c selftests/powerpc: Include asm/cputable.h from utils.h 2020-09-08 22:23:59 +10:00