linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* oops on rmmod of rtl8192ce
@ 2012-03-19  8:25 Dave Airlie
  2012-04-09 15:02 ` Dave Airlie
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Airlie @ 2012-03-19  8:25 UTC (permalink / raw)
  To: Larry Finger; +Cc: LKML, Linux Wireless List

Every so often on resume my rtl8192ce stops working, it can see APs
but won't attach to any of them,

I see 3 probes, then a direct probe timeout message. If I s/r a few
times sometimes it comes back. This time I tried to rmmod rtl8192ce
and got a nice oops.

Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Oops: 0000 [#1] SMP
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CPU 1
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Modules linked in:
tcp_lp fuse ppdev ebtable_nat parport_pc ebtables lp parport
ipt_MASQUERADE iptable_nat nf_nat xt_CHECKSUM iptable_mangle bridge
stp llc lockd be2iscsi iscsi_boot_sysfs bnx2i cnic uio cxgb4i cxgb4
cxgb3i libcxgbi cxgb3 mdio ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad
ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi
rfcomm bnep ip6t_REJECT nf_conntrack_ipv4 nf_conntrack_ipv6
nf_defrag_ipv4 nf_defrag_ipv6 xt_state ip6table_filter ip6_tables
nf_conntrack vfat fat snd_hda_codec_conexant btusb bluetooth
snd_hda_codec_hdmi arc4 snd_hda_intel snd_hda_codec rtl8192ce(-)
snd_hwdep snd_seq snd_seq_device rtl8192c_common snd_pcm thinkpad_acpi
snd_timer uvcvideo snd vhost_net r8169 macvtap macvlan tun rtlwifi
mac80211 sp5100_tco virtio_net mii i2c_piix4 cfg80211 rfkill kvm_amd
videodev k10temp soundcore joydev serio_raw snd_page_alloc kvm media
v4l2_compat_ioctl32 sunrpc uinput binfmt_misc ums_realtek usb_storage
video radeon ttm drm_kms_helpe
Mar 19 08:14:35 kvothe kernel: r drm i2c_algo_bit i2c_core [last
unloaded: scsi_wait_scan]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Pid: 19627, comm: rmmod
Not tainted 3.2.9-2.fc16.x86_64 #1 LENOVO 05962RU/05962RU
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RIP:
0010:[<ffffffffa0418d39>]  [<ffffffffa0418d39>]
rtl92ce_get_desc+0x19/0xd0 [rtl8192ce]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RSP:
0018:ffff880050263b58  EFLAGS: 00010046
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RAX: ffffffffa041c2a0
RBX: 0000000000000000 RCX: 0000000000000000
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RDX: 0000000000000000
RSI: 0000000000000000 RDI: 00000000000006e0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RBP: ffff880050263b68
R08: ffff8801182bde00 R09: ffff88011a4000a0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] R10: fffffffcfffffff0
R11: fffffffcfffffff0 R12: ffff8800b00ee400
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] R13: 00000000000006e0
R14: 0000000000000037 R15: 0000000000000037
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] FS:
00007fe794c31700(0000) GS:ffff88011ed00000(0000)
knlGS:0000000000000000
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CS:  0010 DS: 0000 ES:
0000 CR0: 000000008005003b
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CR2: 00000000000006e0
CR3: 00000000c4c18000 CR4: 00000000000006e0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] DR0: 0000000000000000
DR1: 0000000000000000 DR2: 0000000000000000
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] DR3: 0000000000000000
DR6: 00000000ffff0ff0 DR7: 0000000000000400
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Process rmmod (pid:
19627, threadinfo ffff880050262000, task ffff8801156d5cc0)
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Stack:
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  0000000000000002
ffff8801176c2540 ffff880050263ca8 ffffffffa03348e7
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  0000000000000282
0000000180150014 ffff880050263fd8 ffff8801176c2810
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  ffff880050263bc8
ffffffff810550e2 00000000000002c0 ffff8801176c0d40
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Call Trace:
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa03348e7>]
_rtl_pci_rx_interrupt+0x187/0x650 [rtlwifi]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff810550e2>] ?
complete+0x52/0x60
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa0335e69>]
_rtl_pci_interrupt+0x409/0x930 [rtlwifi]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff810df45d>]
__free_irq+0x17d/0x220
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa0335656>]
rtl_pci_disconnect+0x176/0x1a0 [rtlwifi]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff812df2b6>]
pci_device_remove+0x46/0x110
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff813954cc>]
__device_release_driver+0x7c/0xe0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff81395da8>]
driver_detach+0xb8/0xc0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff8139530a>]
bus_remove_driver+0x8a/0x100
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff81396562>]
driver_unregister+0x62/0xa0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff812de164>]
pci_unregister_driver+0x44/0xa0
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa0418e5c>]
rtl92ce_module_exit+0x10/0x1b4 [rtl8192ce]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff810ab41e>]
sys_delete_module+0x18e/0x250
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff815ec682>]
system_call_fastpath+0x16/0x1b
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Code: ff 09 d0 89 07 48
83 c4 08 5b 5d c3 66 0f 1f 44 00 00 55 48 89 e5 53 48 83 ec 08 66 66
66 66 90 40 84 f6 89 d3 74 13 84 d2 75 57 <8b> 07 48 83 c4 08 5b 5d c1
e8 1f c3 0f 1f 00 84 d2 74 ed 80 fa
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RIP
[<ffffffffa0418d39>] rtl92ce_get_desc+0x19/0xd0 [rtl8192ce]
Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  RSP <ffff880050263b58>
Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CR2: 00000000000006e0
Mar 19 08:14:35 kvothe kernel: [ 6584.646491] ---[ end trace
8636c766dcfbe0e6 ]---

Dave.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: oops on rmmod of rtl8192ce
  2012-03-19  8:25 oops on rmmod of rtl8192ce Dave Airlie
@ 2012-04-09 15:02 ` Dave Airlie
  2012-04-09 19:16   ` Larry Finger
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Airlie @ 2012-04-09 15:02 UTC (permalink / raw)
  To: Larry Finger; +Cc: LKML, Linux Wireless List

ping any ideas on this oops on unload?

On Mon, Mar 19, 2012 at 8:25 AM, Dave Airlie <airlied@gmail.com> wrote:
> Every so often on resume my rtl8192ce stops working, it can see APs
> but won't attach to any of them,
>
> I see 3 probes, then a direct probe timeout message. If I s/r a few
> times sometimes it comes back. This time I tried to rmmod rtl8192ce
> and got a nice oops.
>
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Oops: 0000 [#1] SMP
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CPU 1
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Modules linked in:
> tcp_lp fuse ppdev ebtable_nat parport_pc ebtables lp parport
> ipt_MASQUERADE iptable_nat nf_nat xt_CHECKSUM iptable_mangle bridge
> stp llc lockd be2iscsi iscsi_boot_sysfs bnx2i cnic uio cxgb4i cxgb4
> cxgb3i libcxgbi cxgb3 mdio ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad
> ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi
> rfcomm bnep ip6t_REJECT nf_conntrack_ipv4 nf_conntrack_ipv6
> nf_defrag_ipv4 nf_defrag_ipv6 xt_state ip6table_filter ip6_tables
> nf_conntrack vfat fat snd_hda_codec_conexant btusb bluetooth
> snd_hda_codec_hdmi arc4 snd_hda_intel snd_hda_codec rtl8192ce(-)
> snd_hwdep snd_seq snd_seq_device rtl8192c_common snd_pcm thinkpad_acpi
> snd_timer uvcvideo snd vhost_net r8169 macvtap macvlan tun rtlwifi
> mac80211 sp5100_tco virtio_net mii i2c_piix4 cfg80211 rfkill kvm_amd
> videodev k10temp soundcore joydev serio_raw snd_page_alloc kvm media
> v4l2_compat_ioctl32 sunrpc uinput binfmt_misc ums_realtek usb_storage
> video radeon ttm drm_kms_helpe
> Mar 19 08:14:35 kvothe kernel: r drm i2c_algo_bit i2c_core [last
> unloaded: scsi_wait_scan]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Pid: 19627, comm: rmmod
> Not tainted 3.2.9-2.fc16.x86_64 #1 LENOVO 05962RU/05962RU
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RIP:
> 0010:[<ffffffffa0418d39>]  [<ffffffffa0418d39>]
> rtl92ce_get_desc+0x19/0xd0 [rtl8192ce]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RSP:
> 0018:ffff880050263b58  EFLAGS: 00010046
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RAX: ffffffffa041c2a0
> RBX: 0000000000000000 RCX: 0000000000000000
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RDX: 0000000000000000
> RSI: 0000000000000000 RDI: 00000000000006e0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RBP: ffff880050263b68
> R08: ffff8801182bde00 R09: ffff88011a4000a0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] R10: fffffffcfffffff0
> R11: fffffffcfffffff0 R12: ffff8800b00ee400
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] R13: 00000000000006e0
> R14: 0000000000000037 R15: 0000000000000037
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] FS:
> 00007fe794c31700(0000) GS:ffff88011ed00000(0000)
> knlGS:0000000000000000
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CS:  0010 DS: 0000 ES:
> 0000 CR0: 000000008005003b
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CR2: 00000000000006e0
> CR3: 00000000c4c18000 CR4: 00000000000006e0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] DR0: 0000000000000000
> DR1: 0000000000000000 DR2: 0000000000000000
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] DR3: 0000000000000000
> DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Process rmmod (pid:
> 19627, threadinfo ffff880050262000, task ffff8801156d5cc0)
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Stack:
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  0000000000000002
> ffff8801176c2540 ffff880050263ca8 ffffffffa03348e7
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  0000000000000282
> 0000000180150014 ffff880050263fd8 ffff8801176c2810
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  ffff880050263bc8
> ffffffff810550e2 00000000000002c0 ffff8801176c0d40
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Call Trace:
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa03348e7>]
> _rtl_pci_rx_interrupt+0x187/0x650 [rtlwifi]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff810550e2>] ?
> complete+0x52/0x60
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa0335e69>]
> _rtl_pci_interrupt+0x409/0x930 [rtlwifi]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff810df45d>]
> __free_irq+0x17d/0x220
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa0335656>]
> rtl_pci_disconnect+0x176/0x1a0 [rtlwifi]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff812df2b6>]
> pci_device_remove+0x46/0x110
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff813954cc>]
> __device_release_driver+0x7c/0xe0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff81395da8>]
> driver_detach+0xb8/0xc0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff8139530a>]
> bus_remove_driver+0x8a/0x100
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff81396562>]
> driver_unregister+0x62/0xa0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff812de164>]
> pci_unregister_driver+0x44/0xa0
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffffa0418e5c>]
> rtl92ce_module_exit+0x10/0x1b4 [rtl8192ce]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff810ab41e>]
> sys_delete_module+0x18e/0x250
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  [<ffffffff815ec682>]
> system_call_fastpath+0x16/0x1b
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] Code: ff 09 d0 89 07 48
> 83 c4 08 5b 5d c3 66 0f 1f 44 00 00 55 48 89 e5 53 48 83 ec 08 66 66
> 66 66 90 40 84 f6 89 d3 74 13 84 d2 75 57 <8b> 07 48 83 c4 08 5b 5d c1
> e8 1f c3 0f 1f 00 84 d2 74 ed 80 fa
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] RIP
> [<ffffffffa0418d39>] rtl92ce_get_desc+0x19/0xd0 [rtl8192ce]
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011]  RSP <ffff880050263b58>
> Mar 19 08:14:35 kvothe kernel: [ 6584.626011] CR2: 00000000000006e0
> Mar 19 08:14:35 kvothe kernel: [ 6584.646491] ---[ end trace
> 8636c766dcfbe0e6 ]---
>
> Dave.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: oops on rmmod of rtl8192ce
  2012-04-09 15:02 ` Dave Airlie
