v3.0.9-rt26-rc2
Subsystems (5)
Steven Rostedt
maintainercover v3.0.9-rt26-rc2
Dear RT Folks,
This is the RT stable review cycle. As I am just starting to manage the 3.0-rt stable tree, I'm in the process of creating scripts and such to send out patches. I will always send out a -rc1 to give people a chance to yell at me for something stupid I did. It will also allow others to run this under their own tests as I have a limited testing that I do.
The -rc release will be uploaded to kernel.org and will be deleted when a new release is out. This is just a review release (or release candidate).
I will also be updating the git tree on kernel.org with the final release but the pre releases will not be in the public tree. The final release will also include the full broken out patches.
to build a 3.0.9-rt26-rc2 tree, the following patches should be applied:
http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.0.tar.xz
http://www.kernel.org/pub/linux/kernel/v3.0/patch-3.0.9.xz
http://www.kernel.org/pub/linux/kernel/projects/rt/3.0/patch-3.0.9-rt26-rc2.patch.xz
You can also build from 3.0.9-rt25 by applying the incremental patch:
http://www.kernel.org/pub/linux/kernel/projects/rt/3.0/incr/patch-3.0.9-rt25-rt26-rc2.patch.xz
If all goes well, this patch will be converted to the main release next Tuesday: 11/22/2011
The differences between -rc1 and -rc2 is:
Added two Reviewed-by tags from Paul McKenney.
Added the tracing patch that was added in v3.2-rc2-rt3
Enjoy,
-- Steve
John Kacur (2):
softirq: Export in_serving_softirq()
rcu: Fix macro substitution for synchronize_rcu_bh() on RT
Peter Zijlstra (1):
x86: crypto: Reduce preempt disabled regions
Steven Rostedt (2):
tracing: Show padding as unsigned short
Linux 3.0.9-rt26-rc2
Thomas Gleixner (1):
dm: Make rt aware
----
arch/x86/crypto/aesni-intel_glue.c | 24 +++++++++++++----------- drivers/md/dm.c | 4 ++-- include/linux/rcutree.h | 2 +- kernel/softirq.c | 1 + kernel/trace/trace_events.c | 2 +- localversion-rt | 2 +- 6 files changed, 19 insertions(+), 16 deletions(-)
Steven Rostedt
maintainerPATCH 1/6 softirq: Export in_serving_softirq()
From: John Kacur <[email protected]>
ERROR: "in_serving_softirq" [net/sched/cls_cgroup.ko] undefined!
The above can be fixed by exporting in_serving_softirq
--- kernel/softirq.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
kernel/softirq.c +1 -0
@@ -447,6 +447,7 @@ int in_serving_softirq(void)preempt_enable ();return res; } +EXPORT_SYMBOL (in_serving_softirq);/* * Called with bh and local interrupts disabled. For full RT cpu must
Signature · 1 line
1.7.7.1
Steven Rostedt
maintainerPATCH 2/6 rcu: Fix macro substitution for synchronize_rcu_bh() on RT
In reply to Steven RostedtFrom: John Kacur <[email protected]>
kernel/rcutorture.c:492: error: ‘synchronize_rcu_bh’ undeclared here (not in a function)
synchronize_rcu_bh() is not just called as a normal function, but can also be referenced as a function pointer. When CONFIG_PREEMPT_RT_FULL is enabled, synchronize_rcu_bh() is defined as synchronize_rcu(), but needs to be defined without the parenthesis because the compiler will complain when synchronize_rcu_bh is referenced as a function pointer and not a function.
--- include/linux/rcutree.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
include/linux/rcutree.h +1 -1
@@ -60,7 +60,7 @@ static inline void exit_rcu(void)#ifndef CONFIG_PREEMPT_RT_FULL extern void synchronize_rcu_bh (void );#else -# define synchronize_rcu_bh () synchronize_rcu() +# define synchronize_rcu_bh synchronize_rcu#endif extern void synchronize_sched_expedited (void );extern void synchronize_rcu_expedited (void );
Signature · 1 line
1.7.7.1
Steven Rostedt
maintainerPATCH 3/6 x86: crypto: Reduce preempt disabled regions
In reply to Steven RostedtFrom: Peter Zijlstra <[email protected]>
Restrict the preempt disabled regions to the actual floating point operations and enable preemption for the administrative actions.
This is necessary on RT to avoid that kfree and other operations are called with preemption disabled.
--- arch/x86/crypto/aesni-intel_glue.c | 24 +++++++++++++----------- 1 files changed, 13 insertions(+), 11 deletions(-)
arch/x86/crypto/aesni-intel_glue.c +13 -11
@@ -288,14 +288,14 @@ static int ecb_encrypt(struct blkcipher_desc *desc, err =blkcipher_walk_virt (desc, &walk); desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP ; -kernel_fpu_begin ();while ((nbytes = walk.nbytes)) { +kernel_fpu_begin ();aesni_ecb_enc (ctx, walk.dst.virt.addr, walk.src.virt.addr, - nbytes &AES_BLOCK_MASK ); + nbytes &AES_BLOCK_MASK ); +kernel_fpu_end (); nbytes &=AES_BLOCK_SIZE -1 ; err =blkcipher_walk_done (desc, &walk, nbytes); } -kernel_fpu_end ();return err; }
@@ -312,14 +312,14 @@ static int ecb_decrypt(struct blkcipher_desc *desc, err =blkcipher_walk_virt (desc, &walk); desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP ; -kernel_fpu_begin ();while ((nbytes = walk.nbytes)) { +kernel_fpu_begin ();aesni_ecb_dec (ctx, walk.dst.virt.addr, walk.src.virt.addr, nbytes &AES_BLOCK_MASK ); +kernel_fpu_end (); nbytes &=AES_BLOCK_SIZE -1 ; err =blkcipher_walk_done (desc, &walk, nbytes); } -kernel_fpu_end ();return err; }
@@ -358,14 +358,14 @@ static int cbc_encrypt(struct blkcipher_desc *desc, err =blkcipher_walk_virt (desc, &walk); desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP ; -kernel_fpu_begin ();while ((nbytes = walk.nbytes)) { +kernel_fpu_begin ();aesni_cbc_enc (ctx, walk.dst.virt.addr, walk.src.virt.addr, nbytes &AES_BLOCK_MASK , walk.iv); +kernel_fpu_end (); nbytes &=AES_BLOCK_SIZE -1 ; err =blkcipher_walk_done (desc, &walk, nbytes); } -kernel_fpu_end ();return err; }
@@ -382,14 +382,14 @@ static int cbc_decrypt(struct blkcipher_desc *desc, err =blkcipher_walk_virt (desc, &walk); desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP ; -kernel_fpu_begin ();while ((nbytes = walk.nbytes)) { +kernel_fpu_begin ();aesni_cbc_dec (ctx, walk.dst.virt.addr, walk.src.virt.addr, nbytes &AES_BLOCK_MASK , walk.iv); +kernel_fpu_end (); nbytes &=AES_BLOCK_SIZE -1 ; err =blkcipher_walk_done (desc, &walk, nbytes); } -kernel_fpu_end ();return err; }
@@ -444,18 +444,20 @@ static int ctr_crypt(struct blkcipher_desc *desc, err =blkcipher_walk_virt_block (desc, &walk,AES_BLOCK_SIZE ); desc->flags &= ~CRYPTO_TFM_REQ_MAY_SLEEP ; -kernel_fpu_begin ();while ((nbytes = walk.nbytes) >=AES_BLOCK_SIZE ) { +kernel_fpu_begin ();aesni_ctr_enc (ctx, walk.dst.virt.addr, walk.src.virt.addr, nbytes &AES_BLOCK_MASK , walk.iv); +kernel_fpu_end (); nbytes &=AES_BLOCK_SIZE -1 ; err =blkcipher_walk_done (desc, &walk, nbytes); }if (walk.nbytes) { +kernel_fpu_begin ();ctr_crypt_final (ctx, &walk); +kernel_fpu_end (); err =blkcipher_walk_done (desc, &walk,0 ); } -kernel_fpu_end ();return err; }
Signature · 1 line
1.7.7.1
Steven Rostedt
maintainerPATCH 4/6 dm: Make rt aware
In reply to Steven RostedtFrom: Thomas Gleixner <[email protected]>
Use the BUG_ON_NONRT variant for the irq_disabled() checks. RT has interrupts legitimately enabled here as we cant deadlock against the irq thread due to the "sleeping spinlocks" conversion.
--- drivers/md/dm.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/md/dm.c +2 -2
@@ -1644,14 +1644,14 @@ static void dm_request_fn(struct request_queue *q)if (map_request (ti, clone, md)) goto requeued; -BUG_ON (!irqs_disabled ()); +BUG_ON_NONRT (!irqs_disabled ());spin_lock (q->queue_lock); } goto out; requeued: -BUG_ON (!irqs_disabled ()); +BUG_ON_NONRT (!irqs_disabled ());spin_lock (q->queue_lock); delay_and_out:
Signature · 1 line
1.7.7.1
Steven Rostedt
maintainerPATCH 5/6 tracing: Show padding as unsigned short
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
RT added two bytes to trace migrate disable counting to the trace events and used two bytes of the padding to make the change. The structures and all were updated correctly, but the display in the event formats was not:
cat /debug/tracing/events/sched/sched_switch/format
name: sched_switch
ID: 51
format:
field:unsigned short common_type; offset:0; size:2; signed:0; field:unsigned char common_flags; offset:2; size:1; signed:0; field:unsigned char common_preempt_count; offset:3; size:1; signed:0; field:int common_pid; offset:4; size:4; signed:1; field:unsigned short common_migrate_disable; offset:8; size:2; signed:0; field:int common_padding; offset:10; size:2; signed:0;
The field for common_padding has the correct size and offset, but the use of "int" might confuse some parsers (and people that are reading it). This needs to be changed to "unsigned short".
--- kernel/trace/trace_events.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/trace/trace_events.c +1 -1
@@ -117,7 +117,7 @@ static int trace_define_common_fields(void) __common_field(unsigned char, preempt_count);__common_field (int, pid); __common_field(unsigned short, migrate_disable); -__common_field (int, padding); + __common_field(unsigned short, padding);return ret; }
Signature · 1 line
1.7.7.1
Steven Rostedt
maintainerPATCH 6/6 Linux 3.0.9-rt26-rc2
In reply to Steven RostedtFrom: Steven Rostedt <[email protected]>
--- localversion-rt | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
localversion-rt +1 -1
@@ -1 +1 @@ --rt25 +-rt26-rc2
Signature · 1 line
1.7.7.1
Hi Steven
Thanks for your release.
I just have build and tested the release on an i.mx35 arm platform. The only thing to report is that i have nothing to report, which is a good thing :-).
Best regards
Tim
Please ignore this noise:
Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com
Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147 Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster
Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster
The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.
Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich für den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.
Steven Rostedt
maintainerQuoted 7 lines · Tim Sander
Hi Steven
Thanks for your release.
I just have build and tested the release on an i.mx35 arm platform. The only thing to report is that i have nothing to report, which is a good thing :-).
Thanks for testing. That's always good to know, and why I'm posting the prereleases. To give people a chance to test what I'm doing before I make it permanent.
Quoted 5 lines
Best regards
TimPlease ignore this noise:
Why? It has lots of big legal German words to practice with :)
Quoted 6 lines
Hottinger Baldwin Messtechnik GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany | www.hbm.com
Registered as GmbH (German limited liability corporation) in the commercial register at the local court of Darmstadt, HRB 1147 Company domiciled in Darmstadt | CEO: Andreas Huellhorst | Chairman of the board: James Charles Webster
Quoted 6 lines
Als Gesellschaft mit beschraenkter Haftung eingetragen im Handelsregister des Amtsgerichts Darmstadt unter HRB 1147 Sitz der Gesellschaft: Darmstadt | Geschaeftsfuehrung: Andreas Huellhorst | Aufsichtsratsvorsitzender: James Charles Webster
The information in this email is confidential. It is intended solely for the addressee. If you are not the intended recipient, please let me know and delete this email.
Die in dieser E-Mail enthaltene Information ist vertraulich und lediglich für den Empfaenger bestimmt. Sollten Sie nicht der eigentliche Empfaenger sein, informieren Sie mich bitte kurz und loeschen diese E-Mail.
Heh, I think this is the first time I seen the above in German.
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html