]> git.baikalelectronics.ru Git - kernel.git/commit
bus: arm-ccn: Fix PMU handling of MN
authorPawel Moll <pawel.moll@arm.com>
Tue, 2 Aug 2016 15:45:37 +0000 (16:45 +0100)
committerPawel Moll <pawel.moll@arm.com>
Wed, 17 Aug 2016 09:48:57 +0000 (10:48 +0100)
commita50100aab2937edc5216d78f9d934308b9c4da9b
tree333bf2174ef2dd9921e93b96475a8b96bfec27ec
parent92eda0ff5e2879da54cd299e1946d13cb37b1706
bus: arm-ccn: Fix PMU handling of MN

The "Miscellaneous Node" fell through cracks of node initialisation,
as its ID is shared with HN-I.

This patch treats MN as a special case (which it is), adding separate
validation check for it and pre-defining the node ID in relevant events
descriptions. That way one can simply run:

# perf stat -a -e ccn/mn_ecbarrier/ <workload>

Additionally, direction in the MN pseudo-events XP watchpoint
definitions is corrected to be "TX" (1) as they are defined from the
crosspoint point of view (thus barriers are transmitted from XP to MN).

Cc: stable@vger.kernel.org # 3.17+
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
drivers/bus/arm-ccn.c