From: john cooper <john.cooper@member.fsf.org>
To: Steven Rostedt <rostedt@goodmis.org>, Ryan McAvoy <ryan.sed@gmail.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-mips@vger.kernel.org, Ingo Molnar <mingo@elte.hu>,
Thomas Gleixner <tglx@linutronix.de>,
John Cooper <john.cooper@member.fsf.org>
Subject: Re: realtime-preempt for MIPS - compile problem with rwsem
Date: Wed, 21 Jun 2006 22:38:55 -0400 [thread overview]
Message-ID: <449A02BF.6010105@member.fsf.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0606211125590.29348@gandalf.stny.rr.com>
Steven Rostedt wrote:
> On Wed, 21 Jun 2006, Ryan McAvoy wrote:
>> I did just that when I first started with these patches and did
>> succeed in getting it compiling and booting. The resulting kernel,
>> however, is very unstable and hangs frequently with no output. (It
>> will hang within hours if left idle. I can hang it more quickly by
>> attempting to use it).
I also had stability issues with 2.6.14+RT+MIPS.
The only point I found it to be stable was under 2.6.13
where it successfully passed a standard battery of QA
tests. To my knowledge no one has updated MIPS RT
since that time so I'd assume it is either in the
same state as then (best case) or worse (likely) due to
languishing.
Note the MIPS patch under discussion also required a
patch from linux-mips to produce a functional kernel
on the malta 4Kc which was the only MIPS target known
to be supported by that combination.
>> I have deadlock detection turned on and have
>> confirmed that it does produce output at least for some deadlocks:
>> http://groups.google.com/group/linux.kernel/browse_frm/thread/1559667001b7da2d/2558b539a5adc660?lnk=st&q=realtime+preempt+mips&rnum=2&hl=en#2558b539a5adc660
>> 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.
Well, not for MIPS. There isn't any easy/painless method of
backtracing the stack so the MIPS version of dump_stack()
doesn't even try. Instead it scans the entirety of the
stack and prints out anything and everything which smells
like a valid kernel text address, hence the screwy output.
>> I decided to review the changes I made in getting it to compile and
>> was hoping that this one may be the cause of the instability. I
>> thought that perhaps this change was incorrect because
>> include/asm-mips/rwsem.h is introduced by the rt-preempt patch and
>
> Ha, you're right! (added John Cooper to this so he can clean up this mess
> ;)
Deselection of RWSEM_GENERIC_SPINLOCK in arch/mips/Kconfig is
a bug. Unfortunately I don't have an available mips target
ATM and few if any spare cycles, but I'd sure like to get MIPS
through this nagging impasse.
That said, keep in mind due to limitations in the MIPS ABI
which carry over to gcc, latency instrumentation as it
currently exists (or may ever exist) is effectively
unsupportable. IMHO this is a serious stumbling block for
realistic support of the RT work on this architecture.
-john
--
john.cooper@member.fsf.org
prev parent reply other threads:[~2006-06-22 2:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-20 19:08 realtime-preempt for MIPS - compile problem with rwsem Ryan McAvoy
2006-06-21 8:05 ` Steven Rostedt
2006-06-21 15:04 ` Ryan McAvoy
2006-06-21 15:43 ` Steven Rostedt
2006-06-21 15:53 ` Steven Rostedt
2006-06-21 16:12 ` Ryan McAvoy
2006-06-22 2:38 ` john cooper [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=449A02BF.6010105@member.fsf.org \
--to=john.cooper@member.fsf.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=rostedt@goodmis.org \
--cc=ryan.sed@gmail.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox