Skip to content

fbdev/core: Disable console-lock warnings when fb.lockless_register_fb is set

Thomas Zimmermann dri-devel linux-fbdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 8 repliesIn review
  2. v21 patch 6 repliesSuperseded
  3. v11 patch 2 repliesSuperseded

Changes in v3 from the cover letter

- implement ignore_console_lock_warning with atomic_t

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2console: Replace #if 0 with atomic var 'ignore_console_lock_warning'include/linux/console.h kernel/printk/printk.c+12 -53 replies
2/2fbdev/core: Disable console-lock warnings when fb.lockless_register_fb is setdrivers/video/fbdev/core/fbmem.c+9 -42 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHans de GoedePetr MladekSergey Senozhatsky
SeriesA-b R-b
1/2A-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] fbdev/core: Disable console-lock warnings when fb.lockless_register_fb is set

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