Hi Babu, On 10/29/24 4:21 PM, Babu Moger wrote: > Hardware provides a set of counters when mbm_assign_mode is supported. > These counters are assigned to the MBM monitoring events of a CTRL_MON or > MON group that needs to be tracked. The kernel must manage and track the > available counters. > > Introduce mbm_cntr_free_map bitmap to track available counters and set > of routines to allocate and free the counters. > > dom_data_init() requires mbm_cntr_assign state to initialize > mbm_cntr_free_map bitmap. Move dom_data_init() after mbm_cntr_assign > detection. > > Signed-off-by: Babu Moger <babu.moger@xxxxxxx> > --- Reviewed-by: Reinette Chatre <reinette.chatre@xxxxxxxxx> Reinette