public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux-X3ehHDuj6sIIGcDfoQAp7OTW4wlIGRCZ@public.gmane.org>
To: Shaohua Li <shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: ACPI-ML <linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Pallipadi Venkatesh
	<venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Thomas Renninger <trenn-l3A5Bk7waGM@public.gmane.org>
Subject: Re: [RFC 2/2] new C-state policy
Date: Wed, 11 Jan 2006 09:04:02 +0100	[thread overview]
Message-ID: <20060111080402.GB599@isilmar.linta.de> (raw)
In-Reply-To: <1136944855.5750.61.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>

Hi,

On Wed, Jan 11, 2006 at 10:00:54AM +0800, Shaohua Li wrote:
> > As the behaviour is so totally different whether CONFIG_PREEMPTION is set or
> > not, I'd suggest the following (untested): add a "schedule()" right after
> > "local_irq_enable()". This will force the same behaviour as
> > CONFIG_PREEMPTION does currently also for the !CONFIG_PREEMTPION case.
> I only do bm check with irq disabled. promotion/demotion calculation is
> done with irq enabled. As I said, idle currently can't be preempted at
> any places.

*panic* -- you're disabling IRQs, checking for bm activity (1), then re-enabling
IRQs (2), then doing some calculations (3), then disabling IRQs (4)again? This calls
for "false negatives", i.e. bus mastering activity being initiated between
(2) and (4), causing faulty transitions afterwards....

> > > It's still not very good. Comments/suggestions are highly appreciated.
> > Take a look at my four patches, please, and all the tricks and tweaks they
> > do ;-)
> Sure, I did look at your patches. They did have many good staffs. As I
> said, Len hopes smooth move, so adding a new module might be better. 

Sure, for the policy changes yes. However, for the staticistics patch (which
was 3/4) the core is the place to go, IMHO...

> > Also, the actual checking for bm_activity should be common code, e.g.
> It's policy specific. Each policy could have its own method to calculate
> bm_activity.

What to do once bm_activity is or was detected, yes. How to determine
whether there is current bus mastering activity, no -- that's core stuff,
not policy stuff.

Thanks,
	Dominik
-
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2006-01-11  8:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-10  4:12 [RFC 2/2] new C-state policy Shaohua Li
     [not found] ` <1136866376.5750.29.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2006-01-10 23:17   ` Dominik Brodowski
     [not found]     ` <20060110231711.GB30356-JwFqNg2GrOVrgjWwlLH9qw@public.gmane.org>
2006-01-11  2:00       ` Shaohua Li
     [not found]         ` <1136944855.5750.61.camel-U5EdaLXB8smDugQYiPIPGdh3ngVCH38I@public.gmane.org>
2006-01-11  8:04           ` Dominik Brodowski [this message]
     [not found]             ` <20060111080402.GB599-JwFqNg2GrOVrgjWwlLH9qw@public.gmane.org>
2006-01-11 11:22               ` Thomas Renninger
     [not found]                 ` <43C4EA5D.9040907-l3A5Bk7waGM@public.gmane.org>
2006-01-11 13:51                   ` Dominik Brodowski
     [not found]                     ` <20060111135113.GA11960-JwFqNg2GrOVrgjWwlLH9qw@public.gmane.org>
2006-01-11 14:19                       ` Thomas Renninger
2006-01-12  2:54               ` Shaohua Li

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=20060111080402.GB599@isilmar.linta.de \
    --to=linux-x3ehhduj6siigcdfoqap7otw4wligrcz@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=trenn-l3A5Bk7waGM@public.gmane.org \
    --cc=venkatesh.pallipadi-ral2JQCrhuEAvxtiuMwx3w@public.gmane.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