3.2.38-rt58
Subsystems (6)
Steven Rostedt
reviewerDear RT Folks,
I'm pleased to announce the 3.2.38-rt58 stable release.
You can get this release via the git tree at:
git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git
Head SHA1: d685c9f30b00bb734128c5b834417d961302f036
Or to build 3.2.38-rt58 directly, the following patches should be applied:
http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.2.tar.xz
http://www.kernel.org/pub/linux/kernel/v3.x/patch-3.2.38.xz
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patch-3.2.38-rt58.patch.xz
You can also build from 3.2.38-rt57 by applying the incremental patch:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/incr/patch-3.2.38-rt57-rt58.patch.xz
Enjoy,
-- Steve
Changes from 3.2.38-rt57:
---
Bu, Yitian (1):
printk: Fix rq->lock vs logbuf_lock unlock lock inversion
Steven Rostedt (2):
acpi/rt: Convert acpi_gbl_hardware lock back to a raw_spinlock_t Linux 3.2.38-rt58
Thomas Gleixner (4):
x86/32: Use kmap switch for non highmem as well
serial: Imx: Fix recursive locking bug
wait-simple: Simple waitqueue implementation
rcutiny: Use simple waitqueue
----
arch/x86/kernel/process_32.c | 2 +- drivers/acpi/acpica/acglobal.h | 2 +- drivers/acpi/acpica/hwregs.c | 4 +- drivers/acpi/acpica/hwxface.c | 4 +- drivers/acpi/acpica/utmutex.c | 4 +- drivers/tty/serial/imx.c | 11 ++- include/acpi/platform/aclinux.h | 14 ++++ include/linux/sched.h | 4 +- include/linux/wait-simple.h | 172 +++++++++++++++++++++++++++++++++++++++ kernel/Makefile | 2 +- kernel/printk.c | 2 +- kernel/rcutiny_plugin.h | 17 ++-- kernel/wait-simple.c | 119 +++++++++++++++++++++++++++ localversion-rt | 2 +- 14 files changed, 337 insertions(+), 22 deletions(-)
---------------------------
arch/x86/kernel/process_32.c +1 -1
@@ -340,7 +340,7 @@ __switch_to(struct task_struct *prev_p, struct task_struct *next_p) task_thread_info(next_p)->flags & _TIF_WORK_CTXSW_NEXT))__switch_to_xtra (prev_p, next_p, tss); -#if definedCONFIG_PREEMPT_RT_FULL && definedCONFIG_HIGHMEM +#ifdef CONFIG_PREEMPT_RT_FULL /* * Save @prev's kmap_atomic stack */
drivers/acpi/acpica/acglobal.h +1 -1
@@ -236,7 +236,7 @@ ACPI_EXTERN u8 acpi_gbl_global_lock_pending;* interrupt level */ ACPI_EXTERN acpi_spinlock acpi_gbl_gpe_lock; /* For GPE data structs and registers */ -ACPI_EXTERN acpi_spinlock acpi_gbl_hardware_lock; /* For ACPI H/W except GPE registers */ +ACPI_EXTERN acpi_raw_spinlock acpi_gbl_hardware_lock; /* For ACPI H/W except GPE registers *//***************************************************************************** *
drivers/acpi/acpica/hwregs.c +2 -2
@@ -263,14 +263,14 @@ acpi_status acpi_hw_clear_acpi_status(void)ACPI_BITMASK_ALL_FIXED_STATUS , ACPI_FORMAT_UINT64(acpi_gbl_xpm1a_status.address))); - lock_flags =acpi_os_acquire_lock (acpi_gbl_hardware_lock); +raw_spin_lock_irqsave (acpi_gbl_hardware_lock, lock_flags);/* Clear the fixed events in PM1 A/B */ status =acpi_hw_register_write (ACPI_REGISTER_PM1_STATUS ,ACPI_BITMASK_ALL_FIXED_STATUS ); -acpi_os_release_lock (acpi_gbl_hardware_lock, lock_flags); +raw_spin_unlock_irqrestore (acpi_gbl_hardware_lock, lock_flags);if (ACPI_FAILURE (status)) goto exit;
drivers/acpi/acpica/hwxface.c +2 -2
@@ -387,7 +387,7 @@ acpi_status acpi_write_bit_register(u32 register_id, u32 value)return_ACPI_STATUS (AE_BAD_PARAMETER ); } - lock_flags =acpi_os_acquire_lock (acpi_gbl_hardware_lock); +raw_spin_lock_irqsave (acpi_gbl_hardware_lock, lock_flags);/* * At this point, we know that the parent register is one of the
@@ -448,7 +448,7 @@ acpi_status acpi_write_bit_register(u32 register_id, u32 value) unlock_and_exit: -acpi_os_release_lock (acpi_gbl_hardware_lock, lock_flags); +raw_spin_unlock_irqrestore (acpi_gbl_hardware_lock, lock_flags);return_ACPI_STATUS (status); }
drivers/acpi/acpica/utmutex.c +2 -2
@@ -88,7 +88,7 @@ acpi_status acpi_ut_mutex_initialize(void)return_ACPI_STATUS (status); } - status =acpi_os_create_lock (&acpi_gbl_hardware_lock); + status =acpi_os_create_raw_lock (&acpi_gbl_hardware_lock);if (ACPI_FAILURE (status)) {return_ACPI_STATUS (status); }
@@ -135,7 +135,7 @@ void acpi_ut_mutex_terminate(void)/* Delete the spinlocks */ acpi_os_delete_lock (acpi_gbl_gpe_lock); -acpi_os_delete_lock (acpi_gbl_hardware_lock); +acpi_os_delete_raw_lock (acpi_gbl_hardware_lock);/* Delete the reader/writer lock */
drivers/tty/serial/imx.c +9 -2
@@ -1115,8 +1115,14 @@ imx_console_write(struct console *co, const char *s, unsigned int count)struct imx_port *sport = imx_ports[co->index];unsigned int old_ucr1, old_ucr2, ucr1;unsigned long flags; +int locked =1 ; -spin_lock_irqsave (&sport->port.lock, flags); +if (sport->port.sysrq) + locked =0 ; +else if (oops_in_progress) + locked =spin_trylock_irqsave (&sport->port.lock, flags); +else +spin_lock_irqsave (&sport->port.lock, flags);/* * First, save UCR1/2 and then disable interrupts
@@ -1144,7 +1150,8 @@ imx_console_write(struct console *co, const char *s, unsigned int count)writel (old_ucr1, sport->port.membase +UCR1 );writel (old_ucr2, sport->port.membase +UCR2 ); -spin_unlock_irqrestore (&sport->port.lock, flags); +if (locked) +spin_unlock_irqrestore (&sport->port.lock, flags); }/*
include/acpi/platform/aclinux.h +14 -0
@@ -73,6 +73,7 @@#define acpi_cache_t struct kmem_cache#define acpi_spinlock spinlock_t * +#define acpi_raw_spinlock raw_spinlock_t *#define acpi_cpu_flags unsigned long#else /* !__KERNEL__ */
@@ -176,6 +177,19 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache) lock ?AE_OK :AE_NO_MEMORY ; \ }) +#define acpi_os_create_raw_lock (__handle) \ +({ \ + raw_spinlock_t *lock = ACPI_ALLOCATE(sizeof(*lock)); \ + \ + if (lock) { \ + *(__handle) = lock; \ + raw_spin_lock_init(*(__handle)); \ + } \ + lock ? AE_OK : AE_NO_MEMORY; \ +}) + +#define acpi_os_delete_raw_lock (__handle) kfree(__handle) +#endif /* __KERNEL__ */ #endif /* __ACLINUX_H__ */
include/linux/sched.h +3 -1
@@ -1608,9 +1608,11 @@ struct task_struct {struct rcu_head put_rcu;int softirq_nestcnt;#endif -#if definedCONFIG_PREEMPT_RT_FULL && definedCONFIG_HIGHMEM +#ifdef CONFIG_PREEMPT_RT_FULL +# if definedCONFIG_HIGHMEM || definedCONFIG_X86_32 int kmap_idx;pte_t kmap_pte[KM_TYPE_NR ]; +# endif #endif #ifdef CONFIG_DEBUG_PREEMPT
include/linux/wait-simple.h new file +172 -0
172 lines not on this page · raw message
kernel/Makefile +1 -1
@@ -11,7 +11,7 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o \ hrtimer.o nsproxy.o srcu.o semaphore.o \ notifier.o ksysfs.o sched_clock.o cred.o \ async.o range.o -obj-y += groups.o +obj-y += groups.o wait-simple.o ifdef CONFIG_FUNCTION_TRACER # Do not trace debug files and internal ftrace files
kernel/printk.c +1 -1
@@ -867,9 +867,9 @@ static int console_trylock_for_printk(unsigned int cpu, unsigned long flags) } } printk_cpu =UINT_MAX ; +raw_spin_unlock (&logbuf_lock);if (wake)up (&console_sem); -raw_spin_unlock (&logbuf_lock);return retval; } static const char recursion_bug_msg [] =
kernel/rcutiny_plugin.h +9 -8
@@ -26,6 +26,7 @@#include <linux/module.h> #include <linux/debugfs.h> #include <linux/seq_file.h> +#include <linux/wait-simple.h> /* Global control variables for rcupdate callback mechanism. */ struct rcu_ctrlblk {
@@ -250,7 +251,7 @@ static void show_tiny_preempt_stats(struct seq_file *m)/* Controls for rcu_kthread() kthread. */ static struct task_struct *rcu_kthread_task; -static DECLARE_WAIT_QUEUE_HEAD (rcu_kthread_wq); +static DEFINE_SWAIT_HEAD (rcu_kthread_wq);static unsigned long have_rcu_kthread_work;/*
@@ -720,7 +721,7 @@ void synchronize_rcu(void) }EXPORT_SYMBOL_GPL (synchronize_rcu); -static DECLARE_WAIT_QUEUE_HEAD (sync_rcu_preempt_exp_wq); +static DEFINE_SWAIT_HEAD (sync_rcu_preempt_exp_wq);static unsigned long sync_rcu_preempt_exp_count;static DEFINE_MUTEX (sync_rcu_preempt_exp_mutex);
@@ -742,7 +743,7 @@ static int rcu_preempted_readers_exp(void)*/ static void rcu_report_exp_done (void ) { -wake_up (&sync_rcu_preempt_exp_wq); +swait_wake (&sync_rcu_preempt_exp_wq); }/*
@@ -794,8 +795,8 @@ void synchronize_rcu_expedited(void)else {rcu_initiate_boost ();local_irq_restore (flags); -wait_event (sync_rcu_preempt_exp_wq, - !rcu_preempted_readers_exp ()); +swait_event (sync_rcu_preempt_exp_wq, + !rcu_preempted_readers_exp ()); }/* Clean up and exit. */
@@ -882,7 +883,7 @@ static void rcu_preempt_process_callbacks(void)static void invoke_rcu_callbacks (void ) { have_rcu_kthread_work =1 ; -wake_up (&rcu_kthread_wq); +swake_up (&rcu_kthread_wq); }/*
@@ -899,8 +900,8 @@ static int rcu_kthread(void *arg)unsigned long flags;for (;;) { -wait_event_interruptible (rcu_kthread_wq, - have_rcu_kthread_work !=0 ); +swait_event_interruptible (rcu_kthread_wq, + have_rcu_kthread_work !=0 ); morework =rcu_boost ();local_irq_save (flags); work = have_rcu_kthread_work;
kernel/wait-simple.c new file +119 -0
119 lines not on this page · raw message
localversion-rt +1 -1
@@ -1 +1 @@ --rt57 +-rt58