]> git.ipfire.org Git - thirdparty/linux.git/commit
arm_mpam: Use non-atomic bitops when modifying feature bitmap
authorBen Horgan <ben.horgan@arm.com>
Mon, 12 Jan 2026 16:58:29 +0000 (16:58 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 16 Jan 2026 12:04:20 +0000 (12:04 +0000)
commitb9f5c38e4af1a094384650d2fc79fb992d6d5e64
tree1d7833277d766258e9f8f33546101b0957704a71
parentb5a69c4869211a6ab61a95f5cc987b25f383dbc3
arm_mpam: Use non-atomic bitops when modifying feature bitmap

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@huawei.com>
Signed-off-by: Ben Horgan <ben.horgan@arm.com>
Fixes: 8c90dc68a5de ("arm_mpam: Probe the hardware features resctrl supports")
Reviewed-by: Gavin Shan <gshan@redhat.com>
Tested-by: Shaopeng Tan <tan.shaopeng@jp.fujitsu.com>
Tested-by: Peter Newman <peternewman@google.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
drivers/resctrl/mpam_internal.h