mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "wzabolot@elektron.elka.pw.edu.pl" <W.Zabolotny@elka.pw.edu.pl>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Driver snd-hrtimer - causing system freeze with Rosegarden
Date: Thu, 10 Dec 2009 09:16:51 +0100	[thread overview]
Message-ID: <s5hfx7jb5vw.wl%tiwai@suse.de> (raw)
In-Reply-To: <4B201EEE.9020200@elektron.elka.pw.edu.pl>

At Wed, 09 Dec 2009 23:04:30 +0100,
wzabolot@elektron.elka.pw.edu.pl wrote:
> 
> Dear Takashi,
> 
> I've sent the attached message to the LKML, but I think that it may be
> also reasonable to contact you - the author of the snd-hrtimer.
> I've tried to find reasons for instability of system running the
> sequencer using HR timer.
> My results are summarized in the attached bug report.
> Could you please check if calling of hrtimer_cancel from
> xnd_hrtimer_stop, which sometimes is called from the callback may cause
> the obderved instability?

hrtimer_cancel() is very simple and doesn't sleep (but spins).  So,
this shouldn't be the real issue.

> I have tested the problem on two SMP machines with diffrent kernels
> (2.6.30, 2.6.31.6, 2.6.32).
> The problem seems to be associated with the "snd-hrtimer" module.
> I've tried to run the application vie remote X session, while having the
> text console active.
> Before the machine froze, the following messages have been displayed in
> the console:
> 
> System 1 (Intel(R) Pentium(R) 4 CPU 2.80GHz HT)
> 
> hrtimer: interrupt too slow, forcing clock min delta to 3568 ns
> 
> System 2 (Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz)
> hrtimer: interrupt too slow, forcing clock min delta to 11103 ns
> CE: hpet increasing min_delta_ns to 15000 nsec
> CE: hpet increasing min_delta_ns to 22500 nsec
> CE: hpet increasing min_delta_ns to 33750 nsec

Hm, this sounds weird.
Does hrtimer work reliably on your machine?

> Analyzing the problem, I had an idea, that maybe the snd-hrtimer should
> be rewritten to call
> the callback via tasklet (I attach my patch only as an ilustration, my
> code doesn't work either),

Basically snd-hrtimer already uses tasklet (more exactly, snd-timer
handles callbacks in tasklet as default except for the objects with
SNDRV_TIMER_HW_TASKLET).  So your patch is wrapping over a wrap.


Takashi

       reply	other threads:[~2009-12-10  8:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4B201EEE.9020200@elektron.elka.pw.edu.pl>
2009-12-10  8:16 ` Takashi Iwai [this message]
2009-12-09 19:10 wzab

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=s5hfx7jb5vw.wl%tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=W.Zabolotny@elka.pw.edu.pl \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®