Re: [PATCH v5 2/3] fbcon: Call WARN_CONSOLE_UNLOCKED() where applicable
From: Sergey Senozhatsky <hidden>
Date: 2018-07-12 00:03:39
Also in:
dri-devel, lkml
From: Sergey Senozhatsky <hidden>
Date: 2018-07-12 00:03:39
Also in:
dri-devel, lkml
Hi, On (07/11/18 16:46), Thomas Zimmermann wrote:
Am 28.06.2018 um 11:03 schrieb Hans de Goede:quoted
Replace comments about places where the console lock should be held with calls to WARN_CONSOLE_UNLOCKED() to assert that it is actually held.Debugging fbcon sometimes requires to not take the console lock. This patch breaks the debugging workaround provided by 'fb.lockless_register_fb'. The dmesg is now filled with warnings about the missing lock.
Hmm. I once dealt with WARN_CONSOLE_UNLOCKED(), and back then, IIRC, I really wanted to turn it into WARN_ONCE_CONSOLE_UNLOCKED(), which would WARN_ON_ONCE() instead of WARN_ON(). It's just a bit too noisy and verbose and a single backtrace was already enough. -ss