[PATCH v6 26/40] arm_mpam: resctrl: Add kunit test for control format conversions
Gavin Shan
gshan at redhat.com
Mon Mar 23 16:10:34 PDT 2026
On 3/14/26 12:46 AM, Ben Horgan wrote:
> From: Dave Martin <Dave.Martin at arm.com>
>
> resctrl specifies the format of the control schemes, and these don't match
> the hardware.
>
> Some of the conversions are a bit hairy - add some kunit tests.
>
> Tested-by: Gavin Shan <gshan at redhat.com>
> Tested-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Tested-by: Peter Newman <peternewman at google.com>
> Tested-by: Zeng Heng <zengheng4 at huawei.com>
> Tested-by: Punit Agrawal <punit.agrawal at oss.qualcomm.com>
> Reviewed-by: Zeng Heng <zengheng4 at huawei.com>
> Reviewed-by: Shaopeng Tan <tan.shaopeng at jp.fujitsu.com>
> Reviewed-by: Jonathan Cameron <jonathan.cameron at huawei.com>
> Signed-off-by: Dave Martin <Dave.Martin at arm.com>
> [morse: squashed enough of Dave's fixes in here that it's his patch now!]
> Signed-off-by: James Morse <james.morse at arm.com>
> Signed-off-by: Ben Horgan <ben.horgan at arm.com>
> ---
> Changes since v2:
> Include additional values from the latest spec
> ---
> drivers/resctrl/mpam_resctrl.c | 4 +
> drivers/resctrl/test_mpam_resctrl.c | 315 ++++++++++++++++++++++++++++
> 2 files changed, 319 insertions(+)
> create mode 100644 drivers/resctrl/test_mpam_resctrl.c
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list