public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Janosch Machowinski <scotch-cGBD8117FJM@public.gmane.org>
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: _CST implementation
Date: Fri, 15 Apr 2005 22:50:44 +0200	[thread overview]
Message-ID: <1113598244.8367.30.camel@scotchmobil> (raw)

Hey, 
im new to ACPI, so please be patient with my stupid questions ;-)
I spend a little time in debugging my kernel ACPI and reading the 3.0
specs... Now I am wondering about some pieces of the implementation. 
First of all in processor_idle.c in the funktion
acpi_processor_get_power_info_cst there is a test if the power.count is
less than 2. Why do you test on 2 and not on 1 ? As far 
as I can see 1 would be an valid value. 

The next question is about these lines : 
for (i = 0; i < ACPI_PROCESSOR_MAX_POWER; i++)
	memset(pr->power.states, 0, sizeof(struct acpi_processor_cx));
what's the sense in doing this up to 8 times ? 
shouldn't it be
for (i = 0; i < ACPI_PROCESSOR_MAX_POWER; i++)
       memset(pr->power.states[i], 0, sizeof(struct acpi_processor_cx));
?

The next question is about the ACPI_PROCESSOR_MAX_POWER constant.
The ACPI specification says, that the C states can be expanded "to an
arbitary number of power states" so why do you limit them ? 

And another one about these lines :
cx.address = (reg->space_id == ACPI_ADR_SPACE_FIXED_HARDWARE) ?
			0 : reg->address;
Why is the adress set to 0 in case it is a fixed hardware adress ? 
And why can only C1 have an fixed hardware adress ?

Okay the last thing I am curious about is how should _CST work, 
at the moment the code deletes all known power states (or tries it)
(hm by the way, this could be the reason why the IBM t40 crashes)
and writes all power states given by the _CST object to the
acpi_processor structure. Is this the way it is mentioned to be ? 
I couldn't figure out (of the ACPI Spec), if there could also be a way
of incremental generation of the C states. 

Oh I almost forgot another question : 
About the validation of the C states. At the moment it is tested if the
latency of C2 if under 100 and if C3 latency is under 1000 but the
ACPI-Spec says that "There is no latency restrictions" so why do you do
this ? (My notebook hat a C3 latency of 1001)

Greets
	Janosch Machowinski

P.S.: Sorry about my bad english



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

             reply	other threads:[~2005-04-15 20:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-15 20:50 Janosch Machowinski [this message]
2005-04-18 12:07 ` _CST implementation Bruno Ducrot
     [not found]   ` <20050418120744.GG2298-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-04-18 12:23     ` Janosch Machowinski
2005-04-18 14:21       ` Bruno Ducrot
2005-04-18 17:25     ` Thomas Renninger
     [not found]       ` <4263EDA2.4030106-l3A5Bk7waGM@public.gmane.org>
2005-04-18 17:52         ` Janosch Machowinski
2005-04-19  9:22         ` Bruno Ducrot
     [not found]           ` <20050419092251.GK2298-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-04-19 11:58             ` Thomas Renninger
     [not found]               ` <4264F251.5030705-l3A5Bk7waGM@public.gmane.org>
2005-04-19 13:45                 ` Bruno Ducrot
     [not found]                   ` <20050419134518.GL2298-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-04-19 20:05                     ` Stefan Seyfried
     [not found]                       ` <20050419200505.GE19499-l0tNAEGuAhhzZ8+rp42Dbp9+tswZ0GTaehPwdyo5hKaELgA04lAiVw@public.gmane.org>
2005-04-19 20:11                         ` Rich Townsend
     [not found]                           ` <42656601.3060304-OBnUx95tOyn10jlvfTC4gA@public.gmane.org>
2005-04-20  9:45                             ` Bruno Ducrot
     [not found]                               ` <20050420094556.GN2298-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2005-04-22 13:00                                 ` Thomas Renninger
     [not found]                                   ` <4268F572.4090707-l3A5Bk7waGM@public.gmane.org>
2005-04-22 17:13                                     ` Janosch Machowinski

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=1113598244.8367.30.camel@scotchmobil \
    --to=scotch-cgbd8117fjm@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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