All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: Gregoire Gentil <gregoire@gentil.com>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Linus Walleij <linus.walleij@linaro.org>,
	Santosh Shilimkar <santosh.shilimkar@ti.com>,
	Rob Herring <rob.herring@calxeda.com>,
	linux-rt-users <linux-rt-users@vger.kernel.org>
Subject: Re: cpufreq + PREEMPT_RT_FULL give bad context sleeping BUG
Date: Thu, 25 Apr 2013 17:23:34 +0200	[thread overview]
Message-ID: <20130425152334.GA5561@linutronix.de> (raw)
In-Reply-To: <51530EE4.1040600@gentil.com>

* Gregoire Gentil | 2013-03-27 08:23:16 [-0700]:

>>>>[0] http://dev.omapzoom.org/?p=integration/kernel-ubuntu.git;a=blob;f=arch/arm/plat-omap/clock.c;h=8c0e8fe2c5c51673e41e4304194d922dbfaedf38;hb=3e1c9f139425663ceee48f92e8d3f23158580334
>>>
>>>Yeah, it's that way in mainline as well.
>>
>>I meant, that the mutex is taken. So yes, this will cause a warning in
>>!RT too.
>Hello,
>
>So what could be a tentative solution? Could you advise what I could try?

The easy way would be to get the clockfw_lock lock changed into a
raw_spinlock_t and fix clk_get_rate() and others. If the lock is taken
for a long time it will increase you latency.
You try to check if it is possible to defer twd_update_frequency() to a
workqueue and execute it later and not directly from the interrupt.

On the other hand you might want simply disable cpufreq. If you have a
certain latency and the cpu frequency goes down because the system is
idle then you latency will increase. Basicaly an idle machine will worse
latency than a busy one. You probably don't want this.

>
>Many thanks in advance,
>
>Grégoire

Sebastian
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2013-04-25 15:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 22:10 [ANNOUNCE] 3.8.4-rt1 Thomas Gleixner
2013-03-23  1:30 ` Luis Claudio R. Goncalves
2013-03-23 17:17   ` cpufreq + PREEMPT_RT_FULL give bad context sleeping BUG Gregoire Gentil
2013-03-26 20:51     ` Sebastian Andrzej Siewior
2013-03-26 21:07       ` Thomas Gleixner
2013-03-26 21:33         ` Sebastian Andrzej Siewior
2013-03-26 21:38           ` Thomas Gleixner
2013-03-26 21:44             ` Thomas Gleixner
2013-03-27 15:23               ` Gregoire Gentil
2013-04-25 15:23                 ` Sebastian Andrzej Siewior [this message]
2013-03-23 18:38   ` [ANNOUNCE] 3.8.4-rt1 Sebastian Andrzej Siewior
2013-03-24  1:15     ` Luis Claudio R. Goncalves
2013-03-23  3:31 ` Luis Claudio R. Goncalves

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=20130425152334.GA5561@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=gregoire@gentil.com \
    --cc=linus.walleij@linaro.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=rob.herring@calxeda.com \
    --cc=santosh.shilimkar@ti.com \
    --cc=tglx@linutronix.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 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.