All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] fbdev/core: Disable console-lock warnings when fb.lockless_register_fb is set
@ 2018-07-19 10:15 ` Thomas Zimmermann
  0 siblings, 0 replies; 21+ messages in thread
From: Thomas Zimmermann @ 2018-07-19 10:15 UTC (permalink / raw)
  To: rostedt, pmladek, linux-fbdev, sergey.senozhatsky, b.zolnierkie,
	dri-devel, hdegoede, akpm, sergey.senozhatsky.work
  Cc: Thomas Zimmermann

Hi,

this is version 3 of the WARN_CONSOLE_UNLOCKED patch set. The
macro prints a warning if the console's critical sections are
entered without holding the console lock. This patch set allows
to disable the warnings while debugging the console.

In the original approach, WARN_CONSOLE_UNLOCKED was disabled by
setting ignore_console_lock_warning of type bool. As suggested by
Petr Mladek, the new implementation is based on atomic_t and allows
multiple threads to manipulate the warning state concurrently.

With version 3, the patch set now includes the patch for introducing
ignore_console_lock_warning. This patch superseds all previous patches
of the same purpose.

Best regards
Thomas

v3:
	- implement ignore_console_lock_warning with atomic_t
v2:
	- restore ignore_console_lock_warning if lock_fb_info() fails

Thomas Zimmermann (2):
  console: Replace #if 0 with atomic var 'ignore_console_lock_warning'
  fbdev/core: Disable console-lock warnings when fb.lockless_register_fb
    is set

 drivers/video/fbdev/core/fbmem.c | 13 +++++++++----
 include/linux/console.h          | 14 +++++++++-----
 kernel/printk/printk.c           |  3 +++
 3 files changed, 21 insertions(+), 9 deletions(-)

--
2.18.0


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-07-31 15:38 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19 10:15 [PATCH v3 0/2] fbdev/core: Disable console-lock warnings when fb.lockless_register_fb is set Thomas Zimmermann
2018-07-19 10:15 ` Thomas Zimmermann
2018-07-19 10:16 ` [PATCH v3 1/2] console: Replace #if 0 with atomic var 'ignore_console_lock_warning' Thomas Zimmermann
2018-07-19 10:16   ` Thomas Zimmermann
2018-07-20  9:07   ` Petr Mladek
2018-07-20  9:07     ` Petr Mladek
2018-07-31 10:45   ` Bartlomiej Zolnierkiewicz
2018-07-31 10:45     ` Bartlomiej Zolnierkiewicz
2018-07-31 15:38   ` Steven Rostedt
2018-07-31 15:38     ` Steven Rostedt
2018-07-19 10:16 ` [PATCH v3 2/2] fbdev/core: Disable console-lock warnings when fb.lockless_register_fb is set Thomas Zimmermann
2018-07-19 10:16   ` Thomas Zimmermann
2018-07-20  9:10   ` Petr Mladek
2018-07-20  9:10     ` Petr Mladek
2018-07-31 10:45   ` Bartlomiej Zolnierkiewicz
2018-07-31 10:45     ` Bartlomiej Zolnierkiewicz
2018-07-19 11:45 ` [PATCH v3 0/2] " Hans de Goede
2018-07-19 11:45   ` Hans de Goede
2018-07-19 11:46 ` Hans de Goede
2018-07-20 12:08 ` Sergey Senozhatsky
2018-07-20 12:08   ` Sergey Senozhatsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.