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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:40 +0000 (10:07 +0200)
commit23d6ad91f35f6a2cae06dfe0d664c6c66d94bc65
treef50cdb2ed204ab73b2ba238750675dcb9edd3858
parente33981e6101298649fc47b9a554435c1ee96be09
bus: arm-ccn: Fix PMU handling of MN

commit 4e486cba285ff06a1f28f0fc2991dde1482d1dcf upstream.

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).

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/arm-ccn.c