Re: [PATCH v1 11/11] arm_mpam: Switch to kvzmalloc_objs() for allocation of component cfg

From: Gavin Shan

Date: Thu Jul 16 2026 - 00:53:13 EST


On 7/10/26 9:55 PM, Ben Horgan wrote:
Each component cfg is sized by the size of a per-PARTID multiplied by the
number of PARTIDs. On a platform sized to push the limits of the
specification, the allocation using kzalloc_objs() will consistently
fail. Change to use kvzmalloc_objs() so that large allocations fall back to
vmalloc() based allocations.

Fixes: 09b89d2a72f3 ("arm_mpam: Allow configuration to be applied and restored during cpu online")
Signed-off-by: Ben Horgan <ben.horgan@xxxxxxx>
---
drivers/resctrl/mpam_devices.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>