From: Haavard Skinnemoen <hskinnemoen@atmel.com>
To: "Remy Bohmer" <linux@bohmer.net>
Cc: michael <trimarchi@gandalf.sssup.it>,
fabio@gandalf.sssup.it, "Andrew Victor" <linux@maxim.org.za>,
"Chip Coldwell" <coldwell@redhat.com>,
"Marc Pignat" <marc.pignat@hevs.ch>,
"David Brownell" <david-b@pacbell.net>,
linux-kernel@vger.kernel.org,
"Alan Cox" <alan@lxorguk.ukuu.org.uk>
Subject: Re: [PATCH -mm v4 6/9] atmel_serial: Split the interrupt handler
Date: Wed, 30 Jan 2008 11:34:34 +0100 [thread overview]
Message-ID: <20080130113434.2519f77c@dhcp-252-066.norway.atmel.com> (raw)
In-Reply-To: <3efb10970801300221h601261edy33cf89dac5abde78@mail.gmail.com>
On Wed, 30 Jan 2008 11:21:49 +0100
"Remy Bohmer" <linux@bohmer.net> wrote:
> > > * Drop the lock here since it might end up calling
> > > * uart_start(), which takes the lock.
> > > spin_unlock(&port->lock);
> > > */
> > > tty_flip_buffer_push(port->info->tty);
> > > /*
> > > spin_lock(&port->lock);
> > > */
> > > The same code with this comments out runs
>
> I expect the UART generating the problem is the DBGU port. The DBGU
> shares its interrupt line with the timer interrupt with the IRQF_TIMER
> flag set, and thus the DBGU interrupt handler is running in
> IRQF_NODELAY context. Within this context it is forbidden to lock a
> normal spinlock, because a normal spinlock is converted to a mutex on
> Preempt-RT; a mutex can sleep which is forbidden in interrupt context.
> So, to get around this problem, this lock spinlock has to be of the
> raw_spinlock_t type. The raw_spinlock_t is the normal mainline-kernel
> spinlock, and as such it is not converted to a mutex, and will
> therefor never sleep.
>
> Attached a patch that changes this spinlock type. I used it in my
> patchset, but your updates of December last year do not need this
> patch anymore, so apparantly you changed something that has a
> regression on Preempt-RT...
The code above is from the tasklet, so I don't think that's the problem.
The interrupt handler doesn't take any locks.
Or are spinlocks not allowed in softirq context either?
> I believe I have to look at the latest set of patches, and try to find
> any regressions. Do you have a location somewhere where I can download
> the latest versions? Or do I need to dig through LKML to find the
> latest... ;-)
They are in -mm. You were Cc'ed I think...
Haavard
Haavard
next prev parent reply other threads:[~2008-01-30 10:35 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20080129224316.GA23155@gandalf.sssup.it>
2008-01-29 23:12 ` michael
2008-01-30 9:41 ` Haavard Skinnemoen
2008-01-30 10:21 ` Remy Bohmer
2008-01-30 10:34 ` Haavard Skinnemoen [this message]
2008-01-30 11:05 ` Remy Bohmer
2008-01-30 12:43 ` Haavard Skinnemoen
2008-01-30 15:25 ` michael
2008-01-30 10:29 ` michael
2008-01-30 12:36 ` Haavard Skinnemoen
2008-01-30 15:26 ` michael
2008-01-30 15:46 ` Haavard Skinnemoen
2008-01-31 1:53 ` michael
2008-01-31 15:07 ` Haavard Skinnemoen
2008-01-31 19:36 ` Remy Bohmer
2008-02-04 12:39 ` Haavard Skinnemoen
2008-02-04 19:44 ` Remy Bohmer
2008-02-06 12:19 ` michael
2008-02-06 19:41 ` Remy Bohmer
2008-02-13 11:07 ` michael
2008-02-13 20:13 ` Remy Bohmer
2008-02-14 7:30 ` michael
2008-02-04 19:01 ` michael
2008-02-04 20:25 ` Haavard Skinnemoen
2008-02-05 12:29 ` michael
2008-02-06 12:30 ` Haavard Skinnemoen
2008-02-06 13:41 ` michael
2008-02-06 15:22 ` Haavard Skinnemoen
2008-01-24 12:41 [PATCH -mm v4 0/9] atmel_serial cleanups and improvements Haavard Skinnemoen
2008-01-24 12:41 ` [PATCH -mm v4 1/9] MAINTAINERS: Add myself as maintainer of the atmel_serial driver Haavard Skinnemoen
2008-01-24 12:41 ` [PATCH -mm v4 2/9] atmel_serial: Clean up the code Haavard Skinnemoen
2008-01-24 12:41 ` [PATCH -mm v4 3/9] atmel_serial: Use cpu_relax() when busy-waiting Haavard Skinnemoen
2008-01-24 12:41 ` [PATCH -mm v4 4/9] atmel_serial: Use existing console options only if BRG is running Haavard Skinnemoen
2008-01-24 12:41 ` [PATCH -mm v4 5/9] atmel_serial: Fix bugs in probe() error path and remove() Haavard Skinnemoen
2008-01-24 12:41 ` [PATCH -mm v4 6/9] atmel_serial: Split the interrupt handler Haavard Skinnemoen
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=20080130113434.2519f77c@dhcp-252-066.norway.atmel.com \
--to=hskinnemoen@atmel.com \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=coldwell@redhat.com \
--cc=david-b@pacbell.net \
--cc=fabio@gandalf.sssup.it \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@bohmer.net \
--cc=linux@maxim.org.za \
--cc=marc.pignat@hevs.ch \
--cc=trimarchi@gandalf.sssup.it \
/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®