Re: [PATCH v3 02/47] arm_mpam: Use non-atomic bitops when modifying feature bitmap

From: Gavin Shan

Date: Wed Jan 14 2026 - 21:15:06 EST


On 1/13/26 12:58 AM, Ben Horgan wrote:
In the test__props_mismatch() kunit test we rely on the struct mpam_props
being packed to ensure memcmp doesn't consider packing. Making it packed
reduces the alignment of the features bitmap and so breaks a requirement
for the use of atomics. As we don't rely on the set/clear of these bits
being atomic, just make them non-atomic.

Reviewed-by: Jonathan Cameron <jonathan.cameron@xxxxxxxxxx>
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
Changes since v2:
Add comment (Jonathan)
---
drivers/resctrl/mpam_internal.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)


Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>