Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1597655 > unrolled thread

[PATCH 3.16 232/370] selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

Started byBen Hutchings <ben@decadent.org.uk>
First post2017-03-10 14:50 +0100
Last post2017-03-10 14:50 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 3.16 232/370] selftest/powerpc: Wrong PMC initialized in  pmc56_overflow test Ben Hutchings <ben@decadent.org.uk> - 2017-03-10 14:50 +0100

#1597655 — [PATCH 3.16 232/370] selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

FromBen Hutchings <ben@decadent.org.uk>
Date2017-03-10 14:50 +0100
Subject[PATCH 3.16 232/370] selftest/powerpc: Wrong PMC initialized in pmc56_overflow test
Message-ID<tjt5E-4JP-31@gated-at.bofh.it>
3.16.42-rc1 review patch.  If anyone has any objections, please let me know.

------------------

From: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>

commit df21d2fa733035e4d414379960f94b2516b41296 upstream.

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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c
+++ b/tools/testing/selftests/powerpc/pmu/ebb/pmc56_overflow_test.c
@@ -64,7 +64,7 @@ int pmc56_overflow(void)
 
 	FAIL_IF(ebb_event_enable(&event));
 
-	mtspr(SPRN_PMC1, pmc_sample_period(sample_period));
+	mtspr(SPRN_PMC2, pmc_sample_period(sample_period));
 	mtspr(SPRN_PMC5, 0);
 	mtspr(SPRN_PMC6, 0);
 

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web