Skip to contentSkip to conversation

2.6.24-rc2-rt1

DISCUSSION Steven Rostedt 3 participants 7 messages Nov 15, 2007 – Nov 16, 2007

lore
Share & tools
lore
#0 lore raw

Finally!

We are pleased to announce 2.6.24-rc2-rt1.

This is probably one of the toughest ports the -rt patch had to face. It was definitely the toughest one I had to perform. With a 50 Meg difference between 2.6.23 and 2.6.24-rc2 it caused a lot of problems with conflicts. The 2.6.23.1-rt11 patch consisted of 386 patches. Of them 25 of them were incorporated into mainline (mostly hrtimers for x86_64 and other archs).

With fixes and such, the 2.6.24-rc2-rt1 has 370 patches. 361 of them came from 2.6.23.1-rt11 and of those 129 had conflicts. Some conflicts were trivial, but a lot of them were not. In order to allow others to audit my changes I have archived the .rej reject files as well as the quilt .pc files and original patch.

http://rostedt.homelinux.com/rt/pre/2.6.24-rc2-rt1-pre1-rejs/

This holds a list of tar balls that contain the necessary files to get to the state before I preformed the "quilt refresh".

For example: to fix the patch preempt-realtime-mips.patch

rostedt@gandalf:~$ mkdir bah
rostedt@gandalf:~$ cd bah
rostedt@gandalf:~/bah$ ketchup -r -G 2.6.24-rc2
None -> 2.6.24-rc2
Unpacking linux-2.6.23.tar.bz2
Applying patch-2.6.24-rc2.bz2
Current directory renamed to /home/rostedt/linux-2.6.24-rc2
rostedt@gandalf:~/bah$ cd .
rostedt@gandalf:~/linux-2.6.24-rc2$ 
rostedt@gandalf:~/linux-2.6.24-rc2$ wget http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.24-rc2-rt1-broken-out.tar.bz2
rostedt@gandalf:~/linux-2.6.24-rc2$ tar -xf patch-2.6.24-rc2-rt1-broken-out.tar.bz2
rostedt@gandalf:~/linux-2.6.24-rc2$ quilt push preempt-realtime-mips.patch
[...]
rostedt@gandalf:~/linux-2.6.24-rc2$ wget http://rostedt.homelinux.com/rt/pre/2.6.24-rc2-rt1-pre1-rejs/preempt-realtime-mips.patch.tar.bz2
[...]
rostedt@gandalf:~/linux-2.6.24-rc2$ tar -xf preempt-realtime-mips.patch.tar.bz2 
rostedt@gandalf:~/linux-2.6.24-rc2$ find . -name '*.rej'
./arch/mips/kernel/i8259.c.rej
./arch/mips/kernel/smp.c.rej
./arch/mips/kernel/process.c.rej
./arch/mips/kernel/time.c.rej
./arch/mips/kernel/traps.c.rej
./arch/mips/sibyte/sb1250/irq.c.rej
./arch/mips/sibyte/sb1250/smp.c.rej
./arch/mips/sibyte/swarm/setup.c.rej
./include/asm-mips/hw_irq.h.rej
./include/asm-mips/i8259.h.rej
./include/asm-mips/linkage.h.rej
./include/asm-mips/semaphore.h.rej
./include/asm-mips/time.h.rej

And now I'm in the position before I did the "quilt refresh" against the preempt-realtime-mips.patch. Others can do this too, and see where I might have messed up the conflicts. Note, doing a "quilt pop -f" now will remove the patch as I resolved it, and doing a "quilt push -f" will put you to the position before I did the patch.

Note, I may have messed up by running a "quilt refresh" before running the reject archive script. If that's the case (the saved patch will be the resolved patch, not the original), simply take the patch from the patch-2.6.23.1-rt11-broken-out.tar.bz2 and use that as the original.

I've tested this on x86_64 both SMP and UP, as well as SMP on i386. I'm pretty sure that the other archs may be broken (arm, mips and powerpc).

Because this was such a big change, there is probably a bit of regression bugs that might have crept in. So please test and report your findings.

Special thanks goes to Paul E. Mckenney (for pointing me to the wrong bug, that happened to sit right next to the correct one ;-), as well as Peter Zijlstra and Daniel Walker for helping me debug the initial ports.

Changes since 2.6.23.1-rt11

- Port to 2.6.24-rc2

- latency tracer bootmem allocate (Yanmin Zhang)

- removed Gregory Haskins patch 8 (will probably be back in -rt2) This was due to some initial porting problems. But the fixes came too late in the testing period. (he decided cleaning his garage was more important than working on this kernel.;-)

