http://bugzilla.kernel.org/show_bug.cgi?id=7122
------- Additional Comments From [EMAIL PROTECTED] 2006-09-11 14:35 -------
Rafael,
is it possible to reproduce this failure without a suspend/resume
cycle involved? That may complicate this issue, and it is best
if we can remove any complications.
> if ((resource->references > 1)
> || (resource->state == ACPI_POWER_RESOURCE_STATE_ON)) {
>- ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Resource [%s] already on\n",
>- resource->name));
>+ printk(PREFIX "Resource [%s] already on\n", resource->name);
> return 0;
> }
>
>+ printk(PREFIX "Trying to turn resource [%s] on\n", resource->name);
>+
> status = acpi_evaluate_object(resource->device->handle, "_ON", NULL,
NULL);
>- if (ACPI_FAILURE(status))
>+ if (ACPI_FAILURE(status)) {
>+ printk(KERN_WARNING PREFIX "Unable to turn resource [%s]
on\n",
>+ resource->name);
>+ resource->references--;
> return -ENODEV;
>+ }
Unfortunately this doesn't mean that _ON failed
(_ON doesn't return any status)
it means that acpi_evaluate_object() failed.
Please dump out the bad status value.
One way would be to build with CONFIG_ACPI_DEBUG=y and before the call
to acpi_evaluate_object, enable debug, something like below,
which may show us where the failure is.
int old_layer = acpi_dbg_layer;
int old_level = acpi_dbg_level;
acpi_dbg_layer=0xFFFFFFFF;
acpi_dbg_level=0xFFFFFFFF;
acpi_evaluate_object()...
acpi_dbg_layer = old_layer;
acpi_dbg_level = old_level;
Also, please attach the output from acpidump -- I'd like to see
if there any anything special happening in the _ON and _OFF methods.
re: the logic changes in your patch.
There are all kinds of errors in the dmesg -- it isn't clear
where things first go bad. I'd like to see a dmesg showing the failure
with the additional debug output, but no changes in logic
or error handling from the original kernel.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
acpi-bugzilla mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-bugzilla