v6.11-rc5-rt5
Subsystems (9)
Dear RT folks!
I'm pleased to announce the v6.11-rc5-rt5 patch set.
Changes since v6.11-rc5-rt4:
- Update John's printk series:
- Removed "threadprintk" boot argument to force threaded printing of legacy console drivers on !CONFIG_PREEMPT_RT.
- Reverted delayed flushing in emergency mode. For non-panic emergencies (WARN, RCU stall, lockdep splat) the emergency message lines are now printed synchronously, rather than buffering the full emergency message block and then flushing synchronously.
- Switched to the lockless RCU API when detecting if printk threads are waiting.
- Re-implemented logic for determining the flush type into a common helper function to provide consistent flushing behavior.
- Re-implemented kthread starting/stopping for clean and reliable transitions between atomic and threaded printing.
- Use lockless stats for nft_counter (netfilter).
Known issues
None.
The delta patch against v6.11-rc5-rt4 is appended below and can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/6.11/incr/patch-6.11-rc5-rt4-rt5.patch.xz
You can get this release via the git tree at:
https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git v6.11-rc5-rt5
The RT patch against v6.11-rc5 can be found here:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/6.11/older/patch-6.11-rc5-rt5.patch.xz
The split quilt queue is available at:
https://cdn.kernel.org/pub/linux/kernel/projects/rt/6.11/older/patches-6.11-rc5-rt5.tar.xz
Sebastian
Documentation/admin-guide/kernel-parameters.txt +0 -12
@@ -6618,18 +6618,6 @@ Force threading of all interrupt handlers except those marked explicitly IRQF_NO_THREAD. - threadprintk [KNL] - Force threaded printing of all legacy consoles. Be - aware that with this option, the shutdown, reboot, and - panic messages may not be printed on the legacy - consoles. Also, earlycon/earlyprintk printing will be - delayed until a regular console or the kthread is - available. - - Users can view /proc/consoles to see if their console - driver is legacy or not. Non-legacy (NBCON) console - drivers are already threaded and are shown with 'N'. - topology= [S390,EARLY] Format: {off | on} Specify if the kernel should make use of the cpu
drivers/tty/serial/8250/8250_port.c +4 -4
@@ -3492,23 +3492,23 @@ void serial8250_console_write_thread(struct uart_8250_port *up,*/ for (i =0 ; i < len; i++) {if (!nbcon_enter_unsafe (wctxt)) { -nbcon_reacquire (wctxt); +nbcon_reacquire_nobuf (wctxt);break ; }uart_console_write (port, wctxt->outbuf + i,1 , serial8250_console_putchar);if (!nbcon_exit_unsafe (wctxt)) { -nbcon_reacquire (wctxt); +nbcon_reacquire_nobuf (wctxt);break ; } } }else { -nbcon_reacquire (wctxt); +nbcon_reacquire_nobuf (wctxt); }while (!nbcon_enter_unsafe (wctxt)) -nbcon_reacquire (wctxt); +nbcon_reacquire_nobuf (wctxt);/* Finally, wait for transmitter to become empty and restore IER. */ wait_for_xmitr (up,UART_LSR_BOTH_EMPTY );
drivers/tty/tty_io.c +2 -7
@@ -3567,13 +3567,8 @@ static ssize_t show_cons_active(struct device *dev,for_each_console (c) {if (!c->device)continue ; -if (c->flags &CON_NBCON ) { -if (!c->write_atomic && !c->write_thread) -continue ; - }else { -if (!c->write) -continue ; - } +if (!(c->flags &CON_NBCON ) && !c->write) +continue ;if ((c->flags &CON_ENABLED ) ==0 )continue ; cs[i++] = c;
fs/proc/consoles.c +2 -9
@@ -28,7 +28,6 @@ static int show_console_dev(struct seq_file *m, void *v) };char flags[ARRAY_SIZE (con_flags) +1 ];struct console *con = v; -char con_write ='-' ;unsigned int a;dev_t dev =0 ;
@@ -59,14 +58,8 @@ static int show_console_dev(struct seq_file *m, void *v)seq_setwidth (m,21 -1 );seq_printf (m,"%s%d" , con->name, con->index);seq_pad (m,' ' ); -if (con->flags &CON_NBCON ) { -if (con->write_atomic || con->write_thread) - con_write ='W' ; - }else { -if (con->write) - con_write ='W' ; - } -seq_printf (m,"%c%c%c (%s)" , con->read ?'R' :'-' , con_write, +seq_printf (m,"%c%c%c (%s)" , con->read ?'R' :'-' , + ((con->flags &CON_NBCON ) || con->write) ?'W' :'-' , con->unblank ?'U' :'-' , flags);if (dev)seq_printf (m," %4d:%d" ,MAJOR (dev),MINOR (dev));
include/linux/console.h +26 -18
79 lines not on this page · raw message
include/linux/printk.h +0 -1
@@ -283,7 +283,6 @@ static inline void dump_stack(void)static inline void printk_trigger_flush (void ) { } -static inline void console_try_replay_all (void ) { }
kernel/locking/lockdep.c +0 -1
@@ -6703,7 +6703,6 @@ void debug_show_all_locks(void)if (!p->lockdep_depth)continue ;lockdep_print_held_locks (p); -nbcon_cpu_emergency_flush ();touch_nmi_watchdog ();touch_all_softlockup_watchdogs (); }
kernel/printk/internal.h +120 -29
228 lines not on this page · raw message
kernel/printk/nbcon.c +325 -367
999 lines not on this page · raw message
kernel/printk/printk.c +301 -267
991 lines not on this page · raw message
kernel/printk/printk_ringbuffer.h +2 -0
@@ -403,10 +403,12 @@ u64 prb_next_reserve_seq(struct printk_ringbuffer *rb);#define __u64seq_to_ulseq (u64seq) (u64seq)#define __ulseq_to_u64seq (rb, ulseq) (ulseq) +#define ULSEQ_MAX (rb) (-1)#else /* CONFIG_64BIT */ #define __u64seq_to_ulseq (u64seq) ((u32)u64seq) +#define ULSEQ_MAX (rb) __u64seq_to_ulseq(prb_first_seq(rb) + 0x80000000UL)static inline u64 __ulseq_to_u64seq (struct printk_ringbuffer *rb,u32 ulseq) {
kernel/printk/printk_safe.c +6 -4
@@ -38,13 +38,15 @@ void __printk_deferred_exit(void)__printk_safe_exit (); } -bool is_printk_deferred (void ) +bool is_printk_legacy_deferred (void ) {/* * The per-CPU variable @printk_context can be read safely in any -* context. The CPU migration always disabled when set. +* context. CPU migration is always disabled when set. */ -return (this_cpu_read (printk_context) ||in_nmi ()); +return (force_legacy_kthread () || +this_cpu_read (printk_context) || +in_nmi ()); } asmlinkage int vprintk(const char *fmt, va_list args)
@@ -59,7 +61,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)* Use the main logbuf even in NMI. But avoid calling console * drivers that might have their own locks. */ -if (is_printk_deferred ()) +if (is_printk_legacy_deferred ())return vprintk_deferred (fmt, args);/* No obstacles. */
kernel/rcu/tree_exp.h +0 -2
@@ -643,7 +643,6 @@ static void synchronize_rcu_expedited_wait(void)preempt_disable ();// For smp_processor_id() in dump_cpu_task(). dump_cpu_task (cpu);preempt_enable (); -nbcon_cpu_emergency_flush (); }rcu_exp_print_detail_task_stall_rnp (rnp); }
@@ -819,7 +818,6 @@ static void rcu_exp_print_detail_task_stall_rnp(struct rcu_node *rnp)*/ touch_nmi_watchdog ();sched_show_task (t); -nbcon_cpu_emergency_flush (); }raw_spin_unlock_irqrestore_rcu_node (rnp, flags); }
kernel/rcu/tree_stall.h +0 -2
@@ -261,7 +261,6 @@ static void rcu_print_detail_task_stall_rnp(struct rcu_node *rnp)*/ touch_nmi_watchdog ();sched_show_task (t); -nbcon_cpu_emergency_flush (); }raw_spin_unlock_irqrestore_rcu_node (rnp, flags); }
@@ -525,7 +524,6 @@ static void print_cpu_stall_info(int cpu) falsepositive ? " (false positive?)" : "");print_cpu_stat_info (cpu); -nbcon_cpu_emergency_flush (); }/* Complain about starvation of grace-period kthread. */
localversion-rt +1 -1
@@ -1 +1 @@ --rt4 +-rt5
net/netfilter/nft_counter.c +46 -44
190 lines not on this page · raw message