to build a 2.6.24-rc2-rt1 tree, the following patches should be applied:

http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.23.tar.bz2
http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.24-rc2.bz2
http://www.kernel.org/pub/linux/kernel/projects/rt/patch-2.6.24-rc2-rt1.gz

And like always, my RT version of Matt Mackall's ketchup will get this for you nicely:

http://people.redhat.com/srostedt/rt/tools/ketchup-0.9.8-rt1

The broken out patches are also available.

Thanks!

-- Steve

#1 lore raw
Quoted 4 lines · Steven Rostedt

Finally!

We are pleased to announce 2.6.24-rc2-rt1.

<SNIP>

Hi Steve,
Not sure I've ever posted on this list. Always looking to help out
at my low level.

Anyway, I tried building the kernel. My 1st two attempts, done
running make menuconfig from scratch, didn't boot. I gave up on that for now and tried using make oldconfig from my 2.6.23-rt1 kernel (I'm so far behind!!) and ended up with this error. Not sure it's enough for you to find the bug. If you want/need more or want the config file let me know.

I'm sure this is just me setting inappropriate bits but I figured I
might as well send along the info. >/dev/null if it's inappropriate but let me know how to move forward if possible.

As always thanks the the rt-kernel team for all you do.

Cheers,
Mark

  CC      ipc/mqueue.o
  CC      ipc/compat_mq.o
  LD      ipc/built-in.o
  CC      security/security.o
  CC      security/dummy.o
  CC      security/inode.o
  LD      security/built-in.o
  CC [M]  security/commoncap.o
  CC [M]  security/realcap.o

security/realcap.c: In function 'realtime_exit':
security/realcap.c:129: error: implicit declaration of function 'mod_unreg_security'
security/realcap.c:133: error: implicit declaration of function 'unregister_security'
make[1]: *** [security/realcap.o] Error 1
make: *** [security] Error 2
lightning linux #

#2 lore raw
Quoted 8 lines · Mark Knecht
Quoted 4 lines · Steven Rostedt

Finally!

We are pleased to announce 2.6.24-rc2-rt1.

<SNIP>

Hi Steve,

<snip!>

Quoted 2 lines

As always thanks the the rt-kernel team for all you do.

On behalf of the rt-kernel team, you are welcome ;-)

Quoted 13 lines

Cheers,
Mark

  CC      ipc/mqueue.o
  CC      ipc/compat_mq.o
  LD      ipc/built-in.o
  CC      security/security.o
  CC      security/dummy.o
  CC      security/inode.o
  LD      security/built-in.o
  CC [M]  security/commoncap.o
  CC [M]  security/realcap.o
Quoted 8 lines

security/realcap.c: In function 'realtime_exit':
security/realcap.c:129: error: implicit declaration of function 'mod_unreg_security'
security/realcap.c:133: error: implicit declaration of function 'unregister_security'
make[1]: *** [security/realcap.o] Error 1
make: *** [security] Error 2
lightning linux #

Definitely looks like a config bug. You can send me your config off list.

Hmm, I need to do a allyesconfig, but I'm not even sure 2.6.24-rc2 would compile with that.

Thanks,

-- Steve

#3 lore raw

Sent.

Quoted 52 lines · Steven Rostedt
Quoted 8 lines · Mark Knecht
Quoted 4 lines · Steven Rostedt

Finally!

We are pleased to announce 2.6.24-rc2-rt1.

<SNIP>

Hi Steve,

<snip!>

Quoted 2 lines

As always thanks the the rt-kernel team for all you do.

On behalf of the rt-kernel team, you are welcome ;-)

Quoted 13 lines

Cheers,
Mark

  CC      ipc/mqueue.o
  CC      ipc/compat_mq.o
  LD      ipc/built-in.o
  CC      security/security.o
  CC      security/dummy.o
  CC      security/inode.o
  LD      security/built-in.o
  CC [M]  security/commoncap.o
  CC [M]  security/realcap.o
Quoted 8 lines

security/realcap.c: In function 'realtime_exit':
security/realcap.c:129: error: implicit declaration of function 'mod_unreg_security'
security/realcap.c:133: error: implicit declaration of function 'unregister_security'
make[1]: *** [security/realcap.o] Error 1
make: *** [security] Error 2
lightning linux #

Definitely looks like a config bug. You can send me your config off list.

Hmm, I need to do a allyesconfig, but I'm not even sure 2.6.24-rc2 would compile with that.

Thanks,

-- Steve

#4 lore raw
In reply to Mark Knecht
Quoted 36 lines · Mark Knecht
Quoted 4 lines · Steven Rostedt

Finally!

