public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* RE: ACPI C4 support
@ 2004-03-01 21:26 Grover, Andrew
       [not found] ` <F760B14C9561B941B89469F59BA3A8470255F035-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Grover, Andrew @ 2004-03-01 21:26 UTC (permalink / raw)
  To: Pavel Machek
  Cc: Stefan Behlert, Bruno Ducrot, ACPI mailing list,
	trenn-l3A5Bk7waGM, Brown, Len

> From: Pavel Machek [mailto:pavel-AlSwsSmVLrQ@public.gmane.org] 
> If there is old BIOS guide telling them to use length of 7, could we
> make Linux accept that? Its likely a lot of developers have read
> that...
> 
> Allowing length of 7 is one line change; if we do it, such notebooks
> will be able to use C1..C3, but not C4. That does not seem too bad...

I would favor being a little more demanding before adding a hack. This
could be EASILY fixed by a BIOS update, now that the BIOS developer
knows it is wrong. If this is a common BIOS error then maybe that
changes things.

BTW, hey wasn't someone going to implement _CST support? FreeBSD already
has this, we're behind*! ;-)

Regards -- Andy

* not that any systems use it yet, but it's coming


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread
* RE: ACPI C4 support
@ 2004-03-01 19:03 Grover, Andrew
       [not found] ` <F760B14C9561B941B89469F59BA3A84702C932FD-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Grover, Andrew @ 2004-03-01 19:03 UTC (permalink / raw)
  To: Stefan Behlert, Bruno Ducrot
  Cc: Pavel Machek, ACPI mailing list, trenn-l3A5Bk7waGM, Brown, Len

> [mailto:acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of 
> Stefan Behlert
> > No.  pblk_length is 0 or 6.  Not 5 nor 7 ;)
> 
> Sorry, I don't understand: We've a Laptop with a DSDT with
>   Processor (\_PR.CPU0, 0x01, 0x00001010, 0x07)
> in it.
> Comment from the responsible BIOS-team:
> "Our processor block object is 7 bytes in length because we 
> also support
>  C4 (P_LVL4) which is at <P_BLK>+6.  Therefore, the 
> size/length must be
>  reported as 7 and not 6."
> 
> Is the '7' the BIOS-developer mentioned the same '7' as 
> mentioned by you?

This is wrong.

There is confusion here because what older systems do on C3 is different
from what more recent systems do on C3, at the electrical level. I know
at least internally the improved C3-like state was called "C4" but to
the OS it just looks just like C3, and the value for C4 should go in
P_LVL3. P_BLK length should remain 6.

The only way to get more than C1, C2, and C3 is via the _CST object.

Please tell the BIOS developer this. I have an old BIOS developers guide
version that agrees with them but I just asked the experts internally
and they said no.

Thanks -- Regards -- Andy


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id\x1356&alloc_id438&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread
* ACPI C4 support
@ 2004-02-28 16:10 Pavel Machek
       [not found] ` <20040228161011.GA10448-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Pavel Machek @ 2004-02-28 16:10 UTC (permalink / raw)
  To: ACPI mailing list
  Cc: trenn-l3A5Bk7waGM, behlert-l3A5Bk7waGM,
	len.brown-ral2JQCrhuEAvxtiuMwx3w

Hi!

Thomas told me:

>what about C4 - Cn states in the kernel implementation?
>A short look into the /proc/acpi/processor/.../power file let me think
>that only C0-C3 is supported by the kernel, even specification talks
>about Cn states?

As a first step, it would be nice if kernel at least used C0..C3 if
the machine supports them... This should do the trick. Does it look
okay?

								Pavel

--- tmp/linux/drivers/acpi/processor.c	2004-02-20 12:29:21.000000000 +0100
+++ linux/drivers/acpi/processor.c	2004-02-28 15:30:52.000000000 +0100
@@ -2205,7 +2202,8 @@
 
 	if (!object.processor.pblk_address)
 		ACPI_DEBUG_PRINT((ACPI_DB_INFO, "No PBLK (NULL address)\n"));
-	else if (object.processor.pblk_length != 6)
+	else if (object.processor.pblk_length < 6)
+		/* pblk_length of 7 is okay if cpu supports C4 */
 		ACPI_DEBUG_PRINT((ACPI_DB_ERROR, "Invalid PBLK length [%d]\n",
 			object.processor.pblk_length));
 	else {




-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2004-03-02 22:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-01 21:26 ACPI C4 support Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A8470255F035-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2004-03-02  9:52   ` Bruno Ducrot
  -- strict thread matches above, loose matches on Subject: below --
2004-03-01 19:03 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A84702C932FD-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2004-03-01 19:16   ` Pavel Machek
2004-03-01 19:27   ` Pavel Machek
     [not found]     ` <20040301192738.GA9459-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-03-01 19:39       ` Bruno Ducrot
     [not found]         ` <20040301193917.GA2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-02 22:22           ` Stefan Seyfried
2004-02-28 16:10 Pavel Machek
     [not found] ` <20040228161011.GA10448-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2004-03-01 15:28   ` Bruno Ducrot
     [not found]     ` <20040301152810.GT2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-01 18:09       ` Stefan Behlert
     [not found]         ` <20040301180958.GI2624-l3A5Bk7waGM@public.gmane.org>
2004-03-01 19:48           ` Bruno Ducrot
     [not found]             ` <20040301194825.GB2869-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2004-03-02 10:17               ` Stefan Behlert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox