From: Arun Raghavan <arun.raghavan@collabora.co.uk>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org,
David Henningsson <david.henningsson@canonical.com>
Subject: Re: [PATCH] ALSA: HDA: Lessen CPU usage when waiting for chip to respond
Date: Wed, 09 May 2012 16:25:43 +0530 [thread overview]
Message-ID: <1336560943.7277.0.camel@localhost> (raw)
In-Reply-To: <s5hvck5zky6.wl%tiwai@suse.de>
On Wed, 2012-05-09 at 12:51 +0200, Takashi Iwai wrote:
> At Wed, 09 May 2012 01:35:52 +0530,
> Arun Raghavan wrote:
> >
> > On Fri, 2012-05-04 at 11:05 +0200, David Henningsson wrote:
> > > When an IRQ for some reason gets lost, we wait up to a second using
> > > udelay, which is CPU intensive. This patch improves the situation by
> > > waiting about 30 ms in the CPU intensive mode, then stepping down to
> > > using msleep(2) instead. In essence, we trade some granularity in
> > > exchange for less CPU consumption when the waiting time is a bit longer.
> > >
> > > As a result, PulseAudio should no longer be killed by the kernel
> > > for taking up to much RT-prio CPU time. At least not for *this* reason.
> > >
> > > Signed-off-by: David Henningsson <david.henningsson@canonical.com>
> > > ---
> > > sound/pci/hda/hda_intel.c | 6 ++++--
> > > 1 file changed, 4 insertions(+), 2 deletions(-)
> > >
> > > Hi Arun,
> > >
> > > Can you check if this patch resolves your problem with PulseAudio getting
> > > killed by the kernel? If so, we should apply it to the kernel, perhaps even
> > > to stable.
> > >
> > > // David
> >
> > Thanks, this fixes the problem for me. Don't know what the official
> > procedure for these things is, but fwiw:
> >
> > Signed-off-by: Arun Raghavan <arun.raghavan@collabora.co.uk>
>
> I guess you meant tested-by tag?
> In anyway I took the patch now with Cc to stable. It'll be included
> in the next pull request to Linus.
I did, and now I know what tag to use the next time. :)
Thanks,
Arun
prev parent reply other threads:[~2012-05-09 12:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-04 9:05 [PATCH] ALSA: HDA: Lessen CPU usage when waiting for chip to respond David Henningsson
2012-05-08 10:53 ` Takashi Iwai
2012-05-08 20:05 ` Arun Raghavan
2012-05-09 10:51 ` Takashi Iwai
2012-05-09 10:55 ` Arun Raghavan [this message]
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=1336560943.7277.0.camel@localhost \
--to=arun.raghavan@collabora.co.uk \
--cc=alsa-devel@alsa-project.org \
--cc=david.henningsson@canonical.com \
--cc=tiwai@suse.de \
/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).