@ 2012-04-09 19:16   ` Larry Finger
  2012-04-18 14:16     ` Dave Airlie
  0 siblings, 1 reply; 5+ messages in thread
From: Larry Finger @ 2012-04-09 19:16 UTC (permalink / raw)
  To: Dave Airlie; +Cc: LKML, Linux Wireless List

On 04/09/2012 10:02 AM, Dave Airlie wrote:
> ping any ideas on this oops on unload?

Sorry about the delay.

The oops looks like interrupts are not being disabled soon enough. Does the 
following patch help?


Index: wireless-testing-new/drivers/net/wireless/rtlwifi/pci.c
===================================================================
--- wireless-testing-new.orig/drivers/net/wireless/rtlwifi/pci.c
+++ wireless-testing-new/drivers/net/wireless/rtlwifi/pci.c
@@ -1943,6 +1943,7 @@ void rtl_pci_disconnect(struct pci_dev *
  		rtl_deinit_deferred_work(hw);
  		rtlpriv->intf_ops->adapter_stop(hw);
  	}
+	rtlpriv->cfg->ops->disable_interrupt(hw);

  	/*deinit rfkill */
  	rtl_deinit_rfkill(hw);

Larry

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: oops on rmmod of rtl8192ce
  2012-04-09 19:16   ` Larry Finger
@ 2012-04-18 14:16     ` Dave Airlie
  2012-04-18 15:08       ` Larry Finger
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Airlie @ 2012-04-18 14:16 UTC (permalink / raw)
  To: Larry Finger; +Cc: LKML, Linux Wireless List

On Mon, Apr 9, 2012 at 8:16 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:
> On 04/09/2012 10:02 AM, Dave Airlie wrote:
>>
>> ping any ideas on this oops on unload?
>
>
> Sorry about the delay.
>
> The oops looks like interrupts are not being disabled soon enough. Does the
> following patch help?

Seems to help here alright, I did a few load/unload cycles this
morning on that laptop,

I'll keep testing it for the situations I need it for, i.e. resume
with wireless fail, which I haven't hit yet.

Dave.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: oops on rmmod of rtl8192ce
  2012-04-18 14:16     ` Dave Airlie
