From mboxrd@z Thu Jan 1 00:00:00 1970 References: <7bd62ff7-0f90-d881-4a5f-7a80091aa321@siemens.com> From: Philippe Gerum Subject: Re: dovetail: DEBUG_LOCKS_WARN_ON(!lockdep_stage_disabled()) In-reply-to: <7bd62ff7-0f90-d881-4a5f-7a80091aa321@siemens.com> Date: Wed, 09 Jun 2021 18:00:49 +0200 Message-ID: <87eedb6n9q.fsf@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Xenomai Jan Kiszka writes: > Hi Philippe, > > currently trying to understand [1]: The check in > lockdep_hardirqs_on_prepare triggers, e.g. over exc_int3 -> > do_int3_user, and then on cond_local_irq_enable(). > > Where should have the current stage be stalled after exc_int3 so that > lockdep is happy? > Nowhere. v5.8 introduced irqentry_enter_from_user_mode() which raw (debug) traps invoke directly, and this one does not reconcile the hard irq state with the stall bit. > Interestingly, I do not get this with my local .config, and I still > didn't find the switches that make the difference. > > Jan > > [1] https://source.denx.de/Xenomai/xenomai-images/-/jobs/276895#L946 -- Philippe.