From: Mike Frysinger <vapier@gentoo.org>
To: Greg KH <greg@kroah.com>
Cc: uclinux-dist-devel@blackfin.uclinux.org,
Greg Kroah-Hartman <gregkh@suse.de>,
Alan Cox <alan@lxorguk.ukuu.org.uk>,
linux-serial@vger.kernel.org
Subject: Re: [uclinux-dist-devel] [PATCH] serial: bfin_5xx: split uart RX lock from uart port lock to avoid deadlock
Date: Thu, 3 Feb 2011 16:56:30 -0500 [thread overview]
Message-ID: <AANLkTi=hXukoc6hd7+0zC-eO36wrheMr_xUCDPQBee4P@mail.gmail.com> (raw)
In-Reply-To: <20110203183242.GA20886@kroah.com>
On Thu, Feb 3, 2011 at 13:32, Greg KH wrote:
> On Thu, Feb 03, 2011 at 01:29:08AM -0500, Mike Frysinger wrote:
>> On Tue, Jan 11, 2011 at 00:16, Mike Frysinger wrote:
>> > From: Sonic Zhang <sonic.zhang@analog.com>
>> >
>> > The RX lock is used to protect the RX buffer from concurrent access in DMA
>> > mode between the timer and RX interrupt routines. It is independent from
>> > the uart lock which is used to protect the TX buffer. It is possible for
>> > a uart TX transfer to be started up from the RX interrupt handler if low
>> > latency is enabled. So we need to split the locks to avoid deadlocking in
>> > this situation.
>> >
>> > In PIO mode, the RX lock is not necessary because the handle_simple_irq
>> > and handle_level_irq functions ensure driver interrupt handlers are called
>> > once on one core.
>> >
>> > And now that the RX path has its own lock, the TX interrupt has nothing to
>> > do with the RX path, so disabling it at the same time.
>>
>> ping ...
>
> Is this needed for .38?
it fixes a possible deadlock that exists in current .38 rc, but i
wouldnt call it a "critical" fix as it only affects certain edge
cases. so if you want to merge for .38 or .39, either is OK for us i
think.
-mike
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-02-03 21:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 5:16 [PATCH] serial: bfin_5xx: split uart RX lock from uart port lock to avoid deadlock Mike Frysinger
2011-02-03 6:29 ` [uclinux-dist-devel] " Mike Frysinger
2011-02-03 18:32 ` Greg KH
2011-02-03 21:56 ` Mike Frysinger [this message]
2011-02-03 22:05 ` Greg KH
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='AANLkTi=hXukoc6hd7+0zC-eO36wrheMr_xUCDPQBee4P@mail.gmail.com' \
--to=vapier@gentoo.org \
--cc=alan@lxorguk.ukuu.org.uk \
--cc=greg@kroah.com \
--cc=gregkh@suse.de \
--cc=linux-serial@vger.kernel.org \
--cc=uclinux-dist-devel@blackfin.uclinux.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;
as well as URLs for NNTP newsgroup(s).