From: Lu Guanqun <guanqun.lu@intel.com>
To: "Koul, Vinod" <vinod.koul@intel.com>
Cc: Takashi Iwai <tiwai@suse.de>, ALSA <alsa-devel@alsa-project.org>,
"Harsha, Priya" <priya.harsha@intel.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Liam Girdwood <lrg@slimlogic.co.uk>
Subject: Re: [PATCH] ASoC: sst_platform: Fix lock acquring
Date: Sat, 9 Apr 2011 18:22:06 +0800 [thread overview]
Message-ID: <20110409102206.GA29911@qtel.sh.intel.com> (raw)
In-Reply-To: <438BB0150E931F4B9CE701519A446301085184E6C2@bgsmsx502.gar.corp.intel.com>
On Sat, Apr 09, 2011 at 12:51:07PM +0800, Koul, Vinod wrote:
> On Fri, Apr 08, 2011 at 01:11:48PM +0530, Lu Guanqun wrote:
> > On Fri, Apr 08, 2011 at 03:38:48PM +0800, Lu Guanqun wrote:
> > > Fix the possible dead lock shown below:
> > >
> > > spin_lock
> > > sst_get_stream_status
> > > sst_period_elapsed
> > > intel_sst_interrupt
> > > handle_IRQ_event
> > > handle_fasteoi_irq
> > > do_IRQ
> > > common_interrupt
> > > spin_lock
> > > sst_set_stream_status
> > > sst_platform_pcm_trigger
> > >
> > > Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
> Sorry, I am little unsure about this yet.
> Can you send more details of the deadlock you see.
> Which scenario it is hit, would help to send the debug trace :)
Hi Vinod,
I don't get the actual debug trace, so I have to manually reveal the
possible deadlock...
As sst_set_stream_status could be called both in interrupt context and
process context, a simple spin_lock can't protect the mutal exclusion
properly. I'm afraid spin_lock_irqsave is better for this use case here.
How do you think?
>
> ~Vinod
>
--
guanqun
next prev parent reply other threads:[~2011-04-09 10:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 7:38 [PATCH] ASoC: sst_platform: Fix lock acquring Lu Guanqun
2011-04-08 7:40 ` Lu Guanqun
2011-04-09 4:51 ` Koul, Vinod
2011-04-09 10:22 ` Lu Guanqun [this message]
2011-04-09 10:41 ` Lu Guanqun
2011-04-11 19:52 ` Liam Girdwood
2011-04-11 20:15 ` Mark Brown
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=20110409102206.GA29911@qtel.sh.intel.com \
--to=guanqun.lu@intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=lrg@slimlogic.co.uk \
--cc=priya.harsha@intel.com \
--cc=tiwai@suse.de \
--cc=vinod.koul@intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.