From: Stanislav Brabec <utx@penguin.cz>
To: Pavel Herrmann <morpheus.ibis@gmail.com>
Cc: Marek Vasut <marek.vasut@gmail.com>,
linux-arm-kernel@lists.infradead.org,
zaurus-devel@www.linuxtogo.org,
spi-devel-general@lists.sourceforge.net,
Igor Grinberg <grinberg@compulab.co.il>,
vapier@gentoo.org, khilman@deeprootsystems.com,
dmitry.torokhov@gmail.com, linux-kernel@vger.kernel.org,
pavel@ucw.cz, linux-input@vger.kernel.org, eric.y.miao@gmail.com,
akpm@linux-foundation.org, broonie@opensource.wolfsonmicro.com
Subject: Re: kernel panic in spi_complete() on spitz (PXA270)
Date: Thu, 30 Jun 2011 18:22:02 +0200 [thread overview]
Message-ID: <1309450922.4406.66.camel@oct.suse.cz> (raw)
In-Reply-To: <22208110.jIqhYvKY9h@bloomfield>
Pavel Herrmann wrote:
> On Thursday, June 30, 2011 04:45:18 PM Stanislav Brabec wrote:
> > Then I tried to apply "[PATCH] MAX1111: Fix race condition causing NULL
>
> > So I guess that MAX1111 AC voltage reading (via SPI) was involved in an
> > incorrect moment and race happened there and your MAX1111 race condition
> > fix fixes it.
> Are you using the first or second version of the patch? if the former, please
> use v2 (sent a few days later), which has solved the same problem by using a
> mutex instead of allocating message data on stack (which is not good for DMA)
I guess the second one with mutex.
This is my work-in-progress-mix patch:
http://www.penguin.cz/~utx/zaurus/feed/images/spitz/zImage-3.0.0-rc5+-spitz.diff
Several hours later, charging was turned on/off at least 1000 times
without any crash. So it seems that it was the correct race condition
fix.
> as for the backstory, this crash ocurrs when a short (measured in time spent)
> message was enqueued after a long message, so that the short one finished first
> (the actual bug was present even if the long one finished first, but in that
> case there was double complete() on the one completion instead of a NULL
> dereference)
I guess that inserting of power supply initiates reading of voltages on
MAX1111. The long one may be touchscreen or LCD control.
--
Stanislav Brabec
http://www.penguin.cz/~utx
next prev parent reply other threads:[~2011-06-30 16:22 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1308845380.4533.54.camel@oct.suse.cz>
2011-06-30 11:52 ` Marek Vasut
2011-06-30 14:45 ` Stanislav Brabec
2011-06-30 15:09 ` Marek Vasut
2011-06-30 15:36 ` Pavel Herrmann
2011-06-30 16:22 ` Stanislav Brabec [this message]
2011-06-30 15:25 ` Igor Grinberg
2011-06-30 15:59 ` Mark Brown
2011-06-30 16:13 ` Stanislav Brabec
2011-06-30 17:40 ` Igor Grinberg
2011-06-30 18:01 ` Mark Brown
2011-06-30 20:50 ` Igor Grinberg
2011-06-30 22:20 ` Stanislav Brabec
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=1309450922.4406.66.camel@oct.suse.cz \
--to=utx@penguin.cz \
--cc=akpm@linux-foundation.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=dmitry.torokhov@gmail.com \
--cc=eric.y.miao@gmail.com \
--cc=grinberg@compulab.co.il \
--cc=khilman@deeprootsystems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marek.vasut@gmail.com \
--cc=morpheus.ibis@gmail.com \
--cc=pavel@ucw.cz \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=vapier@gentoo.org \
--cc=zaurus-devel@www.linuxtogo.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®