Re: Suspend/resume - slow resume

From: Ciprian Docan
Date: Wed Apr 20 2011 - 15:10:52 EST



Hello Francois,

I tried to unload the module, but it crashed. I re-booted the machine and tried to unload the module again. I got the output from dmesg; please see attached.

Regards,
--
Ciprian
[ 7.007361] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 7.007383] r8169 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 7.007454] r8169 0000:02:00.0: setting latency timer to 64
[ 7.007506] r8169 0000:02:00.0: irq 45 for MSI/MSI-X
[ 7.007628] r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xffffc90011810000, 64:31:50:69:2c:61, XID 083000c0 IRQ 45

...

[ 109.216074] r8169 0000:02:00.0: PCI INT A disabled
[ 116.748813] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
[ 166.963998] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
[ 166.964100] r8169 0000:02:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[ 166.964319] r8169 0000:02:00.0: setting latency timer to 64
[ 166.964379] r8169 0000:02:00.0: irq 45 for MSI/MSI-X
[ 166.964593] r8169 0000:02:00.0: eth0: RTL8168d/8111d at 0xffffc90022fc4000, 64:31:50:69:2c:61, XID 083000c0 IRQ 45
[ 174.917306] BUG: unable to handle kernel paging request at fffffffffffffffd
[ 174.919573] IP: [<ffffffff8127b267>] firmware_free_data+0xf/0x55
[ 174.921828] PGD 1605067 PUD 1606067 PMD 0
[ 174.924088] Oops: 0000 [#1] SMP
[ 174.926323] last sysfs file: /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill0/uevent
[ 174.928649] CPU 2
[ 174.928670] Modules linked in: r8169(-) aes_x86_64 aes_generic fuse hidp fbcon tileblit font bitblit softcursor rfcomm bnep acpi_cpufreq mperf ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 ip6table_filter ip6_tables ipv6 snd_hda_codec_hdmi snd_hda_codec_idt snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm arc4 snd_timer snd soundcore ecb btusb processor thermal uvcvideo hp_wmi psmouse fan videodev i2c_i801 sparse_keymap snd_page_alloc pcspkr brcmsmac(C) hp_accel iTCO_wdt mac80211 iTCO_vendor_support bluetooth lis3lv02d mii input_polldev serio_raw wmi v4l2_compat_ioctl32 cfg80211 rfkill microcode i915 drm_kms_helper drm fb fbdev intel_agp i2c_algo_bit cfbcopyarea intel_gtt agpgart i2c_core video cfbimgblt cfbfillrect [last unloaded: r8169]
[ 174.944284]
[ 174.946871] Pid: 2003, comm: rmmod Tainted: G C 2.6.39-rc3+ #13 Hewlett-Packard HP Pavilion dm4 Notebook PC /1603
[ 174.949618] RIP: 0010:[<ffffffff8127b267>] [<ffffffff8127b267>] firmware_free_data+0xf/0x55
[ 174.952348] RSP: 0018:ffff88023ad45d48 EFLAGS: 00010246
[ 174.954988] RAX: ffffffff815be000 RBX: fffffffffffffff5 RCX: ffff88024b1c0398
[ 174.957707] RDX: 0000000000000000 RSI: 0000000000000037 RDI: fffffffffffffff5
[ 174.960417] RBP: ffff88023ad45d58 R08: 0000000000000100 R09: ffffffff8172f690
[ 174.963039] R10: 000000000000000f R11: ffff88024b1c0000 R12: ffff88024f790000
[ 174.965662] R13: ffff88024b1c0000 R14: ffff88024f790090 R15: 0000000000000001
[ 174.968194] FS: 00007faaa8774720(0000) GS:ffff88025bc80000(0000) knlGS:0000000000000000
[ 174.970806] CS: 0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 174.973388] CR2: fffffffffffffffd CR3: 000000024b828000 CR4: 00000000000006e0
[ 174.973392] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 174.973396] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[ 174.973400] Process rmmod (pid: 2003, threadinfo ffff88023ad44000, task ffff88023adb8000)
[ 174.973403] Stack:
[ 174.973405] fffffffffffffff5 ffff88024f790000 ffff88023ad45d78 ffffffff8127b2f6
[ 174.973410] ffff88023ad45d78 ffff88024b1c0740 ffff88023ad45db8 ffffffffa046e21e
[ 174.973415] ffff88024f7900f0 ffff88024f790090 ffffffffa0470030 ffff88024f790000
[ 174.973420] Call Trace:
[ 174.973427] [<ffffffff8127b2f6>] release_firmware+0x49/0x4f
[ 174.973437] [<ffffffffa046e21e>] rtl8169_remove_one+0x8f/0x118 [r8169]
[ 174.973446] [<ffffffff8120435c>] pci_device_remove+0x3f/0x91
[ 174.973453] [<ffffffff8127209c>] __device_release_driver+0x83/0xd9
[ 174.973458] [<ffffffff8127278c>] driver_detach+0x86/0xae
[ 174.973464] [<ffffffff81271f4e>] bus_remove_driver+0xb9/0xdf
[ 174.973469] [<ffffffff81272af7>] driver_unregister+0x6c/0x74
[ 174.973474] [<ffffffff8120463a>] pci_unregister_driver+0x44/0x89
[ 174.973482] [<ffffffffa046e2bc>] rtl8169_cleanup_module+0x15/0x17 [r8169]
[ 174.973491] [<ffffffff8106e474>] sys_delete_module+0x1ca/0x23b
[ 174.973498] [<ffffffff81109445>] ? path_put+0x22/0x27
[ 174.973505] [<ffffffff813d43eb>] system_call_fastpath+0x16/0x1b
[ 174.973508] Code: c4 18 5b 41 5c 41 5d 41 5e 41 5f c9 c3 4c 89 e7 e8 4d 8d e7 ff b8 f2 ff ff ff eb e2 55 48 89 e5 41 54 53 0f 1f 44 00 00 48 89 fb
[ 174.973529] 8b 7f 08 e8 e5 79 e6 ff 48 83 7b 10 00 74 31 45 31 e4 eb 0e
[ 174.973539] RIP [<ffffffff8127b267>] firmware_free_data+0xf/0x55
[ 174.973545] RSP <ffff88023ad45d48>
[ 174.973547] CR2: fffffffffffffffd
[ 174.973551] ---[ end trace 4aa4e169865c5c0c ]---
[ 174.973557] BUG: sleeping function called from invalid context at kernel/rwsem.c:21
[ 174.973561] in_atomic(): 0, irqs_disabled(): 1, pid: 2003, name: rmmod
[ 174.973565] Pid: 2003, comm: rmmod Tainted: G D C 2.6.39-rc3+ #13
[ 174.973569] Call Trace:
[ 174.973576] [<ffffffff8102dd7b>] __might_sleep+0xeb/0xf0
[ 174.973583] [<ffffffff813cd632>] down_read+0x24/0x3b
[ 174.973589] [<ffffffff810768f9>] acct_collect+0x4d/0x181
[ 174.973595] [<ffffffff81041ccd>] do_exit+0x22d/0x70a
[ 174.973600] [<ffffffff813cde9a>] ? _raw_spin_lock_irqsave+0x12/0x2f
[ 174.973605] [<ffffffff8103fc36>] ? kmsg_dump+0x49/0xdb
[ 174.973610] [<ffffffff813ceeea>] oops_end+0xb7/0xbf
[ 174.973616] [<ffffffff81022b3b>] no_context+0x1f9/0x208
[ 174.973620] [<ffffffff813cc815>] ? schedule+0x664/0x67e
[ 174.973626] [<ffffffff81022cd2>] __bad_area_nosemaphore+0x188/0x1ab
[ 174.973631] [<ffffffff81022d08>] bad_area_nosemaphore+0x13/0x15
[ 174.973636] [<ffffffff813d0d9d>] do_page_fault+0x16f/0x342
[ 174.973643] [<ffffffff8101c67b>] ? flat_send_IPI_allbutself+0x73/0x7e
[ 174.973649] [<ffffffff81018300>] ? native_send_call_func_ipi+0x76/0x96
[ 174.973655] [<ffffffff8106b119>] ? smp_call_function_many+0x1de/0x1ed
[ 174.973661] [<ffffffff813ce49f>] page_fault+0x1f/0x30
[ 174.973667] [<ffffffff8127b267>] ? firmware_free_data+0xf/0x55
[ 174.973672] [<ffffffff8127b2f6>] release_firmware+0x49/0x4f
[ 174.973679] [<ffffffffa046e21e>] rtl8169_remove_one+0x8f/0x118 [r8169]
[ 174.973685] [<ffffffff8120435c>] pci_device_remove+0x3f/0x91
[ 174.973691] [<ffffffff8127209c>] __device_release_driver+0x83/0xd9
[ 174.973696] [<ffffffff8127278c>] driver_detach+0x86/0xae
[ 174.973701] [<ffffffff81271f4e>] bus_remove_driver+0xb9/0xdf
[ 174.973706] [<ffffffff81272af7>] driver_unregister+0x6c/0x74
[ 174.973711] [<ffffffff8120463a>] pci_unregister_driver+0x44/0x89
[ 174.973719] [<ffffffffa046e2bc>] rtl8169_cleanup_module+0x15/0x17 [r8169]
[ 174.973724] [<ffffffff8106e474>] sys_delete_module+0x1ca/0x23b
[ 174.973729] [<ffffffff81109445>] ? path_put+0x22/0x27
[ 174.973735] [<ffffffff813d43eb>] system_call_fastpath+0x16/0x1b