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


ykzhao <yakui.z...@intel.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEEDINFO




--- Comment #21 from ykzhao <yakui.z...@intel.com>  2009-06-19 02:33:16 ---
Hi, Henrique
    Sorry for the late response.
    Thanks for pointing the issue. In fact the issue can be fixed by my patch
that the power resource is turned off in the boot phase. And then it is turned
on/off by changing the device state. For example: when we loading the driver
for PCI device, the pci-acpi callback function will be called to turn on/off
the power resource. But the side effect is the power resource is turned off if
the BIOS handled the device already turned ON (with the power source enabled as
well). 
     Can we try to keep the device power original state in the boot phase and
only disable the power resources that are used by any device? That means that
the acpi device will still be in D0 state if it is set to D0 state by BIOS even
when no driver is loaded for the corresponding PCI device/PNP device. In such
case we don't change the state of the power resource related with this ACPI
device.
     How about the following flowchart? (This will be done in the function of
acpi_power_init).
     a. Loading the ACPI bus driver for the power resources, 
     b. get the current power state for every device and set the current device
power state again by calling the function of acpi_bus_set_power. That means
that we will set it to D0 state if the device is in D0-state. This is to build
the relationship between the power resource and ACPI device. (In fact when we
set the device power state, the corresponding power resource will be
enabled/disabled. And the reference count for the power resource will be
updated.)
     c. enumerate the power resource list and disable the power resource that
is not used by any ACPI device.(The reference count is zero)

     Is the above Ok? 
Hi, Henrique
    Do you agree with the above proposal?
     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.

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
acpi-bugzilla mailing list
acpi-bugzilla@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla

Reply via email to