Re: [PATCH 32/33] arm_mpam: Add kunit test for bitmap reset

Gavin Shan
2025-11-09T23:19:51Z

On 11/7/25 10:34 PM, Ben Horgan wrote:
> From: James Morse <james.morse@arm.com>
>
> The bitmap reset code has been a source of bugs. Add a unit test.
>
> This currently has to be built in, as the rest of the driver is
> builtin.
>
> Suggested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
> Signed-off-by: James Morse <james.morse@arm.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
> Reviewed-by: Ben Horgan <ben.horgan@arm.com>
> Reviewed-by: Fenghua Yu <fenghuay@nvidia.com>
> Tested-by: Fenghua Yu <fenghuay@nvidia.com>
> Signed-off-by: Ben Horgan <ben.horgan@arm.com>
> ---
> drivers/resctrl/Kconfig | 9 ++++
> drivers/resctrl/mpam_devices.c | 4 ++
> drivers/resctrl/test_mpam_devices.c | 69 +++++++++++++++++++++++++++++
> 3 files changed, 82 insertions(+)
> create mode 100644 drivers/resctrl/test_mpam_devices.c
>

Reviewed-by: Gavin Shan <gshan@redhat.com>