Thread (38 messages) 38 messages, 4 authors, 12d ago

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

flat view

From: Gavin Shan <hidden>
Date: 2026-09-22 05:45:23
Also in: lkml

On 9/18/26 12:56 AM, 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@arm.com>
Tested-by: Gavin Shan <redacted>
---
  drivers/resctrl/mpam_devices.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Gavin Shan <redacted>

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help