[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <629305cc0e6b433d90354fb22d3bacf1@huawei.com>
Date: Wed, 19 Mar 2025 09:48:11 +0000
From: "zhangxiaomeng (A)" <zhangxiaomeng13@...wei.com>
To: Carlos Llamas <cmllamas@...gle.com>
CC: Andrew Morton <akpm@...ux-foundation.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, Boqun Feng <boqun.feng@...il.com>, "J. R.
Okajima" <hooanon05g@...il.com>, Peter Zijlstra <peterz@...radead.org>,
Waiman Long <longman@...hat.com>, Ingo Molnar <mingo@...hat.com>, Will Deacon
<will@...nel.org>
Subject: 回复: [PATCH] lockdep: Fix upper limit for LOCKDEP_BITS configs
Thank you for the response. I should clarify that the issue occurs when modifying additional config values. Specifically, when LOCKDEP_BITS is set to 24 along with setting LOCKDEP_CHAINS_BITS and LOCKDEP_STACK_TRACE_BITS to their maximum upper limits, the build fails.
Here are the exact steps to reproduce:
Run make menuconfig
Enable CONFIG_PROVE_LOCKING
Set the following values:
LOCKDEP_CHAINS_BITS = 21
LOCKDEP_BITS = 24
LOCKDEP_STACK_TRACE_BITS = 26
Build kernel 6.6 with make -j122
-----邮件原件-----
发件人: Carlos Llamas <cmllamas@...gle.com>
发送时间: 2025年3月15日 2:33
收件人: zhangxiaomeng (A) <zhangxiaomeng13@...wei.com>
抄送: Andrew Morton <akpm@...ux-foundation.org>; linux-kernel@...r.kernel.org; Boqun Feng <boqun.feng@...il.com>; J. R. Okajima <hooanon05g@...il.com>; Peter Zijlstra <peterz@...radead.org>; Waiman Long <longman@...hat.com>; Ingo Molnar <mingo@...hat.com>; Will Deacon <will@...nel.org>
主题: Re: [PATCH] lockdep: Fix upper limit for LOCKDEP_BITS configs
On Fri, Mar 14, 2025 at 06:47:29AM +0000, Xiaomeng Zhang wrote:
> The upper limit that was initially setup for LOCKDEP_BITS configs is
> too high (24 bit shift), which causes the kernel image size to exceed
> KERNEL_IMAGE_SIZE (1024MB) limit. When LOCKDEP_BITS is set to 24, the
> kernel image size grows to 1562.19MB.
This is not entirely accurate. Look at _how_ the new upper limits where determined in commit e638072e6172. This should build just fine:
$ make defconfig
$ ./scripts/config -e PROVE_LOCKING --set-val LOCKDEP_BITS 24
$ make -s olddefconfig all
Is it not the case for you? My guess is that you've also changed _other_ configs and combined with that you hit the limit. If not, can you please provide the steps and commit you are using?
Thanks,
--
Carlos Llamas
Powered by blists - more mailing lists