From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonas Jelten Subject: Re: HID: wacom: regression - system freezes when resuming from S3 suspend Date: Fri, 10 Oct 2014 03:27:49 +0200 Message-ID: <54373615.6010102@in.tum.de> References: <542039C1.1000605@in.tum.de> <54221EFF.2060501@in.tum.de> <54235FB9.5040706@in.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from mail-out1.informatik.tu-muenchen.de ([131.159.0.8]:62422 "EHLO smtp1.informatik.tu-muenchen.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751015AbaJJB1w (ORCPT ); Thu, 9 Oct 2014 21:27:52 -0400 In-Reply-To: Sender: linux-input-owner@vger.kernel.org List-Id: linux-input@vger.kernel.org To: Jiri Kosina Cc: Benjamin Tissoires , linux-input On 2014-09-25 02:24, Jiri Kosina wrote: > On Thu, 25 Sep 2014, Jonas Jelten wrote: > >> I have no idea about the reasons yet, however my kernel indeed panics 10 >> seconds after resume from S3. During the 10 seconds, the on-suspend X >> screen is visible, but frozen (no mouse/keyboard input) and no sysrqs >> are possible. After the 10s passed, I see old tty1 framebuffer parts >> from the init system log, the kernel seems to have paniced as the >> capslock led starts blinking, but I can't see any backtrace. > > Is there any way you could setup serial console or at least netconsole on > that system? > >> I could not test whether "HID: wacom: fix timeout on probe for some >> wacoms" fixes the panic, as it does not apply for 3.17-rc6. > > Just compiling for-3.18/wacom branch of > > git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git > > should be enough. > > I still fail to see how this would be fixing any panic, so either there is > a very strange race condition somewhere, or this is a different problem > that still needs to be solved. > > Thanks, > Hi! Now running 3.17.0, I managed to get a backtrace via netconsole: [ 1077.286152] PM: Syncing filesystems ... done. [ 1077.286888] PM: Preparing system for mem sleep [ 1077.503113] Freezing user space processes ... (elapsed 0.001 seconds) done. [ 1077.504368] Freezing remaining freezable tasks ... (elapsed 0.000 seconds) done. [ 1077.505359] PM: Entering mem sleep [ 1077.705575] sd 0:0:0:0: [sda] Synchronizing SCSI cache [ 1077.705695] sd 0:0:0:0: [sda] Stopping disk [ 1077.806294] e1000e: EEE TX LPI TIMER: 00000011 [ 1093.625038] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx [ 1100.434376] usb 2-1.5: **** DPM device timeout **** [ 1100.435410] ffff8801fc20f9d8 0000000000000002 ffff8801fc20ffd8 ffff8801fc210000 [ 1100.436468] 0000000000014240 ffffffff81a1a440 ffff8801fc210000 ffffffffa0043022 [ 1100.437521] ffff880100000000 ffff8801fc20f928 ffff8801fc20f998 0000000000000000 [ 1100.438521] Call Trace: [ 1100.439512] [] ? _raw_spin_unlock_irqrestore+0x20/0x33 [ 1100.440516] [] ? ehci_urb_enqueue+0x119/0xbf8 [ehci_hcd] [ 1100.441522] [] ? debug_smp_processor_id+0x17/0x19 [ 1100.442590] [] ? wake_up_nohz_cpu+0x28/0x8f [ 1100.443601] [] schedule+0x6e/0x70 [ 1100.444611] [] schedule_timeout+0x15a/0x1c2 [ 1100.445616] [] ? ftrace_raw_event_tick_stop+0xa8/0xa8 [ 1100.446627] [] wait_for_common+0x111/0x151 [ 1100.447643] [] ? wake_up_process+0x37/0x37 [ 1100.448658] [] wait_for_completion_timeout+0x13/0x15 [ 1100.449682] [] usb_start_wait_urb+0x84/0xce [usbcore] [ 1100.450708] [] usb_control_msg+0xc8/0xff [usbcore] [ 1100.451728] [] usbhid_raw_request+0x137/0x154 [usbhid] [ 1100.452746] [] wacom_set_report.constprop.17+0x53/0x73 [wacom] [ 1100.453775] [] wacom_query_tablet_data+0x8f/0x23a [wacom] [ 1100.454796] [] wacom_resume+0x36/0x4f [wacom] [ 1100.455876] [] wacom_reset_resume+0xe/0x10 [wacom] [ 1100.456888] [] hid_reset_resume+0x4c/0x58 [usbhid] [ 1100.457902] [] usb_resume_interface.isra.6+0x71/0xc6 [usbcore] [ 1100.458921] [] usb_resume_both+0xd6/0x106 [usbcore] [ 1100.459937] [] ? usb_dev_thaw+0x15/0x15 [usbcore] [ 1100.460956] [] usb_resume+0x1b/0x64 [usbcore] [ 1100.461973] [] ? usb_dev_thaw+0x15/0x15 [usbcore] [ 1100.462983] [] usb_dev_resume+0x13/0x15 [usbcore] [ 1100.463983] [] dpm_run_callback+0x48/0x106 [ 1100.464976] [] device_resume+0x16b/0x1a6 [ 1100.465971] [] ? __suspend_report_result+0x25/0x25 [ 1100.466962] [] async_resume+0x1d/0x43 [ 1100.467946] [] async_run_entry_fn+0x5f/0x115 [ 1100.468923] [] process_one_work+0x1bf/0x35d [ 1100.469903] [] worker_thread+0x28e/0x382 [ 1100.470872] [] ? rescuer_thread+0x226/0x226 [ 1100.471834] [] kthread+0xd2/0xda [ 1100.472793] [] ? kthread_create_on_node+0x16f/0x16f [ 1100.473757] [] ret_from_fork+0x7c/0xb0 [ 1100.474725] [] ? kthread_create_on_node+0x16f/0x16f [ 1100.475697] Kernel panic - not syncing: usb 2-1.5: unrecoverable failure [ 1100.475697] [ 1100.477626] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G R 3.17.0-JJ+ #71 [ 1100.478608] Hardware name: LENOVO 4296CTO/4296CTO, BIOS 8DET67WW (1.37 ) 12/05/2012 [ 1100.479596] 0000000000000000 ffff88021e283e00 ffffffff8153c8c8 ffffffff8183ab5c [ 1100.480673] ffff88021e283e78 ffffffff8153954d ffffffff00000018 ffff88021e283e88 [ 1100.481686] ffff88021e283e28 ffff88021e27ffc0 ffffffffa003b4a5 ffff8800d45ec810 [ 1100.482684] Call Trace: [ 1100.483655] [] dump_stack+0x4e/0x7a [ 1100.484639] [] panic+0xcb/0x1f4 [ 1100.485622] [] ? __suspend_report_result+0x25/0x25 [ 1100.486597] [] dpm_watchdog_handler+0x52/0x52 [ 1100.487567] [] call_timer_fn+0x46/0x124 [ 1100.488529] [] ? __suspend_report_result+0x25/0x25 [ 1100.489496] [] run_timer_softirq+0x215/0x280 [ 1100.490457] [] ? clockevents_program_event+0x9d/0xb9 [ 1100.491423] [] __do_softirq+0xf4/0x27d [ 1100.492389] [] irq_exit+0x43/0x89 [ 1100.493353] [] smp_apic_timer_interrupt+0x44/0x50 [ 1100.494318] [] apic_timer_interrupt+0x6d/0x80 [ 1100.495287] [] ? cpuidle_enter_state+0x8b/0x16b [ 1100.496264] [] cpuidle_enter+0x17/0x19 [ 1100.497236] [] cpu_startup_entry+0x1b6/0x2f0 [ 1100.498212] [] start_secondary+0x1ad/0x1b2 [ 1100.499205] Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffff9fffffff) [ 1100.500254] drm_kms_helper: panic occurred, switching back to text console This looks like the kernel is failing to bring up the wacom usb device after the suspend. Probably this is something for linux-kernel@? Cheers, Jonas