Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

Test uses PMC2 to count the event. But PMC1 is being initialized.
Patch to fix it.

Fixes: 3752e453f6ba ('selftests/powerpc: Add tests of PMU EBBs')
Signed-off-by: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

authored by

Madhavan Srinivasan and committed by
Michael Ellerman
df21d2fa 387bbc97

+1 -1
+1 -1
tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c
··· 66 66 67 67 FAIL_IF(ebb_event_enable(&event)); 68 68 69 - mtspr(SPRN_PMC1, pmc_sample_period(sample_period)); 69 + mtspr(SPRN_PMC2, pmc_sample_period(sample_period)); 70 70 mtspr(SPRN_PMC5, 0); 71 71 mtspr(SPRN_PMC6, 0); 72 72