Hi Reinette, On 11/15/24 18:06, Reinette Chatre wrote: > Hi Babu, > > On 10/29/24 4:21 PM, Babu Moger wrote: >> The mbm_cntr_assign mode provides an option to the user to assign a >> counter to an RMID, event pair and monitor the bandwidth as long as >> the counter is assigned. Number of assignments depend on number of >> monitoring counters available. >> >> Provide the interface to display the number of monitoring counters >> supported. The interface file 'num_mbm_cntrs' is available when an >> architecture supports mbm_cntr_assign mode. >> > > As mentioned in previous patch, do you think it may be possible to > have a value for num_mbm_cntrs for non-ABMC AMD systems? If that is > available and always exposed to user space (irrespective of > mbm_cntr_assign mode) then it would be clear to user space on > benefits/risks of running a "default" mode. I am trying the work-around to get the number of max active RMIDs in default mode. The method is to loop through all of the recently assigned RMID's to see if any of their QM_CTR.U bits transition from 0->1. I am not successful in getting it to work so far. I remember Peter was trying this before in soft-ABMC. Peter, Any success with that? If it does not work then our best option is to document it. -- Thanks Babu Moger