From nobody Wed Nov 25 17:40:03 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795625285; b=Hz4uzofA0VPan0gD5qim9eZxWoZCtZ/4Whu2jrooj9rSUquMqyHDdDoNDIFea8DYVwXP c+hd6vUovkXqEHQRHFqVTrR5gWkss+8wkZgAjW1XF4MqHLX3P9LrMcDmFm078Ft1kAhAJ Yh1VQEPx+1h44u2T0TIfVXBew74XQBpVCDlrUFxd/F6APCL6RI2Ka7mlDRHuD3W2r7Q86 P9pisjhqKgbqEUQJd3AoTNbDiqnHie1bhn948tEivywBIYPkAilWstRT4famqcqMbu+fC caHiRH5Jr3nCkzQGdv9kTDdd+niYsIIxUSY8l18Znlqu/c+CMgSeyr4RL5J+ObrYx0w== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795625285; h=DMARC-Filter:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=7RkYLX6a8M/26okTQV83aZhZBr76rvCBKvwK8frWHdo=; b=nB9ot6UCe0ArEWYQct1uY0MKCJgaCcmV73QyPX8zKEzUz2V4i9PzZO2XIcrZsgpGr3Ts BHoFjBUbv2fqDi0dRYWBIbdU9R1gjwLvw+quMvsHAlRZS29bCJN1uaDYMX7YC6sxiN/ei 9jKONCsB67XbvcHhlSzv5IzOhIh0bZ03Ey46rAqEm1KTH+hz9IlBk2W42hgjHg2IJRbZI k40i5rx5GN7QWLXoZqqlPPM5zz549EDskmbEw8f8joam64fqi7XX3um+i1sPSbVVV9cEt ivqRvnEvqnPrPc+ANwEcCkmbDwiuS/EpEBgpSKg72uuCJhs63gF76eao950QR3zNeMQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=ADr9YWdh; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 847B1606A338 for ; Wed, 25 Nov 2026 16:48:05 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 847B1606A338 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=ADr9YWdh Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0C8E7339; Wed, 25 Nov 2026 08:48:02 -0800 (PST) Received: from e134344.cambridge.arm.com (e134344.arm.com [10.2.212.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8F65B3F632; Wed, 25 Nov 2026 08:48:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795625284; bh=J/tiVoZWUAOcXdjZUOn1hEEooozK5c3yODIrAZFX5gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ADr9YWdhvKcpBIEyKQNgOzi63foPf4kPMxV0cAvDN+zoonUBN1Lrh+17a+W4pAEHI 6MsuiRY0ZoJdRMtwBLJEhIMwqdqdttEsZo+gSOEs3ypQUPQvSmhUN17U5nHEH53PrU h1OOMZfWHGG6osyfx+uCsn+MTdN/OIhLFhCouHCQ= From: Ben Horgan To: ben.horgan@arm.com Cc: tony.luck@intel.com, reinette.chatre@intel.com, x86@kernel.org, Dave.Martin@arm.com, james.morse@arm.com, babu.moger@amd.com, fenghuay@nvidia.com, bp@alien8.de, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/3] fs/resctrl: Allocate rmid_ptrs[] using kvzalloc_objs() Date: Wed, 25 Nov 2026 16:47:51 +0000 Message-ID: <20261125164753.3759904-2-ben.horgan@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261125164753.3759904-1-ben.horgan@arm.com> References: <20261125164753.3759904-1-ben.horgan@arm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" On an MPAM system the number of entries in rmid_ptrs[] is the number of PAR= TIDs multiplied by the number of PMGs. The maximum possible number of PARTIDs is 0x10000 and the maximum number of PMGs is 0x100. On a system pushing the li= mits of the MPAM specification this can be large enough to consistently fail the kzalloc_objs() allocation and hence fail to mount the resctrl filesystem. Switch to allocating rmid_ptrs[] using kvzalloc_objs() so that large alloca= tions fall back to vmalloc(). Fixes: 264c285999fc ("arm_mpam: resctrl: Add monitor initialisation and dom= ain boilerplate") Signed-off-by: Ben Horgan Reviewed-by: Tony Luck --- I found this by testing the extremes of a software model and don't expect t= his to effect real systems. --- fs/resctrl/monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/resctrl/monitor.c b/fs/resctrl/monitor.c index 04e4ea612b7c..9c383abfbbe0 100644 --- a/fs/resctrl/monitor.c +++ b/fs/resctrl/monitor.c @@ -979,7 +979,7 @@ int setup_rmid_lru_list(void) return 0; =20 idx_limit =3D resctrl_arch_system_num_rmid_idx(); - rmid_ptrs =3D kzalloc_objs(struct rmid_entry, idx_limit); + rmid_ptrs =3D kvzalloc_objs(struct rmid_entry, idx_limit); if (!rmid_ptrs) return -ENOMEM; =20 @@ -1010,7 +1010,7 @@ void free_rmid_lru_list(void) return; =20 mutex_lock(&rdtgroup_mutex); - kfree(rmid_ptrs); + kvfree(rmid_ptrs); rmid_ptrs =3D NULL; mutex_unlock(&rdtgroup_mutex); } --=20 2.43.0 From nobody Wed Nov 25 17:40:03 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795625287; b=vZlq3sLpDgmT5rbMSY9qtWIPU7eI4aDvEgNV3vgGLPaShDZtDBkEXB85H6Z272jsjulG nHXsOqGFrSNGIE+S3eoFLhXDhoJsy0dyHH/S0ihToAGGdgjUGSx9Sy7gva/ZpqxHePrwA m1EweQ2OL/mVze3iDTpF3ifGUTbMIs4cBWh50hGCVpcnYLON+z/QQQLSXFB1VTLOuw8XT ZMGkryOwiSHHBACIqVIjqM5Lfwi5xXPkcr+wlvvrfFBsb7gdLd+Hd4UdQ9XJgaePZM4dN ddfFF3SgGh6tXMtoebVWV8c0VIx5RZFTe8mnAFNQi/RIrr228jvHyWMtNGoByKzXktg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795625287; h=DMARC-Filter:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=bD74Y7YFn2Ui/9fYlAqrumeixes5hDaDHZMnp2HNQsk=; b=XBcONNOC/aGDYd6LVwst30B1wcl6oiVV3S+OzJUlFNHeKgLJmAbxa3W/TwBUXE0Wk0Mb vfYJF66jWotRalvkbk8KHSlWCXsgGwTdFw2UwFk7/OE3NX8igG6EwummWkl3sWIHOG5Lm +8O6f+5WrA20mcj4O+88m+9u9uIwXqdOiv4Q75IgpqzroY2ytUmNQMVh+hB0+AQ/0vo4K dwF8L4HEB4oaTfs/AlmblCnb7oLsDCW9kB+4/xEY7y9VYbiVVDDz5tju7vhPNlY74rdAl a9hu3yrL7GZiGpmgh1eln2jLTJorcZNryc2ltK22t7IjFMpSxukHUsfoWiQKIeuGz9w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b="Xpydzqm/"; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3690E606A337 for ; Wed, 25 Nov 2026 16:48:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 3690E606A337 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Xpydzqm/ Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id AF94A1596; Wed, 25 Nov 2026 08:48:03 -0800 (PST) Received: from e134344.cambridge.arm.com (e134344.arm.com [10.2.212.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 3DB313F632; Wed, 25 Nov 2026 08:48:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795625286; bh=VEns+w1fXXjC1XMwehU4c6qcdH/ttsD7VUv+FSfusf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Xpydzqm/0VQO4mtmTCBdrfbPprGWZ7pFd8Oz9/5nfsrkZWbNcU/avVRv4CQ6u10Zj 2YeWqTojqZiV2uonVdrNGAEOiKFUCHlMLb8BrQQxoZrc81QAu19QeDhefDoputAyG2 3HvL+oW8jktEB3ZtRFFkNTNhCNOYzCk9z5OpV2ss= From: Ben Horgan To: ben.horgan@arm.com Cc: tony.luck@intel.com, reinette.chatre@intel.com, x86@kernel.org, Dave.Martin@arm.com, james.morse@arm.com, babu.moger@amd.com, fenghuay@nvidia.com, bp@alien8.de, linux-kernel@vger.kernel.org Subject: [PATCH v3 2/3] fs/resctrl: Allocate the arrays in struct rdt_l3_mon_domain using kvzalloc_objs() Date: Wed, 25 Nov 2026 16:47:52 +0000 Message-ID: <20261125164753.3759904-3-ben.horgan@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261125164753.3759904-1-ben.horgan@arm.com> References: <20261125164753.3759904-1-ben.horgan@arm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Each element of rdt_l3_mon_domain::mbm_states[] has resctrl_arch_system_num_rmid_idx() entries. On an MPAM system this is the number of PARTIDs multiplied by the number of PMGs. The maximum possible nu= mber of PARTIDs is 0x10000 and the maximum number of PMGs is 0x100. On a system approaching these limits the kmalloc() based allocation will consistently f= ail and hence fail to bring the monitor domain online. The number of entries of rdt_l3_mon_domain::cntr_cfg is equal to the number= of counters. On an MPAM system the maximum number of counters is 0x1000 and so potentially larger than a 4K page. Allocations of this size can benefit fro= m the fallback to vmalloc() in kvmalloc(). Switch to allocating cntr_cfg and the elements of mbm_states[] using kvzalloc_objs() so that large allocations fall back to vmalloc(). Fixes: 264c285999fc ("arm_mpam: resctrl: Add monitor initialisation and dom= ain boilerplate") Signed-off-by: Ben Horgan --- fs/resctrl/rdtgroup.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c index 57ab090072c2..c55f125ce9a1 100644 --- a/fs/resctrl/rdtgroup.c +++ b/fs/resctrl/rdtgroup.c @@ -4502,10 +4502,10 @@ static void domain_destroy_l3_mon_state(struct rdt_= l3_mon_domain *d) { int idx; =20 - kfree(d->cntr_cfg); + kvfree(d->cntr_cfg); bitmap_free(d->rmid_busy_llc); for_each_mbm_idx(idx) { - kfree(d->mbm_states[idx]); + kvfree(d->mbm_states[idx]); d->mbm_states[idx] =3D NULL; } } @@ -4620,7 +4620,6 @@ void resctrl_offline_mon_domain(struct rdt_resource *= r, struct rdt_domain_hdr *h static int domain_setup_l3_mon_state(struct rdt_resource *r, struct rdt_l3= _mon_domain *d) { u32 idx_limit =3D resctrl_arch_system_num_rmid_idx(); - size_t tsize =3D sizeof(*d->mbm_states[0]); enum resctrl_event_id eventid; int idx; =20 @@ -4634,14 +4633,13 @@ static int domain_setup_l3_mon_state(struct rdt_res= ource *r, struct rdt_l3_mon_d if (!resctrl_is_mon_event_enabled(eventid)) continue; idx =3D MBM_STATE_IDX(eventid); - d->mbm_states[idx] =3D kcalloc(idx_limit, tsize, GFP_KERNEL); + d->mbm_states[idx] =3D kvzalloc_objs(struct mbm_state, idx_limit); if (!d->mbm_states[idx]) goto cleanup; } =20 if (resctrl_is_mbm_enabled() && r->mon.mbm_cntr_assignable) { - tsize =3D sizeof(*d->cntr_cfg); - d->cntr_cfg =3D kcalloc(r->mon.num_mbm_cntrs, tsize, GFP_KERNEL); + d->cntr_cfg =3D kvzalloc_objs(struct mbm_cntr_cfg, r->mon.num_mbm_cntrs); if (!d->cntr_cfg) goto cleanup; } @@ -4650,7 +4648,7 @@ static int domain_setup_l3_mon_state(struct rdt_resou= rce *r, struct rdt_l3_mon_d cleanup: bitmap_free(d->rmid_busy_llc); for_each_mbm_idx(idx) { - kfree(d->mbm_states[idx]); + kvfree(d->mbm_states[idx]); d->mbm_states[idx] =3D NULL; } =20 --=20 2.43.0 From nobody Wed Nov 25 17:40:03 2026 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795625289; b=HPwjGECL0s2L6kN2gdgCDPV1lEl444xaDnNUVUPfXbbDnl/cZVgDTcnM0pg602ZF1zak UP/hnHQObRpBwqBewRALiHDRcP6sQfdSp3QvxxOoNh+uGoLsIqmgDXV5o8I24zdp14d1d XoUyIzR+pQVsQurEkgJukIZ7cr2jrMF4cvcWM/5bW42w2G7gwVMYzCefo/YGcjVQS7pcu WtSyYM6GFNK+NN6Vxu3MljeLro1KJOsXbVcNIKQ/KXl1nHogZi5TVGvhzUw0NkFPqegvf YHR8JKG6uuEGcUqYzuPm2HnUhM0TAgn0YCobZ8EhSEjkNo/1bpZNhMHTpeWEm7DlhGg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795625289; h=DMARC-Filter:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding; bh=hhe212rNII2sWmQ6hlJLZbOJYm+nvtbvSILz6we7yXQ=; b=qqGeXMFXfeuXmTapQ1mRRGLsDkU8v8qbe4UB8D8rTUlW5GPMnOH4UWcXl6527C3v+gqW ctJCG/gwD3MkGCW+os+y5H2cJ12YN8kFN+MZ7jQS3qexYuQL5nxBta4LT5vM5FgM0JAEE cU5JqkTRYG/2zpfGgk3ONfFEUGZcqCY4n4JhujvGFTQ7gXnYNkO5oUi8cw5jGU0Na1zq4 Vae30RH8rr8BmqdoaGQi93ZfgWPC7/KTt2Vm40Pk4wi/7HigEZ5cKCfoYE9JhmewDvyUa m5oAOd/SeJDrq69dRVWREXjl4XOfRV+bQBup7/1UFl2zOTcib7jhcaLdO5/1HQF/xUQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Wwsr4cHw; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD026606A323 for ; Wed, 25 Nov 2026 16:48:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DD026606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=Wwsr4cHw Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E4EF175A; Wed, 25 Nov 2026 08:48:05 -0800 (PST) Received: from e134344.cambridge.arm.com (e134344.arm.com [10.2.212.8]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E05CF3F632; Wed, 25 Nov 2026 08:48:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1795625288; bh=9DV2B2gleJ6dT1bntFLa+KvpgVo7cqnohsvuBVky40s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Wwsr4cHwFssgAnxTTGBd1N2un+1NZKgjD/6Iz+U77YJCDfztjAkMjOLlPz4jiKkU7 kJBZ4OgzThtQbLBu4u0EHTIUTLWQ5/W9NpiLyY+lVzm2AVzuMcMyZX3mQ/YM/krTgD dya/1Az3fKWCffL15iayBqkTVUK0+qHpcHnpUlEI= From: Ben Horgan To: ben.horgan@arm.com Cc: tony.luck@intel.com, reinette.chatre@intel.com, x86@kernel.org, Dave.Martin@arm.com, james.morse@arm.com, babu.moger@amd.com, fenghuay@nvidia.com, bp@alien8.de, linux-kernel@vger.kernel.org Subject: [PATCH v3 3/3] fs/resctrl: Allocate rdt_l3_mon_domain::rmid_busy_llc using kvzalloc_objs() Date: Wed, 25 Nov 2026 16:47:53 +0000 Message-ID: <20261125164753.3759904-4-ben.horgan@arm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261125164753.3759904-1-ben.horgan@arm.com> References: <20261125164753.3759904-1-ben.horgan@arm.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The bitmap rdt_l3_mon_domain::rmid_busy_llc has resctrl_arch_system_num_rmid_idx() entries. On an MPAM system this is the number of PARTIDs multiplied by the number of PMGs. The maximum possible nu= mber of PARTIDs is 0x10000 and the maximum number of PMGs is 0x100. On a system approaching these limits the kmalloc() based allocation will consistently f= ail and hence fail to bring the monitor domain online. As there is no equivalent to bitmap_zalloc() that uses kvmalloc() or vmallo= c(), open code the allocation of rmid_busy_llc using kvzalloc_objs() so that lar= ge allocations fall back to vmalloc(). Fixes: 264c285999fc ("arm_mpam: resctrl: Add monitor initialisation and dom= ain boilerplate") Signed-off-by: Ben Horgan --- fs/resctrl/rdtgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/resctrl/rdtgroup.c b/fs/resctrl/rdtgroup.c index c55f125ce9a1..a8eebb5a5c4b 100644 --- a/fs/resctrl/rdtgroup.c +++ b/fs/resctrl/rdtgroup.c @@ -4503,7 +4503,7 @@ static void domain_destroy_l3_mon_state(struct rdt_l3= _mon_domain *d) int idx; =20 kvfree(d->cntr_cfg); - bitmap_free(d->rmid_busy_llc); + kvfree(d->rmid_busy_llc); for_each_mbm_idx(idx) { kvfree(d->mbm_states[idx]); d->mbm_states[idx] =3D NULL; @@ -4624,7 +4624,7 @@ static int domain_setup_l3_mon_state(struct rdt_resou= rce *r, struct rdt_l3_mon_d int idx; =20 if (resctrl_is_mon_event_enabled(QOS_L3_OCCUP_EVENT_ID)) { - d->rmid_busy_llc =3D bitmap_zalloc(idx_limit, GFP_KERNEL); + d->rmid_busy_llc =3D kvzalloc_objs(unsigned long, BITS_TO_LONGS(idx_limi= t)); if (!d->rmid_busy_llc) return -ENOMEM; } @@ -4646,7 +4646,7 @@ static int domain_setup_l3_mon_state(struct rdt_resou= rce *r, struct rdt_l3_mon_d =20 return 0; cleanup: - bitmap_free(d->rmid_busy_llc); + kvfree(d->rmid_busy_llc); for_each_mbm_idx(idx) { kvfree(d->mbm_states[idx]); d->mbm_states[idx] =3D NULL; --=20 2.43.0