Patch "powerpc/perf: Fix pmu_count to count only nest imc pmus" has been added to the 4.14-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
powerpc/perf: Fix pmu_count to count only nest imc pmus
to the 4.14-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:
powerpc-perf-fix-pmu_count-to-count-only-nest-imc-pmus.patch
and it can be found in the queue-4.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From foo@baz Tue Dec 12 10:32:42 CET 2017
From: Madhavan Srinivasan <[email protected]>
Date: Wed, 22 Nov 2017 10:45:38 +0530
Subject: powerpc/perf: Fix pmu_count to count only nest imc pmus
From: Madhavan Srinivasan <[email protected]>
[ Upstream commit de34787f1096cce38e2590be0013b44418d14546 ]
"pmu_count" in opal_imc_counters_probe() is intended to hold the number of successful nest imc pmu registerations. But current code also counts other imc units like core_imc and thread_imc. Patch add a check to count only nest imc pmus.
--- arch/powerpc/platforms/powernv/opal-imc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
arch/powerpc/platforms/powernv/opal-imc.c +4 -2
@@ -191,8 +191,10 @@ static int opal_imc_counters_probe(strucbreak ; } -if (!imc_pmu_create (imc_dev, pmu_count, domain)) - pmu_count++; +if (!imc_pmu_create (imc_dev, pmu_count, domain)) { +if (domain ==IMC_DOMAIN_NEST ) + pmu_count++; + } }return 0 ;
Patches currently in stable-queue which might be from [email protected] are
queue-4.14/powerpc-perf-fix-pmu_count-to-count-only-nest-imc-pmus.patch