mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Benjamin GAIGNARD <benjamin.gaignard@st.com>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: "fweisbec@gmail.com" <fweisbec@gmail.com>,
	"mingo@kernel.org" <mingo@kernel.org>,
	"marc.zyngier@arm.com" <marc.zyngier@arm.com>,
	"daniel.lezcano@linaro.org" <daniel.lezcano@linaro.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-stm32@st-md-mailman.stormreply.com" 
	<linux-stm32@st-md-mailman.stormreply.com>
Subject: Re: [PATCH] tick: check if broadcast device could really be stopped
Date: Mon, 14 Oct 2019 13:14:23 +0000	[thread overview]
Message-ID: <a4b4b785-c471-a3c2-2c41-01bd9865e479@st.com> (raw)
In-Reply-To: <alpine.DEB.2.21.1910141441350.2531@nanos.tec.linutronix.de>


On 10/14/19 2:56 PM, Thomas Gleixner wrote:
> On Wed, 9 Oct 2019, Benjamin Gaignard wrote:
>> @@ -78,7 +78,7 @@ static bool tick_check_broadcast_device(struct clock_event_device *curdev,
>>   {
>>   	if ((newdev->features & CLOCK_EVT_FEAT_DUMMY) ||
>>   	    (newdev->features & CLOCK_EVT_FEAT_PERCPU) ||
>> -	    (newdev->features & CLOCK_EVT_FEAT_C3STOP))
>> +	    tick_broadcast_could_stop(newdev))
> No. This might be called _before_ a cpuidle driver is available and then
> when that driver is loaded and goes deep, everything goes south.

What could be the solution to let know to tick broadcast framework that 
this device

will not be stopped (because CPU won't go in idle) ?

I have tried to put "always-on" property on DT but it was a NACK too:

https://lkml.org/lkml/2019/9/27/164

Do I have miss a flag somewhere ?

Regards,

Benjamin

>
> Aside of that it definitely breaks everything which does not use the
> cpuidle stuff, which includes all machines affected by X86_BUG_AMD_APIC_C1E
> and everything which uses the INTEL_IDLE driver.
>
> Pretty much the same problem for all other places you changed.
> Thanks,
>
> 	tglx

  reply	other threads:[~2019-10-14 13:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-09 16:02 Benjamin Gaignard
2019-10-14 12:56 ` Thomas Gleixner
2019-10-14 13:14   ` Benjamin GAIGNARD [this message]
2019-10-14 13:40     ` Thomas Gleixner
2019-10-14 14:11       ` Benjamin GAIGNARD
2019-10-14 14:28         ` Thomas Gleixner
2019-10-14 15:22           ` Benjamin GAIGNARD
2019-10-14 18:34             ` Thomas Gleixner

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=a4b4b785-c471-a3c2-2c41-01bd9865e479@st.com \
    --to=benjamin.gaignard@st.com \
    --cc=daniel.lezcano@linaro.org \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-stm32@st-md-mailman.stormreply.com \
    --cc=marc.zyngier@arm.com \
    --cc=mingo@kernel.org \
    --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 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®