stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch "selftest/powerpc: Wrong PMC initialized in pmc56_overflow test" has been added to the 4.4-stable tree
@ 2017-01-23 16:08 gregkh
  0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-01-23 16:08 UTC (permalink / raw)
  To: maddy, gregkh, mpe; +Cc: stable, stable-commits


This is a note to let you know that I've just added the patch titled

    selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

to the 4.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     selftest-powerpc-wrong-pmc-initialized-in-pmc56_overflow-test.patch
and it can be found in the queue-4.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.


>From df21d2fa733035e4d414379960f94b2516b41296 Mon Sep 17 00:00:00 2001
From: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Date: Mon, 19 Dec 2016 17:46:53 +0530
Subject: selftest/powerpc: Wrong PMC initialized in pmc56_overflow test

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

---
 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
@@ -66,7 +66,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);
 


Patches currently in stable-queue which might be from maddy@linux.vnet.ibm.com are

queue-4.4/selftest-powerpc-wrong-pmc-initialized-in-pmc56_overflow-test.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-01-23 16:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-23 16:08 Patch "selftest/powerpc: Wrong PMC initialized in pmc56_overflow test" has been added to the 4.4-stable tree gregkh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).