@ 2012-04-18 15:08       ` Larry Finger
  0 siblings, 0 replies; 5+ messages in thread
From: Larry Finger @ 2012-04-18 15:08 UTC (permalink / raw)
  To: Dave Airlie; +Cc: LKML, Linux Wireless List

On 04/18/2012 09:16 AM, Dave Airlie wrote:
> On Mon, Apr 9, 2012 at 8:16 PM, Larry Finger<Larry.Finger@lwfinger.net>  wrote:
>> On 04/09/2012 10:02 AM, Dave Airlie wrote:
>>>
>>> ping any ideas on this oops on unload?
>>
>>
>> Sorry about the delay.
>>
>> The oops looks like interrupts are not being disabled soon enough. Does the
>> following patch help?
>
> Seems to help here alright, I did a few load/unload cycles this
> morning on that laptop,
>
> I'll keep testing it for the situations I need it for, i.e. resume
> with wireless fail, which I haven't hit yet.

OK, I'll push the patch upstream. Will it be OK to use your name in Reported-by: 
and Tested-by: lines?

Larry


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-04-18 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-19  8:25 oops on rmmod of rtl8192ce Dave Airlie
2012-04-09 15:02 ` Dave Airlie
2012-04-09 19:16   ` Larry Finger
2012-04-18 14:16     ` Dave Airlie
2012-04-18 15:08       ` Larry Finger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).