On 2024-11-25 15:54:48 [-0500], Waiman Long wrote: > > FWIW, the description of commit 560af5dc839 is misleading. It says > > "Enable > > PROVE_RAW_LOCK_NESTING _by default_" (emphasis mine). That is not what > > the > > commit does. It force-enables PROVE_RAW_LOCK_NESTING if PROVE_LOCKING is > > enabled. It is all or nothing. > > > I think we can relax it by > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index 5d9eca035d47..bfdbd3fa2d29 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -1399,7 +1399,7 @@ config PROVE_LOCKING > config PROVE_RAW_LOCK_NESTING > bool > depends on PROVE_LOCKING > - default y > + default y if ARCH_SUPPORTS_RT > help > Enable the raw_spinlock vs. spinlock nesting checks which ensure > that the lock nesting rules for PREEMPT_RT enabled kernels are > > Sebastian, what do you think? All the changes Guenter proposed make sense and were limited to sparc. So we could apply that. Limiting the option to the RT architectures would silence the warnings. If there is no interest in getting RT on sparc there is probably no interest in getting the lock ordering straight. I remember PeterZ did not like the option in the beginning but there was no way around it especially since printk triggered it on boot. I'm fine with both solutions (fixing sparc or limiting PROVE_RAW_LOCK_NESTING). I leave the final judgment to the locking people. > Cheers, > Longman Sebastian