Re: commit 894d1b3db41c leads to frequent hangs when booting

From: Bert Karwatzki
Date: Wed Dec 11 2024 - 15:28:45 EST


Am Mittwoch, dem 11.12.2024 um 20:19 +0100 schrieb Thomas Gleixner:
> On Wed, Dec 11 2024 at 19:25, Bert Karwatzki wrote:
> > I tried to debug this with CONFIG_LOCKDEP=y in v6.13-rc2, but using CONFIG_LOCKDEP=y
> > makes the hangs disappear or far less likely, and I get this warning
> > (2 examples from two boots):
> >
> > [ 17.203857] [ T1337] BUG: MAX_LOCKDEP_CHAIN_HLOCKS too low!
>
> config LOCKDEP_CHAINS_BITS
> int "Bitsize for MAX_LOCKDEP_CHAINS"
> depends on LOCKDEP && !LOCKDEP_SMALL
> range 10 21
> default 16
> help
> Try increasing this value if you hit "BUG: MAX_LOCKDEP_CHAINS too low!" message.
>
> Can you increase the chain bits config and try again?
>
> Thanks,
>
> tglx

With LOCKDEP_CHAINS_BITS=21 I just get and boot with no hang and no error
message from lockdep, CONFIG_LOCKDEP=y yes seems to make the bug go away.

Bert Karwatzki