projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95ed57c
)
perf/arm-cmn: Hide XP PUB events for CMN-600
author
Robin Murphy
<robin.murphy@arm.com>
Thu, 24 Feb 2022 18:41:21 +0000
(18:41 +0000)
committer
Will Deacon
<will@kernel.org>
Tue, 8 Mar 2022 11:02:26 +0000
(11:02 +0000)
CMN-600 doesn't have XP events for the PUB channel, but we missed
the appropriate check to avoid exposing them.
Fixes:
60d1504070c2
("perf/arm-cmn: Support new IP features")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link:
https://lore.kernel.org/r/4c108d39a0513def63acccf09ab52b328f242aeb.1645727871.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c
patch
|
blob
|
history
diff --git
a/drivers/perf/arm-cmn.c
b/drivers/perf/arm-cmn.c
index
d0e1ce2
..
e924d45
100644
(file)
--- a/
drivers/perf/arm-cmn.c
+++ b/
drivers/perf/arm-cmn.c
@@
-595,6
+595,9
@@
static umode_t arm_cmn_event_attr_is_visible(struct kobject *kobj,
if ((intf & 4) && !(cmn->ports_used & BIT(intf & 3)))
return 0;
+ if (chan == 4 && cmn->model == CMN600)
+ return 0;
+
if ((chan == 5 && cmn->rsp_vc_num < 2) ||
(chan == 6 && cmn->dat_vc_num < 2))
return 0;