On Fri, 21 Apr 2023, Reinette Chatre wrote:
On 4/18/2023 4:44 AM, Ilpo Järvinen wrote:
CAT and CMT tests depends on masks being continuous.
The term used in the spec is "contiguous", using it here may help to convey the goal.
Replace count_bits with more appropriate variant that counts consecutive bits.
Could you please elaborate why this is more appropriate and why this is necessary? What is wrong with current solution?
Please note that cbm_mask in resctrl will always be contiguous.
It's good that you asked this question.
This comes from a change (not by me originally) that also excluded the shareable bits from the mask the CAT test uses. I assumed (w/o better knowledge) that those shareable bits could create a hole into the mask.
It could be wrong assumption and the shareable bits are always at one end of the CBM mask.
Do you happen to know how the shareable bits are positioned within the mask?