3.2.19-rt31-rc1
Subsystems (4)
cover 3.2.19-rt31-rc1
Dear RT Folks,
This is the RT stable review cycle of patch 3.2.19-rt31-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 6/12/2012.
Enjoy,
-- Steve
To build 3.2.19-rt31-rc1 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.19.xz
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/patch-3.2.19-rt31-rc1.patch.xz
You can also build from 3.2.19-rt30 by applying the incremental patch:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.2/incr/patch-3.2.19-rt30-rt31-rc1.patch.xz
Changes from 3.2.19-rt30:
---
John Kacur (1):
scsi: qla2xxx: Use local_irq_save_nort() in qla2x00_poll
Priyanka Jain (1):
net,RT:REmove preemption disabling in netif_rx()
Steven Rostedt (1):
Linux 3.2.19-rt31-rc1
Thomas Gleixner (1):
mips-remove-smp-reserve-lock.patch
----
arch/mips/cavium-octeon/smp.c | 6 ------ drivers/scsi/qla2xxx/qla_inline.h | 4 ++-- localversion-rt | 2 +- net/core/dev.c | 8 ++++---- 4 files changed, 7 insertions(+), 13 deletions(-)
PATCH 1/4 scsi: qla2xxx: Use local_irq_save_nort() in qla2x00_poll
From: John Kacur <[email protected]>
RT triggers the following:
[ 11.307652] [<ffffffff81077b27>] __might_sleep+0xe7/0x110 [ 11.307663] [<ffffffff8150e524>] rt_spin_lock+0x24/0x60 [ 11.307670] [<ffffffff8150da78>] ? rt_spin_lock_slowunlock+0x78/0x90 [ 11.307703] [<ffffffffa0272d83>] qla24xx_intr_handler+0x63/0x2d0 [qla2xxx] [ 11.307736] [<ffffffffa0262307>] qla2x00_poll+0x67/0x90 [qla2xxx]
Function qla2x00_poll does local_irq_save() before calling qla24xx_intr_handler which has a spinlock. Since spinlocks are sleepable on rt, it is not allowed to call them with interrupts disabled. Therefore we use local_irq_save_nort() instead which saves flags without disabling interrupts.
This fix needs to be applied to v3.0-rt, v3.2-rt and v3.4-rt
--- drivers/scsi/qla2xxx/qla_inline.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/scsi/qla2xxx/qla_inline.h +2 -2
@@ -36,12 +36,12 @@ qla2x00_poll(struct rsp_que *rsp) {unsigned long flags;struct qla_hw_data *ha = rsp->hw; -local_irq_save (flags); +local_irq_save_nort (flags);if (IS_QLA82XX (ha))qla82xx_poll (0 , rsp);else ha->isp_ops->intr_handler (0 , rsp); -local_irq_restore (flags); +local_irq_restore_nort (flags); } static inline uint8_t *
Signature · 1 line
1.7.10
PATCH 2/4 net,RT:REmove preemption disabling in netif_rx()
In reply to Steven RostedtFrom: Priyanka Jain <[email protected]>
1)enqueue_to_backlog() (called from netif_rx) should be
bind to a particluar CPU. This can be achieved by disabling migration. No need to disable preemption
2)Fixes crash "BUG: scheduling while atomic: ksoftirqd"
in case of RT.
If preemption is disabled, enqueue_to_backog() is called in atomic context. And if backlog exceeds its count, kfree_skb() is called. But in RT, kfree_skb() might gets scheduled out, so it expects non atomic context.
3)When CONFIG_PREEMPT_RT_FULL is not defined,
migrate_enable(), migrate_disable() maps to
preempt_enable() and preempt_disable(), so no
change in functionality in case of non-RT.
-Replace preempt_enable(), preempt_disable() with
migrate_enable(), migrate_disable() respectively
-Replace get_cpu(), put_cpu() with get_cpu_light(),
put_cpu_light() respectively
--- net/core/dev.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
net/core/dev.c +4 -4
@@ -3030,7 +3030,7 @@ int netif_rx(struct sk_buff *skb)struct rps_dev_flow voidflow, *rflow = &voidflow;int cpu; -preempt_disable (); +migrate_disable ();rcu_read_lock (); cpu =get_rps_cpu (skb->dev, skb, &rflow);
@@ -3040,13 +3040,13 @@ int netif_rx(struct sk_buff *skb) ret =enqueue_to_backlog (skb, cpu, &rflow->last_qtail);rcu_read_unlock (); - preempt_enable(); + migrate_enable(); }#else {unsigned int qtail; - ret =enqueue_to_backlog (skb,get_cpu (), &qtail); -put_cpu (); + ret =enqueue_to_backlog (skb,get_cpu_light (), &qtail); +put_cpu_light (); }#endif return ret;
Signature · 1 line
1.7.10
PATCH 3/4 mips-remove-smp-reserve-lock.patch
In reply to Steven RostedtFrom: Thomas Gleixner <[email protected]>
Instead of making the lock raw, remove it as it protects nothing.
--- arch/mips/cavium-octeon/smp.c | 6 ------ 1 file changed, 6 deletions(-)
arch/mips/cavium-octeon/smp.c +0 -6
@@ -257,8 +257,6 @@ DEFINE_PER_CPU(int, cpu_state);extern void fixup_irqs (void ); -static DEFINE_SPINLOCK (smp_reserve_lock); -static int octeon_cpu_disable (void ) {unsigned int cpu =smp_processor_id ();
@@ -266,8 +264,6 @@ static int octeon_cpu_disable(void)if (cpu ==0 )return -EBUSY ; -spin_lock (&smp_reserve_lock); -cpu_clear (cpu, cpu_online_map);cpu_clear (cpu, cpu_callin_map);local_irq_disable ();
@@ -277,8 +273,6 @@ static int octeon_cpu_disable(void)flush_cache_all ();local_flush_tlb_all (); -spin_unlock (&smp_reserve_lock); -return 0 ; }
Signature · 1 line
1.7.10
PATCH 4/4 Linux 3.2.19-rt31-rc1
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
--- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
localversion-rt +1 -1
@@ -1 +1 @@ --rt30 +-rt31-rc1
Signature · 1 line
1.7.10