* [PATCH RT 0/5] Linux 3.10.22-rt20-rc1
@ 2013-12-11 0:37 Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 1/5] cpu_down: move migrate_enable() back Steven Rostedt
` (4 more replies)
0 siblings, 5 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:37 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior, John Kacur
Dear RT Folks,
This is the RT stable review cycle of patch 3.10.22-rt20-rc1.
Please scream at me if I messed something up. Please test the patches too.
The -rc release will be uploaded to kernel.org and will be deleted when
the final release is out. This is just a review release (or release candidate).
The pre-releases will not be pushed to the git repository, only the
final release is.
If all goes well, this patch will be converted to the next main release
on 12/13/2013.
Enjoy,
-- Steve
To build 3.10.22-rt20-rc1 directly, the following patches should be applied:
http://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.tar.xz
http://www.kernel.org/pub/linux/kernel/v3.x/patch-3.10.22.xz
http://www.kernel.org/pub/linux/kernel/projects/rt/3.10/patch-3.10.22-rt20-rc1.patch.xz
You can also build from 3.10.22-rt19 by applying the incremental patch:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.10/incr/patch-3.10.22-rt19-rt20-rc1.patch.xz
Changes from 3.10.22-rt19:
---
Peter Zijlstra (1):
lockdep: Correctly annotate hardirq context in irq_exit()
Sebastian Andrzej Siewior (2):
a few open coded completions
rtmutex: use a trylock for waiter lock in trylock
Steven Rostedt (Red Hat) (1):
Linux 3.10.22-rt20-rc1
Tiejun Chen (1):
cpu_down: move migrate_enable() back
----
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 +--
include/linux/netdevice.h | 2 +-
include/linux/spinlock_rt.h | 1 +
kernel/cpu.c | 2 +-
kernel/rtmutex.c | 31 +++++++++++++++++---
kernel/softirq.c | 46 +++++++++++++++++++++++++++---
kernel/timer.c | 2 +-
localversion-rt | 2 +-
10 files changed, 78 insertions(+), 16 deletions(-)
^ permalink raw reply [flat|nested] 23+ messages in thread
* [PATCH RT 1/5] cpu_down: move migrate_enable() back
2013-12-11 0:37 [PATCH RT 0/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
@ 2013-12-11 0:37 ` Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
` (3 subsequent siblings)
4 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:37 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior,
John Kacur, Tiejun Chen
[-- Attachment #1: 0001-cpu_down-move-migrate_enable-back.patch --]
[-- Type: text/plain, Size: 1634 bytes --]
3.10.22-rt20-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: Tiejun Chen <tiejun.chen@windriver.com>
Commit 08c1ab68, "hotplug-use-migrate-disable.patch", intends to
use migrate_enable()/migrate_disable() to replace that combination
of preempt_enable() and preempt_disable(), but actually in
!CONFIG_PREEMPT_RT_FULL case, migrate_enable()/migrate_disable()
are still equal to preempt_enable()/preempt_disable(). So that
followed cpu_hotplug_begin()/cpu_unplug_begin(cpu) would go schedule()
to trigger schedule_debug() like this:
_cpu_down()
|
+ migrate_disable() = preempt_disable()
|
+ cpu_hotplug_begin() or cpu_unplug_begin()
|
+ schedule()
|
+ __schedule()
|
+ preempt_disable();
|
+ __schedule_bug() is true!
So we should move migrate_enable() as the original scheme.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
kernel/cpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/cpu.c b/kernel/cpu.c
index 716c98b..c62ae01 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -596,6 +596,7 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)
err = -EBUSY;
goto restore_cpus;
}
+ migrate_enable();
cpu_hotplug_begin();
err = cpu_unplug_begin(cpu);
@@ -649,7 +650,6 @@ static int __ref _cpu_down(unsigned int cpu, int tasks_frozen)
out_release:
cpu_unplug_done(cpu);
out_cancel:
- migrate_enable();
cpu_hotplug_done();
if (!err)
cpu_notify_nofail(CPU_POST_DEAD | mod, hcpu);
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH RT 2/5] a few open coded completions
2013-12-11 0:37 [PATCH RT 0/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 1/5] cpu_down: move migrate_enable() back Steven Rostedt
@ 2013-12-11 0:37 ` Steven Rostedt
2013-12-11 14:25 ` Corey Minyard
2013-12-11 19:49 ` Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 3/5] lockdep: Correctly annotate hardirq context in irq_exit() Steven Rostedt
` (2 subsequent siblings)
4 siblings, 2 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:37 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior, John Kacur
[-- Attachment #1: 0002-a-few-open-coded-completions.patch --]
[-- Type: text/plain, Size: 3027 bytes --]
3.10.22-rt20-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 ++--
include/linux/netdevice.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index 1f9cb55..a28f298 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
while (!ctx->done.done && msecs--)
udelay(1000);
} else {
- wait_event_interruptible(ctx->done.wait,
+ swait_event_interruptible(ctx->done.wait,
ctx->done.done);
}
break;
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index b6e9d91..35d9c53 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1282,7 +1282,7 @@ static void ffs_data_put(struct ffs_data *ffs)
pr_info("%s(): freeing\n", __func__);
ffs_data_clear(ffs);
BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
- waitqueue_active(&ffs->ep0req_completion.wait));
+ swaitqueue_active(&ffs->ep0req_completion.wait));
kfree(ffs->dev_name);
kfree(ffs);
}
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 570c005..c60233d 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -340,7 +340,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
spin_unlock_irq (&epdata->dev->lock);
if (likely (value == 0)) {
- value = wait_event_interruptible (done.wait, done.done);
+ value = swait_event_interruptible (done.wait, done.done);
if (value != 0) {
spin_lock_irq (&epdata->dev->lock);
if (likely (epdata->ep != NULL)) {
@@ -349,7 +349,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
usb_ep_dequeue (epdata->ep, epdata->req);
spin_unlock_irq (&epdata->dev->lock);
- wait_event (done.wait, done.done);
+ swait_event (done.wait, done.done);
if (epdata->status == -ECONNRESET)
epdata->status = -EINTR;
} else {
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 819923f..ba78526 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1139,7 +1139,7 @@ struct net_device {
unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
unsigned char addr_assign_type; /* hw address assignment type */
unsigned char addr_len; /* hardware address length */
- unsigned char neigh_priv_len;
+ unsigned short neigh_priv_len;
unsigned short dev_id; /* for shared network cards */
spinlock_t addr_list_lock;
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH RT 3/5] lockdep: Correctly annotate hardirq context in irq_exit()
2013-12-11 0:37 [PATCH RT 0/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 1/5] cpu_down: move migrate_enable() back Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
@ 2013-12-11 0:37 ` Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 4/5] rtmutex: use a trylock for waiter lock in trylock Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 5/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
4 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:37 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior,
John Kacur, Frederic Weisbecker, Linus Torvalds, Andrew Morton,
Peter Zijlstra, Ingo Molnar
[-- Attachment #1: 0003-lockdep-Correctly-annotate-hardirq-context-in-irq_ex.patch --]
[-- Type: text/plain, Size: 4266 bytes --]
3.10.22-rt20-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: Peter Zijlstra <peterz@infradead.org>
There was a reported deadlock on -rt which lockdep didn't report.
It turns out that in irq_exit() we tell lockdep that the hardirq
context ends and then do all kinds of locking afterwards.
To fix it, move trace_hardirq_exit() to the very end of irq_exit(), this
ensures all locking in tick_irq_exit() and rcu_irq_exit() are properly
recorded as happening from hardirq context.
This however leads to the 'fun' little problem of running softirqs
while in hardirq context. To cure this make the softirq code a little
more complex (in the CONFIG_TRACE_IRQFLAGS case).
Due to stack swizzling arch dependent trickery we cannot pass an
argument to __do_softirq() to tell it if it was done from hardirq
context or not; so use a side-band argument.
When we do __do_softirq() from hardirq context, 'atomically' flip to
softirq context and back, so that no locking goes without being in
either hard- or soft-irq context.
I didn't find any new problems in mainline using this patch, but it
did show the -rt problem.
Cc: stable-rt@vger.kernel.org
Reported-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-dgwc5cdksbn0jk09vbmcc9sa@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
kernel/softirq.c | 46 ++++++++++++++++++++++++++++++++++++++++++----
1 file changed, 42 insertions(+), 4 deletions(-)
diff --git a/kernel/softirq.c b/kernel/softirq.c
index 4cacbcd..541adf3 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -355,6 +355,44 @@ EXPORT_SYMBOL(local_bh_enable_ip);
#define MAX_SOFTIRQ_TIME msecs_to_jiffies(2)
#define MAX_SOFTIRQ_RESTART 10
+#ifdef CONFIG_TRACE_IRQFLAGS
+/*
+ * Convoluted means of passing __do_softirq() a message through the various
+ * architecture execute_on_stack() bits.
+ *
+ * When we run softirqs from irq_exit() and thus on the hardirq stack we need
+ * to keep the lockdep irq context tracking as tight as possible in order to
+ * not miss-qualify lock contexts and miss possible deadlocks.
+ */
+static DEFINE_PER_CPU(int, softirq_from_hardirq);
+
+static inline void lockdep_softirq_from_hardirq(void)
+{
+ this_cpu_write(softirq_from_hardirq, 1);
+}
+
+static inline void lockdep_softirq_start(void)
+{
+ if (this_cpu_read(softirq_from_hardirq))
+ trace_hardirq_exit();
+ lockdep_softirq_enter();
+}
+
+static inline void lockdep_softirq_end(void)
+{
+ lockdep_softirq_exit();
+ if (this_cpu_read(softirq_from_hardirq)) {
+ this_cpu_write(softirq_from_hardirq, 0);
+ trace_hardirq_enter();
+ }
+}
+
+#else
+static inline void lockdep_softirq_from_hardirq(void) { }
+static inline void lockdep_softirq_start(void) { }
+static inline void lockdep_softirq_end(void) { }
+#endif
+
asmlinkage void __do_softirq(void)
{
__u32 pending;
@@ -375,7 +413,7 @@ asmlinkage void __do_softirq(void)
__local_bh_disable((unsigned long)__builtin_return_address(0),
SOFTIRQ_OFFSET);
- lockdep_softirq_enter();
+ lockdep_softirq_start();
cpu = smp_processor_id();
restart:
@@ -393,8 +431,7 @@ restart:
wakeup_softirqd();
}
- lockdep_softirq_exit();
-
+ lockdep_softirq_end();
account_irq_exit_time(current);
__local_bh_enable(SOFTIRQ_OFFSET);
tsk_restore_flags(current, old_flags, PF_MEMALLOC);
@@ -700,6 +737,7 @@ static inline void invoke_softirq(void)
{
#ifndef CONFIG_PREEMPT_RT_FULL
if (!force_irqthreads) {
+ lockdep_softirq_from_hardirq();
/*
* We can safely execute softirq on the current stack if
* it is the irq stack, because it should be near empty
@@ -749,13 +787,13 @@ void irq_exit(void)
#endif
account_irq_exit_time(current);
- trace_hardirq_exit();
sub_preempt_count(HARDIRQ_OFFSET);
if (!in_interrupt() && local_softirq_pending())
invoke_softirq();
tick_irq_exit();
rcu_irq_exit();
+ trace_hardirq_exit(); /* must be last! */
}
void raise_softirq(unsigned int nr)
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH RT 4/5] rtmutex: use a trylock for waiter lock in trylock
2013-12-11 0:37 [PATCH RT 0/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
` (2 preceding siblings ...)
2013-12-11 0:37 ` [PATCH RT 3/5] lockdep: Correctly annotate hardirq context in irq_exit() Steven Rostedt
@ 2013-12-11 0:37 ` Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 5/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
4 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:37 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior,
John Kacur, Mike Galbraith
[-- Attachment #1: 0004-rtmutex-use-a-trylock-for-waiter-lock-in-trylock.patch --]
[-- Type: text/plain, Size: 5032 bytes --]
3.10.22-rt20-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Mike Galbraith captered the following:
| >#11 [ffff88017b243e90] _raw_spin_lock at ffffffff815d2596
| >#12 [ffff88017b243e90] rt_mutex_trylock at ffffffff815d15be
| >#13 [ffff88017b243eb0] get_next_timer_interrupt at ffffffff81063b42
| >#14 [ffff88017b243f00] tick_nohz_stop_sched_tick at ffffffff810bd1fd
| >#15 [ffff88017b243f70] tick_nohz_irq_exit at ffffffff810bd7d2
| >#16 [ffff88017b243f90] irq_exit at ffffffff8105b02d
| >#17 [ffff88017b243fb0] reschedule_interrupt at ffffffff815db3dd
| >--- <IRQ stack> ---
| >#18 [ffff88017a2a9bc8] reschedule_interrupt at ffffffff815db3dd
| > [exception RIP: task_blocks_on_rt_mutex+51]
| >#19 [ffff88017a2a9ce0] rt_spin_lock_slowlock at ffffffff815d183c
| >#20 [ffff88017a2a9da0] lock_timer_base.isra.35 at ffffffff81061cbf
| >#21 [ffff88017a2a9dd0] schedule_timeout at ffffffff815cf1ce
| >#22 [ffff88017a2a9e50] rcu_gp_kthread at ffffffff810f9bbb
| >#23 [ffff88017a2a9ed0] kthread at ffffffff810796d5
| >#24 [ffff88017a2a9f50] ret_from_fork at ffffffff815da04c
lock_timer_base() does a try_lock() which deadlocks on the waiter lock
not the lock itself.
This patch takes the waiter_lock with trylock so it should work from interrupt
context as well. If the fastpath doesn't work and the waiter_lock itself is
taken then it seems that the lock itself taken.
This patch also adds a "rt_spin_try_unlock" to keep lockdep happy. If we
managed to take the wait_lock in the first place we should also be able
to take it in the unlock path.
Cc: stable-rt@vger.kernel.org
Reported-by: Mike Galbraith <bitbucket@online.de>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
include/linux/spinlock_rt.h | 1 +
kernel/rtmutex.c | 31 +++++++++++++++++++++++++++----
kernel/timer.c | 2 +-
3 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/include/linux/spinlock_rt.h b/include/linux/spinlock_rt.h
index 0618387..b3c504b 100644
--- a/include/linux/spinlock_rt.h
+++ b/include/linux/spinlock_rt.h
@@ -22,6 +22,7 @@ extern void __lockfunc rt_spin_lock(spinlock_t *lock);
extern unsigned long __lockfunc rt_spin_lock_trace_flags(spinlock_t *lock);
extern void __lockfunc rt_spin_lock_nested(spinlock_t *lock, int subclass);
extern void __lockfunc rt_spin_unlock(spinlock_t *lock);
+extern void __lockfunc rt_spin_unlock_after_trylock_in_irq(spinlock_t *lock);
extern void __lockfunc rt_spin_unlock_wait(spinlock_t *lock);
extern int __lockfunc rt_spin_trylock_irqsave(spinlock_t *lock, unsigned long *flags);
extern int __lockfunc rt_spin_trylock_bh(spinlock_t *lock);
diff --git a/kernel/rtmutex.c b/kernel/rtmutex.c
index 5d76634..0a64a90 100644
--- a/kernel/rtmutex.c
+++ b/kernel/rtmutex.c
@@ -802,10 +802,8 @@ static void noinline __sched rt_spin_lock_slowlock(struct rt_mutex *lock)
/*
* Slow path to release a rt_mutex spin_lock style
*/
-static void noinline __sched rt_spin_lock_slowunlock(struct rt_mutex *lock)
+static void __sched __rt_spin_lock_slowunlock(struct rt_mutex *lock)
{
- raw_spin_lock(&lock->wait_lock);
-
debug_rt_mutex_unlock(lock);
rt_mutex_deadlock_account_unlock(current);
@@ -824,6 +822,23 @@ static void noinline __sched rt_spin_lock_slowunlock(struct rt_mutex *lock)
rt_mutex_adjust_prio(current);
}
+static void noinline __sched rt_spin_lock_slowunlock(struct rt_mutex *lock)
+{
+ raw_spin_lock(&lock->wait_lock);
+ __rt_spin_lock_slowunlock(lock);
+}
+
+static void noinline __sched rt_spin_lock_slowunlock_hirq(struct rt_mutex *lock)
+{
+ int ret;
+
+ do {
+ ret = raw_spin_trylock(&lock->wait_lock);
+ } while (!ret);
+
+ __rt_spin_lock_slowunlock(lock);
+}
+
void __lockfunc rt_spin_lock(spinlock_t *lock)
{
rt_spin_lock_fastlock(&lock->lock, rt_spin_lock_slowlock);
@@ -854,6 +869,13 @@ void __lockfunc rt_spin_unlock(spinlock_t *lock)
}
EXPORT_SYMBOL(rt_spin_unlock);
+void __lockfunc rt_spin_unlock_after_trylock_in_irq(spinlock_t *lock)
+{
+ /* NOTE: we always pass in '1' for nested, for simplicity */
+ spin_release(&lock->dep_map, 1, _RET_IP_);
+ rt_spin_lock_fastunlock(&lock->lock, rt_spin_lock_slowunlock_hirq);
+}
+
void __lockfunc __rt_spin_unlock(struct rt_mutex *lock)
{
rt_spin_lock_fastunlock(lock, rt_spin_lock_slowunlock);
@@ -1057,7 +1079,8 @@ rt_mutex_slowtrylock(struct rt_mutex *lock)
{
int ret = 0;
- raw_spin_lock(&lock->wait_lock);
+ if (!raw_spin_trylock(&lock->wait_lock))
+ return ret;
init_lists(lock);
if (likely(rt_mutex_owner(lock) != current)) {
diff --git a/kernel/timer.c b/kernel/timer.c
index f53f592..48652cc 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1400,7 +1400,7 @@ unsigned long get_next_timer_interrupt(unsigned long now)
expires = base->next_timer;
}
#ifdef CONFIG_PREEMPT_RT_FULL
- rt_spin_unlock(&base->lock);
+ rt_spin_unlock_after_trylock_in_irq(&base->lock);
#else
spin_unlock(&base->lock);
#endif
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH RT 5/5] Linux 3.10.22-rt20-rc1
2013-12-11 0:37 [PATCH RT 0/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
` (3 preceding siblings ...)
2013-12-11 0:37 ` [PATCH RT 4/5] rtmutex: use a trylock for waiter lock in trylock Steven Rostedt
@ 2013-12-11 0:37 ` Steven Rostedt
4 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:37 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior, John Kacur
[-- Attachment #1: 0005-Linux-3.10.22-rt20-rc1.patch --]
[-- Type: text/plain, Size: 406 bytes --]
3.10.22-rt20-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: "Steven Rostedt (Red Hat)" <rostedt@goodmis.org>
---
localversion-rt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/localversion-rt b/localversion-rt
index 483ad77..5361419 100644
--- a/localversion-rt
+++ b/localversion-rt
@@ -1 +1 @@
--rt19
+-rt20-rc1
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 0:37 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
@ 2013-12-11 14:25 ` Corey Minyard
2013-12-11 15:34 ` Steven Rostedt
2013-12-11 19:49 ` Steven Rostedt
1 sibling, 1 reply; 23+ messages in thread
From: Corey Minyard @ 2013-12-11 14:25 UTC (permalink / raw)
To: Steven Rostedt, linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior, John Kacur
This chunk doesn't seem to belong in this patch...
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 819923f..ba78526 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1139,7 +1139,7 @@ struct net_device {
unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
unsigned char addr_assign_type; /* hw address assignment type */
unsigned char addr_len; /* hardware address length */
- unsigned char neigh_priv_len;
+ unsigned short neigh_priv_len;
unsigned short dev_id; /* for shared network cards */
spinlock_t addr_list_lock;
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 14:25 ` Corey Minyard
@ 2013-12-11 15:34 ` Steven Rostedt
2013-12-15 15:28 ` Sebastian Andrzej Siewior
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 15:34 UTC (permalink / raw)
To: Corey Minyard
Cc: linux-kernel, linux-rt-users, Thomas Gleixner, Carsten Emde,
Sebastian Andrzej Siewior, John Kacur
On Wed, 11 Dec 2013 08:25:29 -0600
Corey Minyard <cminyard@mvista.com> wrote:
> This chunk doesn't seem to belong in this patch...
You're right!
I noticed this after I sent these out.
This even caused a conflict, where I fixed it up.
As this chunck doesn't need to be in the stable branch, I'm just going
to nuke it.
I'll even fix up the change log too.
Thanks,
-- Steve
>
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 819923f..ba78526 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -1139,7 +1139,7 @@ struct net_device {
> unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
> unsigned char addr_assign_type; /* hw address assignment type */
> unsigned char addr_len; /* hardware address length */
> - unsigned char neigh_priv_len;
> + unsigned short neigh_priv_len;
> unsigned short dev_id; /* for shared network cards */
>
> spinlock_t addr_list_lock;
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 0:37 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
2013-12-11 14:25 ` Corey Minyard
@ 2013-12-11 19:49 ` Steven Rostedt
2014-03-09 0:27 ` Ben Hutchings
1 sibling, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 19:49 UTC (permalink / raw)
To: Steven Rostedt
Cc: linux-kernel, linux-rt-users, Thomas Gleixner, Carsten Emde,
Sebastian Andrzej Siewior, John Kacur, Corey Minyard
Here's the new patch:
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Mon, 28 Oct 2013 11:50:06 +0100
Subject: [PATCH] swait: Add a few more users
The wait-simple queue is lighter weight and more efficient than the full
wait queue, and may be used in atomic context on PREEMPT_RT.
Fix up some places that needed to call the swait_*() functions instead
of the wait_*() functions.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index 1f9cb55..a28f298 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
while (!ctx->done.done && msecs--)
udelay(1000);
} else {
- wait_event_interruptible(ctx->done.wait,
+ swait_event_interruptible(ctx->done.wait,
ctx->done.done);
}
break;
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index b6e9d91..35d9c53 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1282,7 +1282,7 @@ static void ffs_data_put(struct ffs_data *ffs)
pr_info("%s(): freeing\n", __func__);
ffs_data_clear(ffs);
BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
- waitqueue_active(&ffs->ep0req_completion.wait));
+ swaitqueue_active(&ffs->ep0req_completion.wait));
kfree(ffs->dev_name);
kfree(ffs);
}
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 570c005..c60233d 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -340,7 +340,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
spin_unlock_irq (&epdata->dev->lock);
if (likely (value == 0)) {
- value = wait_event_interruptible (done.wait, done.done);
+ value = swait_event_interruptible (done.wait, done.done);
if (value != 0) {
spin_lock_irq (&epdata->dev->lock);
if (likely (epdata->ep != NULL)) {
@@ -349,7 +349,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
usb_ep_dequeue (epdata->ep, epdata->req);
spin_unlock_irq (&epdata->dev->lock);
- wait_event (done.wait, done.done);
+ swait_event (done.wait, done.done);
if (epdata->status == -ECONNRESET)
epdata->status = -EINTR;
} else {
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 15:34 ` Steven Rostedt
@ 2013-12-15 15:28 ` Sebastian Andrzej Siewior
2013-12-15 21:08 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Sebastian Andrzej Siewior @ 2013-12-15 15:28 UTC (permalink / raw)
To: Steven Rostedt
Cc: Corey Minyard, linux-kernel, linux-rt-users, Thomas Gleixner,
Carsten Emde, John Kacur
* Steven Rostedt | 2013-12-11 10:34:20 [-0500]:
>As this chunck doesn't need to be in the stable branch, I'm just going
>to nuke it.
>
>I'll even fix up the change log too.
Thank you for the fixups. I just did the same thing in the v3.12 tree.
The chunk you nuked is now in Dave's net tree as a0a9663dd214 ("net: make
neigh_priv_len in struct net_device 16bit instead of 8bit"). As it
describes it is buggy on -RT but not mainline therefore it has no stable
tag for mainline and I would add one for RT.
>
>Thanks,
>
>-- Steve
Sebastian
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-15 15:28 ` Sebastian Andrzej Siewior
@ 2013-12-15 21:08 ` Steven Rostedt
0 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-15 21:08 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: Corey Minyard, linux-kernel, linux-rt-users, Thomas Gleixner,
Carsten Emde, John Kacur
On Sun, 15 Dec 2013 16:28:39 +0100
Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:
> Thank you for the fixups. I just did the same thing in the v3.12 tree.
> The chunk you nuked is now in Dave's net tree as a0a9663dd214 ("net: make
> neigh_priv_len in struct net_device 16bit instead of 8bit"). As it
> describes it is buggy on -RT but not mainline therefore it has no stable
> tag for mainline and I would add one for RT.
Yeah, I realized that too. I'll be adding it to the stable release.
That's why I didn't do the releases on Friday. I'll do them on Monday
after one final test with re-adding that change.
Thanks!
-- Steve
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 19:49 ` Steven Rostedt
@ 2014-03-09 0:27 ` Ben Hutchings
2014-03-10 14:29 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Ben Hutchings @ 2014-03-09 0:27 UTC (permalink / raw)
To: Steven Rostedt, Sebastian Andrzej Siewior
Cc: linux-kernel, linux-rt-users, Thomas Gleixner, Carsten Emde,
Sebastian Andrzej Siewior, John Kacur, Corey Minyard
[-- Attachment #1: Type: text/plain, Size: 3096 bytes --]
On Wed, 2013-12-11 at 14:49 -0500, Steven Rostedt wrote:
> Here's the new patch:
Doesn't add #includes and doesn't change any types, so of course it
doesn't compile. WTF?
Ben.
> From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> Date: Mon, 28 Oct 2013 11:50:06 +0100
> Subject: [PATCH] swait: Add a few more users
>
> The wait-simple queue is lighter weight and more efficient than the full
> wait queue, and may be used in atomic context on PREEMPT_RT.
>
> Fix up some places that needed to call the swait_*() functions instead
> of the wait_*() functions.
>
> Cc: stable-rt@vger.kernel.org
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> ---
> drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
> drivers/usb/gadget/f_fs.c | 2 +-
> drivers/usb/gadget/inode.c | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
> index 1f9cb55..a28f298 100644
> --- a/drivers/net/wireless/orinoco/orinoco_usb.c
> +++ b/drivers/net/wireless/orinoco/orinoco_usb.c
> @@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
> while (!ctx->done.done && msecs--)
> udelay(1000);
> } else {
> - wait_event_interruptible(ctx->done.wait,
> + swait_event_interruptible(ctx->done.wait,
> ctx->done.done);
> }
> break;
> diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
> index b6e9d91..35d9c53 100644
> --- a/drivers/usb/gadget/f_fs.c
> +++ b/drivers/usb/gadget/f_fs.c
> @@ -1282,7 +1282,7 @@ static void ffs_data_put(struct ffs_data *ffs)
> pr_info("%s(): freeing\n", __func__);
> ffs_data_clear(ffs);
> BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
> - waitqueue_active(&ffs->ep0req_completion.wait));
> + swaitqueue_active(&ffs->ep0req_completion.wait));
> kfree(ffs->dev_name);
> kfree(ffs);
> }
> diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
> index 570c005..c60233d 100644
> --- a/drivers/usb/gadget/inode.c
> +++ b/drivers/usb/gadget/inode.c
> @@ -340,7 +340,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
> spin_unlock_irq (&epdata->dev->lock);
>
> if (likely (value == 0)) {
> - value = wait_event_interruptible (done.wait, done.done);
> + value = swait_event_interruptible (done.wait, done.done);
> if (value != 0) {
> spin_lock_irq (&epdata->dev->lock);
> if (likely (epdata->ep != NULL)) {
> @@ -349,7 +349,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
> usb_ep_dequeue (epdata->ep, epdata->req);
> spin_unlock_irq (&epdata->dev->lock);
>
> - wait_event (done.wait, done.done);
> + swait_event (done.wait, done.done);
> if (epdata->status == -ECONNRESET)
> epdata->status = -EINTR;
> } else {
--
Ben Hutchings
I say we take off; nuke the site from orbit. It's the only way to be sure.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-09 0:27 ` Ben Hutchings
@ 2014-03-10 14:29 ` Steven Rostedt
2014-03-10 17:52 ` Ben Hutchings
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2014-03-10 14:29 UTC (permalink / raw)
To: Ben Hutchings
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
On Sun, 09 Mar 2014 00:27:21 +0000
Ben Hutchings <ben@decadent.org.uk> wrote:
> On Wed, 2013-12-11 at 14:49 -0500, Steven Rostedt wrote:
> > Here's the new patch:
>
> Doesn't add #includes and doesn't change any types, so of course it
> doesn't compile. WTF?
>
Hi Ben,
This is an old thread. Which kernel did you apply it to. Before I send
any patch set out, I run a small test (heavy stress test, and also
compile several different configs). This patch was against 3.10-rt, and
may have already had the includes needed. I know the original patch
compiled, but I may not have tested the second patch.
Do you need this patch? Or did I miss something for 3.2-rt?
-- Steve
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-10 14:29 ` Steven Rostedt
@ 2014-03-10 17:52 ` Ben Hutchings
2014-03-10 18:14 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Ben Hutchings @ 2014-03-10 17:52 UTC (permalink / raw)
To: Steven Rostedt
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
[-- Attachment #1: Type: text/plain, Size: 1225 bytes --]
On Mon, 2014-03-10 at 10:29 -0400, Steven Rostedt wrote:
> On Sun, 09 Mar 2014 00:27:21 +0000
> Ben Hutchings <ben@decadent.org.uk> wrote:
>
> > On Wed, 2013-12-11 at 14:49 -0500, Steven Rostedt wrote:
> > > Here's the new patch:
> >
> > Doesn't add #includes and doesn't change any types, so of course it
> > doesn't compile. WTF?
> >
>
> Hi Ben,
>
> This is an old thread. Which kernel did you apply it to. Before I send
> any patch set out, I run a small test (heavy stress test, and also
> compile several different configs). This patch was against 3.10-rt, and
> may have already had the includes needed. I know the original patch
> compiled, but I may not have tested the second patch.
>
> Do you need this patch? Or did I miss something for 3.2-rt?
You applied it to 3.2-rt:
commit 916c8d2de3c4759f57426fa3cfee63b491e88939
Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Mon Oct 28 11:50:06 2013 +0100
swait: Add a few more users
and 3.4-rt, 3.8-rt, 3.10-rt. So far as I can see, it is broken on all
of those branches, though I only actually tried building 3.2-rt.
Ben.
--
Ben Hutchings
Computers are not intelligent. They only think they are.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-10 17:52 ` Ben Hutchings
@ 2014-03-10 18:14 ` Steven Rostedt
2014-03-11 2:06 ` Ben Hutchings
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2014-03-10 18:14 UTC (permalink / raw)
To: Ben Hutchings
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
On Mon, 10 Mar 2014 17:52:42 +0000
Ben Hutchings <ben@decadent.org.uk> wrote:
> On Mon, 2014-03-10 at 10:29 -0400, Steven Rostedt wrote:
> > On Sun, 09 Mar 2014 00:27:21 +0000
> > Ben Hutchings <ben@decadent.org.uk> wrote:
> >
> > > On Wed, 2013-12-11 at 14:49 -0500, Steven Rostedt wrote:
> > > > Here's the new patch:
> > >
> > > Doesn't add #includes and doesn't change any types, so of course it
> > > doesn't compile. WTF?
> > >
> >
> > Hi Ben,
> >
> > This is an old thread. Which kernel did you apply it to. Before I send
> > any patch set out, I run a small test (heavy stress test, and also
> > compile several different configs). This patch was against 3.10-rt, and
> > may have already had the includes needed. I know the original patch
> > compiled, but I may not have tested the second patch.
> >
> > Do you need this patch? Or did I miss something for 3.2-rt?
>
> You applied it to 3.2-rt:
>
> commit 916c8d2de3c4759f57426fa3cfee63b491e88939
> Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> Date: Mon Oct 28 11:50:06 2013 +0100
>
> swait: Add a few more users
>
> and 3.4-rt, 3.8-rt, 3.10-rt. So far as I can see, it is broken on all
> of those branches, though I only actually tried building 3.2-rt.
>
Can you send me your config. I may just not be hitting it. I've booted
and ran all these kernels I've posted.
I don't run a make allmodconfig as I do on my upstream work. Maybe I'll
have to add that to the mix.
-- Steve
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-10 18:14 ` Steven Rostedt
@ 2014-03-11 2:06 ` Ben Hutchings
2014-03-11 2:56 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Ben Hutchings @ 2014-03-11 2:06 UTC (permalink / raw)
To: Steven Rostedt
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
[-- Attachment #1: Type: text/plain, Size: 1898 bytes --]
On Mon, 2014-03-10 at 14:14 -0400, Steven Rostedt wrote:
> On Mon, 10 Mar 2014 17:52:42 +0000
> Ben Hutchings <ben@decadent.org.uk> wrote:
>
> > On Mon, 2014-03-10 at 10:29 -0400, Steven Rostedt wrote:
> > > On Sun, 09 Mar 2014 00:27:21 +0000
> > > Ben Hutchings <ben@decadent.org.uk> wrote:
> > >
> > > > On Wed, 2013-12-11 at 14:49 -0500, Steven Rostedt wrote:
> > > > > Here's the new patch:
> > > >
> > > > Doesn't add #includes and doesn't change any types, so of course it
> > > > doesn't compile. WTF?
> > > >
> > >
> > > Hi Ben,
> > >
> > > This is an old thread. Which kernel did you apply it to. Before I send
> > > any patch set out, I run a small test (heavy stress test, and also
> > > compile several different configs). This patch was against 3.10-rt, and
> > > may have already had the includes needed. I know the original patch
> > > compiled, but I may not have tested the second patch.
> > >
> > > Do you need this patch? Or did I miss something for 3.2-rt?
> >
> > You applied it to 3.2-rt:
> >
> > commit 916c8d2de3c4759f57426fa3cfee63b491e88939
> > Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> > Date: Mon Oct 28 11:50:06 2013 +0100
> >
> > swait: Add a few more users
> >
> > and 3.4-rt, 3.8-rt, 3.10-rt. So far as I can see, it is broken on all
> > of those branches, though I only actually tried building 3.2-rt.
> >
>
> Can you send me your config. I may just not be hitting it. I've booted
> and ran all these kernels I've posted.
>
> I don't run a make allmodconfig as I do on my upstream work. Maybe I'll
> have to add that to the mix.
You can enable all the affected code with:
CONFIG_HERMES=m
CONFIG_ORINOCO_USB=m
CONFIG_USB_GADGET=m
CONFIG_USB_FUNCTIONFS=m
CONFIG_USB_GADGETFS=m
Ben.
--
Ben Hutchings
Any sufficiently advanced bug is indistinguishable from a feature.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-11 2:06 ` Ben Hutchings
@ 2014-03-11 2:56 ` Steven Rostedt
2014-03-11 15:54 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2014-03-11 2:56 UTC (permalink / raw)
To: Ben Hutchings
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
On Tue, 11 Mar 2014 02:06:46 +0000
Ben Hutchings <ben@decadent.org.uk> wrote:
> > I don't run a make allmodconfig as I do on my upstream work. Maybe I'll
> > have to add that to the mix.
>
> You can enable all the affected code with:
>
> CONFIG_HERMES=m
> CONFIG_ORINOCO_USB=m
> CONFIG_USB_GADGET=m
> CONFIG_USB_FUNCTIONFS=m
> CONFIG_USB_GADGETFS=m
Thanks, I ran an allmodconfig, and you're right, the orinoco driver
failed to compile on v3.2-rt. I ran allmodconfig on 3.10-rt and it
passed fine. Seems that one of the headers there pulls in swait.
Looking deeper, 3.10-rt has completion as a simple-wait, and
completion.h pulls in wait-simple.h, which is why it works there. 3.2
does not have completions there. I wonder if I should pull in the patch
that converts completions into swaits, and that may fix other locations
as well.
I'll give it a try.
Thanks,
-- Steve
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-11 2:56 ` Steven Rostedt
@ 2014-03-11 15:54 ` Steven Rostedt
2014-03-12 18:15 ` Ben Hutchings
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2014-03-11 15:54 UTC (permalink / raw)
To: Ben Hutchings
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
On Mon, 10 Mar 2014 22:56:23 -0400
Steven Rostedt <rostedt@goodmis.org> wrote:
> Thanks, I ran an allmodconfig, and you're right, the orinoco driver
> failed to compile on v3.2-rt. I ran allmodconfig on 3.10-rt and it
> passed fine. Seems that one of the headers there pulls in swait.
>
> Looking deeper, 3.10-rt has completion as a simple-wait, and
> completion.h pulls in wait-simple.h, which is why it works there. 3.2
> does not have completions there. I wonder if I should pull in the patch
> that converts completions into swaits, and that may fix other locations
> as well.
The swait code for 3.2 can't even handle the changes that were made.
That is, the patch used swait functions not created in 3.2-rt.
I'll just revert those from 3.2-rt and be done with it.
Thanks for the report.
-- Steve
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2014-03-11 15:54 ` Steven Rostedt
@ 2014-03-12 18:15 ` Ben Hutchings
0 siblings, 0 replies; 23+ messages in thread
From: Ben Hutchings @ 2014-03-12 18:15 UTC (permalink / raw)
To: Steven Rostedt
Cc: Sebastian Andrzej Siewior, linux-kernel, linux-rt-users,
Thomas Gleixner, Carsten Emde, John Kacur, Corey Minyard
[-- Attachment #1: Type: text/plain, Size: 1111 bytes --]
On Tue, 2014-03-11 at 11:54 -0400, Steven Rostedt wrote:
> On Mon, 10 Mar 2014 22:56:23 -0400
> Steven Rostedt <rostedt@goodmis.org> wrote:
>
>
> > Thanks, I ran an allmodconfig, and you're right, the orinoco driver
> > failed to compile on v3.2-rt. I ran allmodconfig on 3.10-rt and it
> > passed fine. Seems that one of the headers there pulls in swait.
> >
> > Looking deeper, 3.10-rt has completion as a simple-wait, and
> > completion.h pulls in wait-simple.h, which is why it works there. 3.2
> > does not have completions there. I wonder if I should pull in the patch
> > that converts completions into swaits, and that may fix other locations
> > as well.
>
> The swait code for 3.2 can't even handle the changes that were made.
> That is, the patch used swait functions not created in 3.2-rt.
>
> I'll just revert those from 3.2-rt and be done with it.
>
> Thanks for the report.
OK. Sorry for the 'WTF'; now I understand that this was a build fix for
the later branches.
Ben.
--
Ben Hutchings
Any sufficiently advanced bug is indistinguishable from a feature.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 811 bytes --]
^ permalink raw reply [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 0:50 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
@ 2013-12-11 19:57 ` Steven Rostedt
0 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 19:57 UTC (permalink / raw)
To: Steven Rostedt
Cc: linux-kernel, linux-rt-users, Thomas Gleixner, Carsten Emde,
Sebastian Andrzej Siewior, John Kacur, Corey Minyard
Here's the new patch for 3.4-rt.
-- Steve
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Mon, 28 Oct 2013 11:50:06 +0100
Subject: [PATCH] swait: Add a few more users
The wait-simple queue is lighter weight and more efficient than the full
wait queue, and may be used in atomic context on PREEMPT_RT.
Fix up some places that needed to call the swait_*() functions instead
of the wait_*() functions.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index f634d45..8152c94 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
while (!ctx->done.done && msecs--)
udelay(1000);
} else {
- wait_event_interruptible(ctx->done.wait,
+ swait_event_interruptible(ctx->done.wait,
ctx->done.done);
}
break;
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index f52cb1a..54ea4e9 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1255,7 +1255,7 @@ static void ffs_data_put(struct ffs_data *ffs)
pr_info("%s(): freeing\n", __func__);
ffs_data_clear(ffs);
BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
- waitqueue_active(&ffs->ep0req_completion.wait));
+ swaitqueue_active(&ffs->ep0req_completion.wait));
kfree(ffs);
}
}
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index e58b164..2dfd196 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -339,7 +339,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
spin_unlock_irq (&epdata->dev->lock);
if (likely (value == 0)) {
- value = wait_event_interruptible (done.wait, done.done);
+ value = swait_event_interruptible (done.wait, done.done);
if (value != 0) {
spin_lock_irq (&epdata->dev->lock);
if (likely (epdata->ep != NULL)) {
@@ -348,7 +348,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
usb_ep_dequeue (epdata->ep, epdata->req);
spin_unlock_irq (&epdata->dev->lock);
- wait_event (done.wait, done.done);
+ swait_event (done.wait, done.done);
if (epdata->status == -ECONNRESET)
epdata->status = -EINTR;
} else {
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* Re: [PATCH RT 2/5] a few open coded completions
2013-12-11 0:46 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
@ 2013-12-11 19:54 ` Steven Rostedt
0 siblings, 0 replies; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 19:54 UTC (permalink / raw)
To: Steven Rostedt
Cc: linux-kernel, linux-rt-users, Thomas Gleixner, Carsten Emde,
Sebastian Andrzej Siewior, John Kacur, Corey Minyard
Here's the new patch for 3.8-rt.
-- Steve
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Date: Mon, 28 Oct 2013 11:50:06 +0100
Subject: [PATCH] swait: Add a few more users
The wait-simple queue is lighter weight and more efficient than the full
wait queue, and may be used in atomic context on PREEMPT_RT.
Fix up some places that needed to call the swait_*() functions instead
of the wait_*() functions.
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index 01624dc..b0f9d2c 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
while (!ctx->done.done && msecs--)
udelay(1000);
} else {
- wait_event_interruptible(ctx->done.wait,
+ swait_event_interruptible(ctx->done.wait,
ctx->done.done);
}
break;
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index de3e266..5b2a068 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1284,7 +1284,7 @@ static void ffs_data_put(struct ffs_data *ffs)
pr_info("%s(): freeing\n", __func__);
ffs_data_clear(ffs);
BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
- waitqueue_active(&ffs->ep0req_completion.wait));
+ swaitqueue_active(&ffs->ep0req_completion.wait));
kfree(ffs->dev_name);
kfree(ffs);
}
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 8ac840f..fe85df7 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -338,7 +338,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
spin_unlock_irq (&epdata->dev->lock);
if (likely (value == 0)) {
- value = wait_event_interruptible (done.wait, done.done);
+ value = swait_event_interruptible (done.wait, done.done);
if (value != 0) {
spin_lock_irq (&epdata->dev->lock);
if (likely (epdata->ep != NULL)) {
@@ -347,7 +347,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
usb_ep_dequeue (epdata->ep, epdata->req);
spin_unlock_irq (&epdata->dev->lock);
- wait_event (done.wait, done.done);
+ swait_event (done.wait, done.done);
if (epdata->status == -ECONNRESET)
epdata->status = -EINTR;
} else {
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH RT 2/5] a few open coded completions
2013-12-11 0:50 [PATCH RT 0/5] Linux 3.4.72-rt90-rc1 Steven Rostedt
@ 2013-12-11 0:50 ` Steven Rostedt
2013-12-11 19:57 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:50 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior, John Kacur
[-- Attachment #1: 0002-a-few-open-coded-completions.patch --]
[-- Type: text/plain, Size: 3004 bytes --]
3.4.72-rt90-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 ++--
include/linux/netdevice.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index f634d45..8152c94 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
while (!ctx->done.done && msecs--)
udelay(1000);
} else {
- wait_event_interruptible(ctx->done.wait,
+ swait_event_interruptible(ctx->done.wait,
ctx->done.done);
}
break;
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index f52cb1a..54ea4e9 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1255,7 +1255,7 @@ static void ffs_data_put(struct ffs_data *ffs)
pr_info("%s(): freeing\n", __func__);
ffs_data_clear(ffs);
BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
- waitqueue_active(&ffs->ep0req_completion.wait));
+ swaitqueue_active(&ffs->ep0req_completion.wait));
kfree(ffs);
}
}
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index e58b164..2dfd196 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -339,7 +339,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
spin_unlock_irq (&epdata->dev->lock);
if (likely (value == 0)) {
- value = wait_event_interruptible (done.wait, done.done);
+ value = swait_event_interruptible (done.wait, done.done);
if (value != 0) {
spin_lock_irq (&epdata->dev->lock);
if (likely (epdata->ep != NULL)) {
@@ -348,7 +348,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
usb_ep_dequeue (epdata->ep, epdata->req);
spin_unlock_irq (&epdata->dev->lock);
- wait_event (done.wait, done.done);
+ swait_event (done.wait, done.done);
if (epdata->status == -ECONNRESET)
epdata->status = -EINTR;
} else {
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 40940f5..65d8385 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1109,7 +1109,7 @@ struct net_device {
unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
unsigned char addr_assign_type; /* hw address assignment type */
unsigned char addr_len; /* hardware address length */
- unsigned char neigh_priv_len;
+ unsigned short neigh_priv_len;
unsigned short dev_id; /* for shared network cards */
spinlock_t addr_list_lock;
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
* [PATCH RT 2/5] a few open coded completions
2013-12-11 0:46 [PATCH RT 0/5] Linux 3.8.13.13-rt26-rc1 Steven Rostedt
@ 2013-12-11 0:46 ` Steven Rostedt
2013-12-11 19:54 ` Steven Rostedt
0 siblings, 1 reply; 23+ messages in thread
From: Steven Rostedt @ 2013-12-11 0:46 UTC (permalink / raw)
To: linux-kernel, linux-rt-users
Cc: Thomas Gleixner, Carsten Emde, Sebastian Andrzej Siewior, John Kacur
[-- Attachment #1: 0002-a-few-open-coded-completions.patch --]
[-- Type: text/plain, Size: 3029 bytes --]
3.8.13.13-rt26-rc1 stable review patch.
If anyone has any objections, please let me know.
------------------
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
---
drivers/net/wireless/orinoco/orinoco_usb.c | 2 +-
drivers/usb/gadget/f_fs.c | 2 +-
drivers/usb/gadget/inode.c | 4 ++--
include/linux/netdevice.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/net/wireless/orinoco/orinoco_usb.c b/drivers/net/wireless/orinoco/orinoco_usb.c
index 01624dc..b0f9d2c 100644
--- a/drivers/net/wireless/orinoco/orinoco_usb.c
+++ b/drivers/net/wireless/orinoco/orinoco_usb.c
@@ -714,7 +714,7 @@ static void ezusb_req_ctx_wait(struct ezusb_priv *upriv,
while (!ctx->done.done && msecs--)
udelay(1000);
} else {
- wait_event_interruptible(ctx->done.wait,
+ swait_event_interruptible(ctx->done.wait,
ctx->done.done);
}
break;
diff --git a/drivers/usb/gadget/f_fs.c b/drivers/usb/gadget/f_fs.c
index de3e266..5b2a068 100644
--- a/drivers/usb/gadget/f_fs.c
+++ b/drivers/usb/gadget/f_fs.c
@@ -1284,7 +1284,7 @@ static void ffs_data_put(struct ffs_data *ffs)
pr_info("%s(): freeing\n", __func__);
ffs_data_clear(ffs);
BUG_ON(waitqueue_active(&ffs->ev.waitq) ||
- waitqueue_active(&ffs->ep0req_completion.wait));
+ swaitqueue_active(&ffs->ep0req_completion.wait));
kfree(ffs->dev_name);
kfree(ffs);
}
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c
index 8ac840f..fe85df7 100644
--- a/drivers/usb/gadget/inode.c
+++ b/drivers/usb/gadget/inode.c
@@ -338,7 +338,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
spin_unlock_irq (&epdata->dev->lock);
if (likely (value == 0)) {
- value = wait_event_interruptible (done.wait, done.done);
+ value = swait_event_interruptible (done.wait, done.done);
if (value != 0) {
spin_lock_irq (&epdata->dev->lock);
if (likely (epdata->ep != NULL)) {
@@ -347,7 +347,7 @@ ep_io (struct ep_data *epdata, void *buf, unsigned len)
usb_ep_dequeue (epdata->ep, epdata->req);
spin_unlock_irq (&epdata->dev->lock);
- wait_event (done.wait, done.done);
+ swait_event (done.wait, done.done);
if (epdata->status == -ECONNRESET)
epdata->status = -EINTR;
} else {
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 0b58fd6..bc45789 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1123,7 +1123,7 @@ struct net_device {
unsigned char perm_addr[MAX_ADDR_LEN]; /* permanent hw address */
unsigned char addr_assign_type; /* hw address assignment type */
unsigned char addr_len; /* hardware address length */
- unsigned char neigh_priv_len;
+ unsigned short neigh_priv_len;
unsigned short dev_id; /* for shared network cards */
spinlock_t addr_list_lock;
--
1.8.4.3
^ permalink raw reply related [flat|nested] 23+ messages in thread
end of thread, other threads:[~2014-03-12 18:15 UTC | newest]
Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-11 0:37 [PATCH RT 0/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 1/5] cpu_down: move migrate_enable() back Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
2013-12-11 14:25 ` Corey Minyard
2013-12-11 15:34 ` Steven Rostedt
2013-12-15 15:28 ` Sebastian Andrzej Siewior
2013-12-15 21:08 ` Steven Rostedt
2013-12-11 19:49 ` Steven Rostedt
2014-03-09 0:27 ` Ben Hutchings
2014-03-10 14:29 ` Steven Rostedt
2014-03-10 17:52 ` Ben Hutchings
2014-03-10 18:14 ` Steven Rostedt
2014-03-11 2:06 ` Ben Hutchings
2014-03-11 2:56 ` Steven Rostedt
2014-03-11 15:54 ` Steven Rostedt
2014-03-12 18:15 ` Ben Hutchings
2013-12-11 0:37 ` [PATCH RT 3/5] lockdep: Correctly annotate hardirq context in irq_exit() Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 4/5] rtmutex: use a trylock for waiter lock in trylock Steven Rostedt
2013-12-11 0:37 ` [PATCH RT 5/5] Linux 3.10.22-rt20-rc1 Steven Rostedt
2013-12-11 0:46 [PATCH RT 0/5] Linux 3.8.13.13-rt26-rc1 Steven Rostedt
2013-12-11 0:46 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
2013-12-11 19:54 ` Steven Rostedt
2013-12-11 0:50 [PATCH RT 0/5] Linux 3.4.72-rt90-rc1 Steven Rostedt
2013-12-11 0:50 ` [PATCH RT 2/5] a few open coded completions Steven Rostedt
2013-12-11 19:57 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).