From: Ingo Molnar <mingo@elte.hu>
To: Daniel Walker <dwalker@mvista.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: real time hang w/ latency tracing
Date: Wed, 4 Apr 2007 17:42:49 +0200 [thread overview]
Message-ID: <20070404154249.GA31171@elte.hu> (raw)
In-Reply-To: <1175701013.15973.8.camel@imap.mvista.com>
* Daniel Walker <dwalker@mvista.com> wrote:
> > > struct uart_port {
> > > +#ifdef CONFIG_LATENCY_TIMING
> > > + raw_spinlock_t lock; /* port lock */
> > > +#else
> > > spinlock_t lock; /* port lock */
> > > +#endif
> >
> > ugh - this will only cause other problems if anyone else is trying
> > to use the serial code. This needs a cleaner fix - such as not doing
> > that printk from atomic context.
>
> I assumed this fix wasn't totally right .. Interrupts could be enabled
> just before printing , after any critical stuff has happened then
> disabled again after printing .. Or are you thinking of something more
> complex?
i mean non-printk related breakages to the normal serial driver - which
is now surprised by this raw lock in an -rt kernel.
this is a hard issue and there's no easy solution i can see. neither
having it as a raw lock is a good solution, nor having it as a
preemptible lock is a good solution.
Ingo
next prev parent reply other threads:[~2007-04-04 15:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-03 18:57 Daniel Walker
2007-04-04 1:41 ` Daniel Walker
2007-04-04 8:51 ` Ingo Molnar
2007-04-04 15:36 ` Daniel Walker
2007-04-04 15:42 ` Ingo Molnar [this message]
2007-04-04 15:57 ` Daniel Walker
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=20070404154249.GA31171@elte.hu \
--to=mingo@elte.hu \
--cc=dwalker@mvista.com \
--cc=linux-kernel@vger.kernel.org \
/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
all inboxes | Powered by JetHome®