provide nbcon base
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest8 patches 4 repliesIn review
- v48 patches 7 repliesSuperseded
- v37 patches 10 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 8 patches | 27 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | printk: Add non-BKL (nbcon) console basic infrastructureinclude/ kernel/ kernel/ +2 more | +120 | 0 replies | |
| 2/8 | printk: nbcon: Add acquire/release logicinclude/ kernel/ | +553 | 1 reply | |
| 3/8 | printk: Make static printk buffers available to nbconkernel/ kernel/ | +11 | 0 replies | |
| 4/8 | printk: nbcon: Add buffer managementinclude/ kernel/ kernel/ +1 more | +99 | 0 replies | |
| 5/8 | printk: nbcon: Add ownership state functionskernel/ | +122 | 0 replies | |
| 6/8 | printk: nbcon: Add sequence handlinginclude/ kernel/ kernel/ +1 more | +136 | 1 reply | |
| 7/8 | printk: nbcon: Add emit function and callback function for atomic printinginclude/ kernel/ kernel/ +1 more | +134 | 0 replies | |
| 8/8 | printk: nbcon: Allow drivers to mark unsafe regions and check stateinclude/ kernel/ | +85 | 0 replies |
Reviews trailers per patch
All 8 patches have a Reviewed-by or Acked-by.
| Patch | Petr Mladek |
|---|---|
| 1/8 | R-b |
| 2/8 | R-b |
| 3/8 | R-b |
| 4/8 | R-b |
| 5/8 | R-b |
| 6/8 | R-b |
| 7/8 | R-b |
| 8/8 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH printk v5 0/8] provide nbcon base
Hi,
This is v5 of a series to introduce the new non-BKL (nbcon) consoles. v4 is here [0]. For information about the motivation of the atomic consoles, please read the cover letter of v1 [1].
This series focuses on providing the base functionality of the nbcon consoles. In particular, it implements the ownership and priority semantics for nbcon consoles. This series does _not_ include threaded printing, atomic printing regions, or nbcon drivers. Those features will be added in separate follow-up series.
The changes since v4:
- Remove nbcon_seq_init() and use nbcon_seq_force() instead.
- For nbcon_seq_force(), use the oldest record if the specified record no longer exists.
- For all try_acquire_*() variants, do not update the nbcon state on success since it was not used.
- For nbcon_context_try_acquire_requested(), replace the cmpxhg loop with a single cmpxchg.
- For nbcon_context_try_acquire_requested(), remove an explicit check for @unsafe_takeover. The nbcon_waiter_matches() check is enough to detect unsafe hostile takeovers.
- Rename nbcon_context_acquire_hostile() back to
nbcon_context_try_acquire_hostile().
- Decide in nbcon_context_try_acquire_hostile() if an unsafe hostile acquire is allowed rather than at the end of and after nbcon_context_try_acquire_handover().
- For register_console(), call nbcon_free() if it is a braille console.
- Change many comments as suggested by pmladek. In the feedback thread I mentioned some other comment changes that I made.
- Added various WARN_ON_ONCE() checks as suggested by pmladek.
John Ogness
[0] https://lore.kernel.org/lkml/[email protected]
[1] https://lore.kernel.org/lkml/[email protected]
John Ogness (1):
printk: Make static printk buffers available to nbcon
Thomas Gleixner (7):
printk: Add non-BKL (nbcon) console basic infrastructure
printk: nbcon: Add acquire/release logic
printk: nbcon: Add buffer management
printk: nbcon: Add ownership state functions
printk: nbcon: Add sequence handling
printk: nbcon: Add emit function and callback function for atomic
printing
printk: nbcon: Allow drivers to mark unsafe regions and check state
include/linux/console.h | 129 +++++ kernel/printk/Makefile | 2 +- kernel/printk/internal.h | 31 ++ kernel/printk/nbcon.c | 1029 ++++++++++++++++++++++++++++++++++++++ kernel/printk/printk.c | 78 ++- 5 files changed, 1245 insertions(+), 24 deletions(-) create mode 100644 kernel/printk/nbcon.c
base-commit: 189f53ec666838729ab29a220ca4c1e1f1359f95
Signature · 1 line
2.39.2