We are pleased to announce 2.6.24-rc2-rt1.

<SNIP>

Hi Steve,
Not sure I've ever posted on this list. Always looking to help out
at my low level.

Anyway, I tried building the kernel. My 1st two attempts, done
running make menuconfig from scratch, didn't boot. I gave up on that for now and tried using make oldconfig from my 2.6.23-rt1 kernel (I'm so far behind!!) and ended up with this error. Not sure it's enough for you to find the bug. If you want/need more or want the config file let me know.

I'm sure this is just me setting inappropriate bits but I figured I
might as well send along the info. >/dev/null if it's inappropriate but let me know how to move forward if possible.

As always thanks the the rt-kernel team for all you do.

Cheers,
Mark

  CC      ipc/mqueue.o
  CC      ipc/compat_mq.o
  LD      ipc/built-in.o
  CC      security/security.o
  CC      security/dummy.o
  CC      security/inode.o
  LD      security/built-in.o
  CC [M]  security/commoncap.o
  CC [M]  security/realcap.o
Quoted 8 lines

security/realcap.c: In function 'realtime_exit':
security/realcap.c:129: error: implicit declaration of function 'mod_unreg_security'
security/realcap.c:133: error: implicit declaration of function 'unregister_security'
make[1]: *** [security/realcap.o] Error 1
make: *** [security] Error 2
lightning linux #

Hi Mark,

I guess you enabled the realtime capabilities (Realtime-LSM - Obsolete -)

You could disable that, and try again. I'm not sending a fix (yet) because ...

Ingo,

Do we still need to have the realtime-lsm.patch? It has been considered obsolete for over a year now. Can we finally remove it.

-- Steve

#5 lore raw
Quoted 57 lines · Steven Rostedt
Quoted 36 lines · Mark Knecht
Quoted 4 lines · Steven Rostedt

Finally!

We are pleased to announce 2.6.24-rc2-rt1.

<SNIP>

Hi Steve,
Not sure I've ever posted on this list. Always looking to help out
at my low level.

Anyway, I tried building the kernel. My 1st two attempts, done
running make menuconfig from scratch, didn't boot. I gave up on that for now and tried using make oldconfig from my 2.6.23-rt1 kernel (I'm so far behind!!) and ended up with this error. Not sure it's enough for you to find the bug. If you want/need more or want the config file let me know.

I'm sure this is just me setting inappropriate bits but I figured I
might as well send along the info. >/dev/null if it's inappropriate but let me know how to move forward if possible.

As always thanks the the rt-kernel team for all you do.

Cheers,
Mark

  CC      ipc/mqueue.o
  CC      ipc/compat_mq.o
  LD      ipc/built-in.o
  CC      security/security.o
  CC      security/dummy.o
  CC      security/inode.o
  LD      security/built-in.o
  CC [M]  security/commoncap.o
  CC [M]  security/realcap.o
Quoted 8 lines

security/realcap.c: In function 'realtime_exit':
security/realcap.c:129: error: implicit declaration of function 'mod_unreg_security'
security/realcap.c:133: error: implicit declaration of function 'unregister_security'
make[1]: *** [security/realcap.o] Error 1
make: *** [security] Error 2
lightning linux #

Hi Mark,

I guess you enabled the realtime capabilities (Realtime-LSM - Obsolete -)

You could disable that, and try again. I'm not sending a fix (yet) because ...

Quoted 7 lines

Ingo,

Do we still need to have the realtime-lsm.patch? It has been considered obsolete for over a year now. Can we finally remove it.

-- Steve

Steve,
I'd forgotten about that package going away. I think I've been
building the interface forever in the kernel but then not actually using it. I haven't loaded the realtime_lsm driver in a long time. Certainly back in the 2.6.22 past somewhere since I stopped.

Anyway, with that change to the config the rest of my old .config
file seems to have worked. The kernel boots. I have Jack running realtime. No xruns in the few minutes I have left with this task tonight.

mark@lightning ~ $ uname -a
Linux lightning 2.6.24-rc2-rt1 #4 PREEMPT RT Thu Nov 15 20:33:15 PST 2007 x86_64 AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD GNU/Linux mark@lightning ~ $

Very good so far. I'll continue to run the kernel over the next few
days and see how things go. Nothing I do these days is a heavy load. Just desktop work with a little bit of audio but I still run the realtime kernel.

Great work!

Cheers,
Mark

#6 lore raw
In reply to Steven Rostedt
Quoted 4 lines · Steven Rostedt

Ingo,

Do we still need to have the realtime-lsm.patch? It has been considered obsolete for over a year now. Can we finally remove it.

yeah, we can drop it.

Ingo