From: Kevin Hilman <khilman@deeprootsystems.com>
To: Tero.Kristo@nokia.com
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCHv5] OMAP3: Serial: Improved sleep logic
Date: Thu, 25 Feb 2010 07:20:34 -0800 [thread overview]
Message-ID: <87k4u1mjel.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1F18D6510CF0474A8C9500565A7E41A224BF580B19@NOK-EUMSG-02.mgdnok.nokia.com> (Tero Kristo's message of "Thu\, 25 Feb 2010 09\:43\:51 +0100")
<Tero.Kristo@nokia.com> writes:
[...]
>>Here's my hunch as to what's happening:
>>
>>I think the problem is a deadlock in getrawmonotonic(). Nested calls
>>here will deadlock due to the xtime_lock being held.
>
> Looking at the seqlock code, I think a seqlock reader can "hang" only in a case where someone is constantly writing the seqlock. And, as we are inside interrupt, this should not be possible.
>
>>When updading the timeout, sleep_timeout_store() does a
>>getrawmonotonic() to update the expiry time. While this happening,
>>the UART interrupt could fire, causing an omap_uart_block_sleep()
>>which would also getrawmonotonic() and deadlock in interrupt mode.
>
> It does not really explain why it hangs after the 5 second period though, as the device has called getrawmonotonic several times by this already. I have not seen this kind of behavior in my testing, even while fiddling with the sleep_timeout_store().
minor clarification...
For me the hang is not after the 5 second timeout. For me it happens
as soon as I write a non-zero value to
/sys/devices/.../serial8250.2/sleep_timeout.
Kevin
next prev parent reply other threads:[~2010-02-25 15:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-17 15:51 [PATCHv5] OMAP3: Serial: Improved sleep logic Tero Kristo
2010-02-22 20:42 ` Tony Lindgren
2010-02-24 16:04 ` Kevin Hilman
2010-02-25 8:43 ` Tero.Kristo
2010-02-25 15:20 ` Kevin Hilman [this message]
2010-02-25 15:39 ` Tero.Kristo
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=87k4u1mjel.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=Tero.Kristo@nokia.com \
--cc=linux-omap@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