Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Sep 2010 12:04:46 +0300
From:      Alexander Motin <mav@FreeBSD.org>
To:        Andriy Gapon <avg@freebsd.org>
Cc:        freebsd-acpi@freebsd.org
Subject:   Re: CPU C-state storange on Panasonic TOUGH BOOK CF-R9
Message-ID:  <4C8F3AAE.9030001@FreeBSD.org>
In-Reply-To: <4C8F3905.5070403@freebsd.org>
References:  <4C8BCAC5.5050008@root.org>	<mailpost.1284277196.1767764.83548.mailing.freebsd.current@FreeBSD.cs.nctu.edu.tw>	<4C8C8B64.8020907@FreeBSD.org>	<20100912182625.c49d3f1d.nork@FreeBSD.org>	<4C8C9F06.4090505@icyb.net.ua>	<20100912190537.621e357e.nork@FreeBSD.org>	<20100912190952.8c0d5726.nork@FreeBSD.org> <20100912192518.e791c191.nork@FreeBSD.org> <4C8CAC01.70004@icyb.net.ua> <4C8CAD7D.50602@FreeBSD.org> <4C8CF03F.1050902@icyb.net.ua> <4C8CF412.9080601@icyb.net.ua> <4C8CF91A.4040804@FreeBSD.org> <4C8E5A5D.6000303@icyb.net.ua> <4C8F35FD.2090603@freebsd.org> <4C8F3905.5070403@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Andriy Gapon wrote:
> on 14/09/2010 11:44 Andriy Gapon said the following:
>> on 13/09/2010 20:07 Andriy Gapon said the following:
>>> I am also going to take a look how Linux and OpenSolaris name the C-states.
>> Well, Linux does what you suggested, it uses index of a C-state as its name.
>> There is one difference from our current code - if a C-state is skipped for some
>> reason, then its index is not re-used, but the entry is marked as non-valid.
>> So, if we skip "C2" for some reason, then "C3" will become "C2".  Not so on Linux.
>> Also, they print a type/class of a C state using C1, C2, C3 and "--" for
>> higher/unknown types.
> 
> OpenSolaris, on the other hand, collapses multiple entries of the same type into
> a single entry using the most power-saving alternative.

I don't think it is perfect choice. In such case it would be useless for
ACPI BIOS to report extra states. The only case when I think can be
reasonable to drop some items is if they are equal except using
different entry methods. For example, one OS may prefer to use port
read, while another may use MWAIT to be able to wake up without using IPI.

> They also use the type as a C state reported name, index is not used in interfacing.

In their case it is possible.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C8F3AAE.9030001>