http://bugzilla.kernel.org/show_bug.cgi?id=12748





--- Comment #18 from ykzhao <yakui.z...@intel.com>  2009-05-06 02:57:00 ---
Thanks for the response.
   Maybe what you said sounds reasonable. But how can we check whether the ACPI
power resource is used? By traversing the power resource list? 
   In fact before we don't set the device state(D0/D3), we can't build the
relationship between device and power resource. In such case we can't know
which device will refer the power resource.

   According to the spec the power resource can be shared by multiple devices.
When the device is in D0 state, the corresponding power resource *should" be in
ON state. If all the devices using power resource are already in D3 state, the
power resource won't be referred. In such case it should be put into OFF state.

   If we don't load the device driver for one device, can we consider that the
power resource is not required by the this? which state can be regarded as the
correct state? D0 or D3?
   If the D0 is considered as the correct state, the power resource should be
in ON state. 
   If the D3 is considered as the correct state, the power resource is not
required by the device. In such case the power resource had better in OFF
state.

   Now for the ACPI fan device. It will be checked whether it should be turned
on/off. If it should be turned off, the power resource referred by the fan
device will be put in OFF state. 

   For the PCI device: When the PCI device is enabled, the
acpi_pci_set_power_state hook function will be called. And the power resource
is required, it will be put in ON state. When the PCI device is disabled, it
will derefer the power resource. When there is no reference for the power
resource, it will be put in OFF state.(This is done by the last device that
using power resource).

   Maybe I don't understand the meaning of this bug. This purpose of this bug
is that the acpi power resource should be disabled when "unused". But it is not
clear how the acpi power resource is not used. That is to say, which case can
be regarded that the power resource is not used. 
   Thanks.

-- 
Configure bugmail: http://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to