From nobody Sun Feb 8 15:59:17 2026 Received: from mta21.hihonor.com (mta21.hihonor.com [81.70.160.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB3C420103A for ; Tue, 22 Apr 2025 11:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=81.70.160.142 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745321981; cv=none; b=NH5UUOgTjtNJq0XS3EsqekoKGNsRokFwU6nLX0aykAEy8MS4L8b+uZqS9eA2FYxRR/juN5ZTTrCfgwPGAUdJz374fqaZl69dgrHh9dN+AwIvrnmumtRubbReBeyR5CIXu2YXfQoaBGcnHQ1n6QTTt1YjGIBkL4D1hCY5Dph1H4E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1745321981; c=relaxed/simple; bh=JuS9LrdXRFa4vONOB2S8X765dkWQDfWn2EXLAI54SSM=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=fFD8fT+uJmHf+/QYC2WtUb0AOw83GnDSZnjeUkfEP5SM9dr0IlJ75Rlrg0uqdbA1daJB2l+s+NfhawzdJCYUnrgzAQMowta148eSQoMv3A3G2+kJDdMl+oN65Pl6VrrcRU2FCVM4Xvd2inZsGov52ya4Onk+U2EB/HNX2U65Fhc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=honor.com; spf=pass smtp.mailfrom=honor.com; arc=none smtp.client-ip=81.70.160.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=honor.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=honor.com Received: from w012.hihonor.com (unknown [10.68.27.189]) by mta21.hihonor.com (SkyGuard) with ESMTPS id 4ZhgGF0d7KzYr1F0; Tue, 22 Apr 2025 19:37:57 +0800 (CST) Received: from a009.hihonor.com (10.68.30.244) by w012.hihonor.com (10.68.27.189) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 22 Apr 2025 19:39:31 +0800 Received: from a007.hihonor.com (10.68.22.31) by a009.hihonor.com (10.68.30.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Tue, 22 Apr 2025 19:39:30 +0800 Received: from a007.hihonor.com ([fe80::e866:83ac:f23b:c25c]) by a007.hihonor.com ([fe80::e866:83ac:f23b:c25c%10]) with mapi id 15.02.1544.011; Tue, 22 Apr 2025 19:39:30 +0800 From: gaoxu To: Andrew Morton , Dennis Zhou , Tejun Heo , Christoph Lameter CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "surenb@google.com" , yipengxiang , gaoxu Subject: mm: percpu: increase PERCPU_MODULE_RESERVE to avoid allocation failure Thread-Topic: mm: percpu: increase PERCPU_MODULE_RESERVE to avoid allocation failure Thread-Index: Aduzek2qZlvd+/bbQUCcTHfEW2xOUQ== Date: Tue, 22 Apr 2025 11:39:30 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In android16-6.12, enabling CONFIG_MEM_ALLOC_PROFILING causes some modules to fail to load during boot because of failed percpu memory allocation. [811:modprobe]percpu: allocation failed, size=3D5200 align=3D8 atomic=3D0, = alloc from reserved chunk failed [811:modprobe]Call trace: [811:modprobe] dump_backtrace+0xfc/0x17c [811:modprobe] show_stack+0x18/0x28 [811:modprobe] dump_stack_lvl+0x40/0xc0 [811:modprobe] dump_stack+0x18/0x24 [811:modprobe] pcpu_alloc_noprof+0x96c/0xb58 [811:modprobe] percpu_modalloc+0x50/0xec [811:modprobe] load_module+0x1158/0x153c [811:modprobe] __arm64_sys_finit_module+0x23c/0x340 [811:modprobe] invoke_syscall+0x58/0x10c [811:modprobe] el0_svc_common+0xa8/0xdc [811:modprobe] do_el0_svc+0x1c/0x28 [811:modprobe] el0_svc+0x40/0x90 [811:modprobe] el0t_64_sync_handler+0x70/0xbc [811:modprobe] el0t_64_sync+0x1a8/0x1ac [811:modprobe]ipam: Could not allocate 5200 bytes percpu data Increase PERCPU_MODULE_RESERVE to resolve this issue. Signed-off-by: gao xu --- include/linux/percpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/percpu.h b/include/linux/percpu.h index 52b5ea663..765c7f562 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h @@ -16,7 +16,7 @@ /* enough to cover all DEFINE_PER_CPUs in modules */ #ifdef CONFIG_MODULES #ifdef CONFIG_MEM_ALLOC_PROFILING -#define PERCPU_MODULE_RESERVE (8 << 13) +#define PERCPU_MODULE_RESERVE (8 << 14) #else #define PERCPU_MODULE_RESERVE (8 << 10) #endif --=20 2.17.1