From: Maxim Levitsky Subject: Re: [linux-pm] ACPI/ACPICA: resume hang (battery related) Date: Fri, 20 Nov 2009 00:37:57 +0200 Message-ID: <1258670277.27524.4.camel@maxim-laptop> References: <1258664394.3611.8.camel@maxim-laptop> <200911192255.45447.rjw@sisk.pl> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-bw0-f227.google.com ([209.85.218.227]:40182 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755317AbZKSWh5 (ORCPT ); Thu, 19 Nov 2009 17:37:57 -0500 Received: by bwz27 with SMTP id 27so2920556bwz.21 for ; Thu, 19 Nov 2009 14:38:02 -0800 (PST) In-Reply-To: <200911192255.45447.rjw@sisk.pl> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: linux-pm@lists.linux-foundation.org, "linux-acpi@vger.kernel.org" On Thu, 2009-11-19 at 22:55 +0100, Rafael J. Wysocki wrote: > On Thursday 19 November 2009, Maxim Levitsky wrote: > > Hi, > > > > I have set up a script that cycles my system through hibernation, > > because I am tired of 90% of time working suspend to disk. > > I also set up the kernel to log directly into video memory which happens > > to be preserved during reboots. > > > > One bug is already fixed (I posted about it on linux-wireless) > > > > Here is another bug: > > > > <3>[ 360.670152] INFO: task tee:3466 blocked for more than 120 seconds. > > <3>[ 360.670469] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. > > <6>[ 360.670859] tee D 0000000000000000 0 3466 3320 0x00000000 > > <3>[ 360.671386] BUG: using smp_processor_id() in preemptible [00000000] code: khungtaskd/354 > > <4>[ 360.671783] caller is show_stack_log_lvl+0x32/0x170 > > <4>[ 360.672053] Pid: 354, comm: khungtaskd Not tainted 2.6.32-rc7-wl #192 > > <4>[ 360.672373] Call Trace: > > <4>[ 360.672554] [] debug_smp_processor_id+0xcb/0xe0 > > <4>[ 360.672869] [] show_stack_log_lvl+0x32/0x170 > > <4>[ 360.673172] [] ? printk+0x3c/0x3f > > <4>[ 360.673440] [] show_stack+0x17/0x20 > > <4>[ 360.673705] [] sched_show_task+0x92/0x100 > > <4>[ 360.673991] [] watchdog+0x27d/0x2e0 > > <4>[ 360.674253] [] ? watchdog+0x6d/0x2e0 > > <4>[ 360.674527] [] ? watchdog+0x0/0x2e0 > > <4>[ 360.674792] [] kthread+0x8e/0xa0 > > <4>[ 360.675047] [] child_rip+0xa/0x20 > > <4>[ 360.675309] [] ? restore_args+0x0/0x30 > > <4>[ 360.675582] [] ? kthread+0x0/0xa0 > > <4>[ 360.675840] [] ? child_rip+0x0/0x20 > > <4>[ 360.676100] ffff88007de137b8 0000000000000046 0000000000000000 0000000000000002 > > <4>[ 360.676725] ffff88007de137f8 0000000000000000 ffff880002213c18 0000000000000002 > > <4>[ 360.677353] ffff88000220efc8 00000000ffffcae7 ffff88007e6402b8 ffff88007de13fd8 > > <4>[ 360.677987] Call Trace: > > <4>[ 360.678159] [] schedule_timeout+0x205/0x270 > > <4>[ 360.678458] [] ? mark_held_locks+0x6b/0xa0 > > <4>[ 360.678742] [] ? _spin_unlock_irq+0x2b/0x60 > > <4>[ 360.679030] [] ? trace_hardirqs_on_caller+0x145/0x190 > > <4>[ 360.679348] [] __down_timeout+0x6d/0xb0 > > <4>[ 360.679632] [] ? down_timeout+0x1f/0x60 > > <4>[ 360.679908] [] down_timeout+0x58/0x60 > > <4>[ 360.680229] [] acpi_os_wait_semaphore+0x49/0x57 > > <4>[ 360.680545] [] acpi_ex_system_wait_semaphore+0x3c/0x4f > > <4>[ 360.680875] [] acpi_ev_acquire_global_lock+0xbf/0xc3 > > <4>[ 360.681190] [] acpi_ex_acquire_mutex_object+0x39/0x63 > > <4>[ 360.681513] [] acpi_ex_acquire_global_lock+0x24/0x46 > > <4>[ 360.681828] [] acpi_ex_read_data_from_field+0x121/0x16f > > <4>[ 360.682154] [] ? trace_hardirqs_on+0xd/0x10 > > <4>[ 360.682444] [] acpi_ex_resolve_node_to_value+0x18c/0x218 > > <4>[ 360.682780] [] acpi_ex_resolve_to_value+0x203/0x20c > > <4>[ 360.683104] [] acpi_ds_evaluate_name_path+0x79/0xf5 > > <4>[ 360.683438] [] acpi_ds_exec_end_op+0x96/0x3d6 > > <4>[ 360.683732] [] acpi_ps_parse_loop+0x7bb/0x940 > > <4>[ 360.684026] [] acpi_ps_parse_aml+0x9a/0x2d9 > > <4>[ 360.684314] [] acpi_ps_execute_method+0x1e4/0x2b6 > > <4>[ 360.684625] [] acpi_ns_evaluate+0xe1/0x1a8 > > <4>[ 360.684909] [] acpi_evaluate_object+0x13d/0x236 > > <4>[ 360.685211] [] acpi_evaluate_integer+0x2f/0x4d > > <4>[ 360.685509] [] ? mark_held_locks+0x6b/0xa0 > > <4>[ 360.685794] [] acpi_bus_get_status_handle+0x1d/0x33 > > <4>[ 360.686106] [] acpi_bus_get_status+0x19/0x34 > > <4>[ 360.686400] [] acpi_battery_update+0x1e/0x24d > > <4>[ 360.686693] [] ? trace_hardirqs_on+0xd/0x10 > > <4>[ 360.686980] [] ? _spin_unlock_irqrestore+0x3d/0x80 > > <4>[ 360.687289] [] acpi_battery_resume+0x25/0x29 > > <4>[ 360.687578] [] acpi_device_resume+0x25/0x2b > > <4>[ 360.687867] [] dpm_resume_end+0x4aa/0x500 > > <4>[ 360.688152] [] hibernation_snapshot+0xc9/0x280 > > <4>[ 360.688449] [] hibernate+0xed/0x1f0 > > <4>[ 360.688712] [] state_store+0xec/0x100 > > <4>[ 360.688985] [] kobj_attr_store+0x17/0x20 > > <4>[ 360.689266] [] sysfs_write_file+0xd4/0x150 > > <4>[ 360.689555] [] vfs_write+0xb8/0x1a0 > > <4>[ 360.689819] [] sys_write+0x4c/0x80 > > <4>[ 360.690117] [] system_call_fastpath+0x16/0x1b > > <4>[ 360.690431] 2 locks held by tee/3466: > > > > > > I attach the dmesg (copied from video ram) too. > > and acpidump output. > > Is this a regression and if so, which is the last known working kernel? It might be, as I remember that few kernel versions ago, s2disk used to work reliably. However I say 'few' because I didn't do such thoughtful test. This problem shows very rarely, and thus bisect is unfeasible. BTW, sorry about duplicate mail, this was technical problem with internet connection. > > Rafael > -- > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html