File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 70
70
/* Technically this is 4 bits wide on DNs, but we only use 2 there anyway */
71
71
#define CMN__PMU_OCCUP1_ID GENMASK_ULL(34, 32)
72
72
73
- /* HN-Ps are weird... */
73
+ /* Some types are designed to coexist with another device in the same node */
74
+ #define CMN_CCLA_PMU_EVENT_SEL 0x008
74
75
#define CMN_HNP_PMU_EVENT_SEL 0x008
75
76
76
77
/* DTMs live in the PMU space of XP registers */
@@ -2393,10 +2394,13 @@ static int arm_cmn_discover(struct arm_cmn *cmn, unsigned int rgn_offset)
2393
2394
case CMN_TYPE_CXHA :
2394
2395
case CMN_TYPE_CCRA :
2395
2396
case CMN_TYPE_CCHA :
2396
- case CMN_TYPE_CCLA :
2397
2397
case CMN_TYPE_HNS :
2398
2398
dn ++ ;
2399
2399
break ;
2400
+ case CMN_TYPE_CCLA :
2401
+ dn -> pmu_base += CMN_CCLA_PMU_EVENT_SEL ;
2402
+ dn ++ ;
2403
+ break ;
2400
2404
/* Nothing to see here */
2401
2405
case CMN_TYPE_MPAM_S :
2402
2406
case CMN_TYPE_MPAM_NS :
@@ -2414,7 +2418,7 @@ static int arm_cmn_discover(struct arm_cmn *cmn, unsigned int rgn_offset)
2414
2418
case CMN_TYPE_HNP :
2415
2419
case CMN_TYPE_CCLA_RNI :
2416
2420
dn [1 ] = dn [0 ];
2417
- dn [0 ].pmu_base += CMN_HNP_PMU_EVENT_SEL ;
2421
+ dn [0 ].pmu_base += CMN_CCLA_PMU_EVENT_SEL ;
2418
2422
dn [1 ].type = arm_cmn_subtype (dn -> type );
2419
2423
dn += 2 ;
2420
2424
break ;
You can’t perform that action at this time.
0 commit comments