3.2-rc5-rt8
Subsystems (5)
Dear RT Folks,
I'm pleased to announce the 3.2-rc5-rt8 release. 3.2-rc5-rt7 is a not announced intermediate release, which only updates to 3.2-rc5. No rt changes except dropping patches which made it into 3.2-rc5.
NOTE: Releases are back to www.kernel.org - the intermediate tglx.de
release URL is history!
Changes vs. 3.2-rc5-rt7:
* Disable CPUMASK_OFFSTACK for RT
* printk preempt_disable to migrate_disable conversion (Richard Weinberger)
* i7300_idle.c raw spinlock conversion (Mike Galbraith)
* Simple and lightweight raw spinlock based waitqueue implementation to avoid the overhead of "sleeping spinlock based" waitqueues and their impact in real atomic code pathes
* Convert acpi ec waitqueue to simple waitqueue
* Compile warning fixes (Ingo Molnar)
The incremental patch against 3.2-rc5-rt7 can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/incr/patch-3.2-rc5-rt7-rt8.patch.bz2
and is also appended below.
The RT patch against 3.2-rc5 can be found here:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patch-3.2-rc5-rt8.patch.bz2
The split quilt queue is available at:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patches-3.2-rc5-rt8.tar.bz2
Enjoy,
tglx
--- arch/x86/Kconfig | 2 drivers/acpi/ec.c | 8 +- drivers/acpi/internal.h | 4 - drivers/idle/i7300_idle.c | 8 +- drivers/tty/serial/8250.c | 13 ++- include/linux/wait-simple.h | 152 ++++++++++++++++++++++++++++++++++++++++++++ kernel/Makefile | 2 kernel/printk.c | 4 - kernel/rcutree.c | 2 kernel/rcutree.h | 1 kernel/sched.c | 4 - kernel/wait-simple.c | 63 ++++++++++++++++++ lib/Kconfig | 1 localversion-rt | 2 14 files changed, 247 insertions(+), 19 deletions(-)
arch/x86/Kconfig +1 -1
@@ -730,7 +730,7 @@ config IOMMU_HELPER config MAXSMP bool "Enable Maximum number of SMP Processors and NUMA Nodes" depends on X86_64 && SMP && DEBUG_KERNEL && EXPERIMENTAL - select CPUMASK_OFFSTACK + select CPUMASK_OFFSTACK if !PREEMPT_RT_FULL ---help--- Enable maximum number of CPUS and NUMA Nodes for this architecture. If unsure, say N.
drivers/acpi/ec.c +4 -4
@@ -222,7 +222,7 @@ static int ec_poll(struct acpi_ec *ec)if (ec_transaction_done (ec))return 0 ; }else { -if (wait_event_timeout (ec->wait, +if (swait_event_timeout (ec->wait,ec_transaction_done (ec),msecs_to_jiffies (1 )))return 0 ;
@@ -272,7 +272,7 @@ static int ec_wait_ibf0(struct acpi_ec *unsigned long delay = jiffies +msecs_to_jiffies (ec_delay);/* interrupt wait manually if GPE mode is not active */ while (time_before (jiffies, delay)) -if (wait_event_timeout (ec->wait,ec_check_ibf0 (ec), +if (swait_event_timeout (ec->wait,ec_check_ibf0 (ec),msecs_to_jiffies (1 )))return 0 ;return -ETIME ;
@@ -612,7 +612,7 @@ static u32 acpi_ec_gpe_handler(acpi_handadvance_transaction (ec,acpi_ec_read_status (ec));if (ec_transaction_done (ec) && (acpi_ec_read_status (ec) &ACPI_EC_FLAG_IBF ) ==0 ) { -wake_up (&ec->wait); +swait_wake (&ec->wait);ec_check_sci (ec,acpi_ec_read_status (ec)); }return ACPI_INTERRUPT_HANDLED |ACPI_REENABLE_GPE ;
@@ -676,7 +676,7 @@ static struct acpi_ec *make_acpi_ec(voidreturn NULL ; ec->flags =1 <<EC_FLAGS_QUERY_PENDING ;mutex_init (&ec->lock); -init_waitqueue_head (&ec->wait); +init_swait_head (&ec->wait);INIT_LIST_HEAD (&ec->list);raw_spin_lock_init (&ec->curr_lock);return ec;
drivers/acpi/internal.h +3 -1
@@ -23,6 +23,8 @@#define PREFIX "ACPI: " +#include <linux/wait-simple.h> +int init_acpi_device_notify (void );int acpi_scan_init (void );int acpi_sysfs_init (void );
@@ -59,7 +61,7 @@ struct acpi_ec {unsigned long global_lock;unsigned long flags;struct mutex lock; -wait_queue_head_t wait; +struct swait_head wait;struct list_head list;struct transaction *curr;raw_spinlock_t curr_lock;
drivers/tty/serial/8250.c +10 -3
@@ -82,7 +82,16 @@ static unsigned int skip_txen_test; /* f #define DEBUG_INTR(fmt...) do { } while (0)#endif -#define PASS_LIMIT 512 +/* +* On -rt we can have a more delays, and legitimately +* so - so don't drop work spuriously and spam the +* syslog: +*/ +#ifdef CONFIG_PREEMPT_RT_FULL +# define PASS_LIMIT 1000000 +#else +# define PASS_LIMIT 512 +#endif #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE)
@@ -1632,14 +1641,12 @@ static irqreturn_t serial8250_interrupt( l = l->next; -#ifndef CONFIG_PREEMPT_RT_FULL if (l == i->head && pass_counter++ >PASS_LIMIT ) {/* If we hit this, we're dead. */ printk_ratelimited (KERN_ERR "serial8250: too much work for irq%d\n" , irq);break ; } -#endif }while (l != end);spin_unlock (&i->lock);
kernel/Makefile +1 -1
@@ -10,7 +10,7 @@ obj-y = sched.o fork.o exec_domain.o kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o \ hrtimer.o nsproxy.o srcu.o semaphore.o \ notifier.o ksysfs.o sched_clock.o cred.o \ - async.o range.o + async.o range.o wait-simple.o obj-y += groups.o ifdef CONFIG_FUNCTION_TRACER
kernel/printk.c +2 -2
@@ -902,7 +902,7 @@ asmlinkage int vprintk(const char *fmt,boot_delay_msec ();printk_delay (); -preempt_disable (); +migrate_disable ();/* This stops the holder of console_sem just where we want him */ raw_local_irq_save (flags); this_cpu =smp_processor_id ();
@@ -1033,7 +1033,7 @@ asmlinkage int vprintk(const char *fmt, out_restore_irqs:raw_local_irq_restore (flags); -preempt_enable (); +migrate_enable ();return printed_len; }EXPORT_SYMBOL (printk);
kernel/rcutree.c +2 -0
@@ -171,6 +171,8 @@ void rcu_sched_qs(int cpu) }#ifdef CONFIG_PREEMPT_RT_FULL +static void rcu_preempt_qs (int cpu); +void rcu_bh_qs (int cpu) {rcu_preempt_qs (cpu);
kernel/rcutree.h +0 -1
@@ -430,7 +430,6 @@ DECLARE_PER_CPU(char, rcu_cpu_has_work);/* Forward declarations for rcutree_plugin.h */ static void rcu_bootup_announce (void );long rcu_batches_completed (void ); -static void rcu_preempt_qs (int cpu);static void rcu_preempt_note_context_switch (int cpu);static int rcu_preempt_blocked_readers_cgp (struct rcu_node *rnp);#ifdef CONFIG_HOTPLUG_CPU
kernel/sched.c +3 -1
@@ -2839,8 +2839,10 @@ try_to_wake_up(struct task_struct *p, un* if the wakeup condition is true. */ if (!(wake_flags &WF_LOCK_SLEEPER )) { -if (p->saved_state & state) +if (p->saved_state & state) { p->saved_state =TASK_RUNNING ; + success =1 ; + } } goto out; }
localversion-rt +1 -1
@@ -1 +1 @@ --rt7 +-rt8
drivers/idle/i7300_idle.c +4 -4
@@ -75,7 +75,7 @@ static unsigned long past_skip;static struct pci_dev *fbd_dev; -static spinlock_t i7300_idle_lock; +static raw_spinlock_t i7300_idle_lock;static int i7300_idle_active;static u8 i7300_idle_thrtctl_saved;
@@ -457,7 +457,7 @@ static int i7300_idle_notifier(struct no idle_begin_time =ktime_get (); } -spin_lock_irqsave (&i7300_idle_lock, flags); +raw_spin_lock_irqsave (&i7300_idle_lock, flags);if (val ==IDLE_START ) {cpumask_set_cpu (smp_processor_id (), idle_cpumask);
@@ -506,7 +506,7 @@ static int i7300_idle_notifier(struct no } } end: -spin_unlock_irqrestore (&i7300_idle_lock, flags); +raw_spin_unlock_irqrestore (&i7300_idle_lock, flags);return 0 ; }
@@ -554,7 +554,7 @@ struct debugfs_file_info {static int __init i7300_idle_init (void ) { -spin_lock_init (&i7300_idle_lock); +raw_spin_lock_init (&i7300_idle_lock); total_us =0 ;if (i7300_idle_platform_probe (&fbd_dev, &ioat_dev, forceload))
include/linux/wait-simple.h new file +152 -0
152 lines not on this page · raw message
kernel/wait-simple.c new file +63 -0
63 lines not on this page · raw message
lib/Kconfig +1 -0
@@ -231,6 +231,7 @@ config CHECK_SIGNATURE config CPUMASK_OFFSTACK bool "Force CPU masks off stack" if DEBUG_PER_CPU_MAPS + depends on !PREEMPT_RT_FULL help Use dynamic allocation for cpumask_var_t, instead of putting them on the stack. This is a bit more expensive, but avoids