[PATCH 6/6] arm_mpam: Apply T241-MPAM-6 to 63-bit counters
Ben Horgan
ben.horgan at arm.com
Fri Jul 31 17:23:57 PDT 2026
Hi Will,
On 7/31/26 18:52, Ben Horgan wrote:
> From: Shanker Donthineni <sdonthineni at nvidia.com>
>
> T241-MPAM-6 causes all MBWU counter formats to count 64-byte
> requests instead of bytes. Commit dc48eb1ff27c excluded the 63-bit
> MSMON_MBWU_LWD format while scaling the shorter counters. Systems
> selecting the preferred 63-bit counter consequently report bandwidth
> values that are 64 times too small.
>
> Apply the scale to both the sampled value and overflow correction for
> the 63-bit format. Unsigned arithmetic retains modulo-u64 behavior
> when the scaled counter range exceeds u64.
>
> Fixes: dc48eb1ff27c ("arm_mpam: Add workaround for T241-MPAM-6")
> Link: https://lore.kernel.org/lkml/20240816131432.993859-1-sdonthineni@nvidia.com/
> Signed-off-by: Shanker Donthineni <sdonthineni at nvidia.com>
> Reviewed-by: Fenghua Yu <fenghuay at nvidia.com>
> Tested-by: Fenghua Yu <fenghuay at nvidia.com>
> Reviewed-by: Ben Horgan <ben.horgan at arm.com>
Should have put this before, sorry.
For handling the patch,
Signed-off-by: Ben Horgan <ben.horgan at arm.com>
More information about the linux-arm-kernel
mailing list