]
Hi,
I have now tried the 2.6.17 kernel (from linux-mips.org) with 2.6.17-rt1 plus the patches provided by Manish, and it works!
That is, it boots and is apparantly stable. None of the procedures that would cause my 2.6.15 and 2.6.16 rt kernels to hang reliably hang this kernel. As well, it ran over night and is still up. (The other rt kernels I built would hang within hours even if left idle).
With respect to my original question regarding CONFIG_RWSEM_GENERIC_SPINLOCK, I have this option turned off in my configuration. (Still have "depends on !PREEMPT_RT for that option). include/asm-mips/rwsem.h still calls rwsem_down_read_failed which is still not defined since lib/rwsem.c is not compiled.
But, I don't encounter the link errors in this kernel because the two offending inline functions in include/asm-mips/rwsem.h __down_read and __down_write do not seem to be called from anywhere.
Ryan McAvoy
Quoted 63 lines · Manish Lachwani
Hi !
I have sent a MIPS patch to Ingo and Thomas just yesterday to support realtime on MIPS in 2.6.17 and using the 2.6.17-rt1 patch. I have got that patch working on Broadcom SWARM board (32-bit UP/SMP).
Try this out and let me know. I have run some stability tests on this kernel and have not noticed any hangs so far. So, it will be interesting to flush out any bugs.
Thanks
Manish Lachwani---------- Forwarded message ----------
From: Daniel Walker <[email protected]>
To: [email protected]
Date: Wed, 21 Jun 2006 09:31:59 -0700
Subject: [Fwd: Re: realtime-preempt for MIPS - compile problem with rwsem]---------- Forwarded message ----------
From: "Ryan McAvoy" <[email protected]>
To: "Steven Rostedt" <[email protected]>
Date: Wed, 21 Jun 2006 10:12:29 -0600
Subject: Re: realtime-preempt for MIPS - compile problem with rwsem On 6/21/06, Steven Rostedt wrote:Quoted 5 lines
Quoted 1 line
In the more common hangs though, I get no output.
That output looks like it had a deadlock on the serial output of sysrq key. But that back trace looks screwy.
That problem actually went away with 2.6.16. All the others remained unfortunately. (I was not that concerned about that one ... I can avoid it just by not sending a sysrq ;-). I posted it though since I did actually have output with that hang).
Quoted 6 lines
Perhaps you can post all the changes you made as a patch to see if something else is wrong. It might also be best to see if you can get the latest working (2.6.17-rtX) and work your way backwards to the kernel version you really need.
I will post the other changes soon. (I am not at the office where I am working on this yet this morning). I will also try 2.6.17. Thanks.
Ryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
It's a good idea to have it set to !PREEMPT_RT since it uses a spinlock_t which becomes a mutex in PREEMPT_RT. With that in mind I don't think it would work well, or at all with PREEMPT_RT enabled.
Daniel
Quoted 85 lines · Ryan McAvoy
Hi,
I have now tried the 2.6.17 kernel (from linux-mips.org) with 2.6.17-rt1 plus the patches provided by Manish, and it works!
That is, it boots and is apparantly stable. None of the procedures that would cause my 2.6.15 and 2.6.16 rt kernels to hang reliably hang this kernel. As well, it ran over night and is still up. (The other rt kernels I built would hang within hours even if left idle).
With respect to my original question regarding
CONFIG_RWSEM_GENERIC_SPINLOCK, I have this option turned off in my configuration. (Still have "depends on !PREEMPT_RT for that option).include/asm-mips/rwsem.hstill callsrwsem_down_read_failedwhich is still not defined sincelib/rwsem.cis not compiled.
But, I don't encounter the link errors in this kernel because the two offending inline functions ininclude/asm-mips/rwsem.h__down_readand__down_writedo not seem to be called from anywhere.Ryan McAvoy
Quoted 63 lines · Manish Lachwani
Hi !
I have sent a MIPS patch to Ingo and Thomas just yesterday to support realtime on MIPS in 2.6.17 and using the 2.6.17-rt1 patch. I have got that patch working on Broadcom SWARM board (32-bit UP/SMP).
Try this out and let me know. I have run some stability tests on this kernel and have not noticed any hangs so far. So, it will be interesting to flush out any bugs.
Thanks
Manish Lachwani---------- Forwarded message ----------
From: Daniel Walker <[email protected]>
To: [email protected]
Date: Wed, 21 Jun 2006 09:31:59 -0700
Subject: [Fwd: Re: realtime-preempt for MIPS - compile problem with rwsem]---------- Forwarded message ----------
From: "Ryan McAvoy" <[email protected]>
To: "Steven Rostedt" <[email protected]>
Date: Wed, 21 Jun 2006 10:12:29 -0600
Subject: Re: realtime-preempt for MIPS - compile problem with rwsem On 6/21/06, Steven Rostedt wrote:Quoted 5 lines
Quoted 1 line
In the more common hangs though, I get no output.
That output looks like it had a deadlock on the serial output of sysrq key. But that back trace looks screwy.
That problem actually went away with 2.6.16. All the others remained unfortunately. (I was not that concerned about that one ... I can avoid it just by not sending a sysrq ;-). I posted it though since I did actually have output with that hang).
Quoted 6 lines
Perhaps you can post all the changes you made as a patch to see if something else is wrong. It might also be best to see if you can get the latest working (2.6.17-rtX) and work your way backwards to the kernel version you really need.
I will post the other changes soon. (I am not at the office where I am working on this yet this morning). I will also try 2.6.17. Thanks.
Ryan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/