File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 3535#define CMN_MAX_XPS (CMN_MAX_DIMENSION * CMN_MAX_DIMENSION)
3636#define CMN_MAX_DTMS (CMN_MAX_XPS + (CMN_MAX_DIMENSION - 1) * 4)
3737
38+ /* Currently XPs are the node type we can have most of; others top out at 128 */
39+ #define CMN_MAX_NODES_PER_EVENT CMN_MAX_XPS
40+
3841/* The CFG node has various info besides the discovery tree */
3942#define CMN_CFGM_PERIPH_ID_01 0x0008
4043#define CMN_CFGM_PID0_PART_0 GENMASK_ULL(7, 0)
@@ -565,7 +568,7 @@ static void arm_cmn_debugfs_init(struct arm_cmn *cmn, int id) {}
565568
566569struct arm_cmn_hw_event {
567570 struct arm_cmn_node * dn ;
568- u64 dtm_idx [4 ];
571+ u64 dtm_idx [DIV_ROUND_UP ( CMN_MAX_NODES_PER_EVENT * 2 , 64 ) ];
569572 s8 dtc_idx [CMN_MAX_DTCS ];
570573 u8 num_dns ;
571574 u8 dtm_offset ;
You can’t perform that action at this time.
0 commit comments