All of lore.kernel.org
 help / color / mirror / Atom feed
* e1000e disabling already-disabled device
@ 2013-03-03 16:21 Dave Jones
  2013-03-03 23:36 ` Francois Romieu
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Jones @ 2013-03-03 16:21 UTC (permalink / raw)
  To: netdev

Saw this when I suspended my laptop.


 ------------[ cut here ]------------
 WARNING: at drivers/pci/pci.c:1397 pci_disable_device+0x90/0xa0()
 Hardware name: 2356JK8
 Device e1000e
disabling already-disabled device
Modules linked in:
 dm_crypt arc4 iwldvm mac80211 ipv6 iTCO_wdt xfs iTCO_vendor_support libcrc32c coretemp kvm_intel kvm crc32c_intel ghash_clmulni_intel microcode snd_hda_codec_hdmi snd_hda_codec_realtek btusb bluetooth iwlwifi pcspkr snd_hda_intel cfg80211 snd_hda_codec snd_pcm lpc_ich mfd_core e1000e snd_page_alloc ptp pps_core thinkpad_acpi hwmon led_class rfkill wmi nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm i2c_core video
Pid: 19776, comm: kworker/u:11 Not tainted 3.8.0+ #6
Call Trace:
 [<ffffffff81049855>] warn_slowpath_common+0x75/0xa0
 [<ffffffff81049936>] warn_slowpath_fmt+0x46/0x50
 [<ffffffff81359760>] pci_disable_device+0x90/0xa0
 [<ffffffffa0251092>] __e1000_shutdown+0x262/0x8a0 [e1000e]
 [<ffffffffa0251743>] e1000_suspend+0x23/0x50 [e1000e]
 [<ffffffff816284b9>] ? sub_preempt_count+0x79/0xd0
 [<ffffffff8135bd97>] pci_pm_suspend+0x77/0x140
 [<ffffffff8135bd20>] ? pci_pm_poweroff+0xf0/0xf0
 [<ffffffff8140c678>] dpm_run_callback+0x58/0x90
 [<ffffffff8140c79d>] __device_suspend+0xed/0x280
 [<ffffffff8140d1ef>] async_suspend+0x1f/0xa0
 [<ffffffff8107e3a6>] async_run_entry_fn+0x46/0x140
 [<ffffffff8106de9b>] process_one_work+0x20b/0x6b0
 [<ffffffff8106de2f>] ? process_one_work+0x19f/0x6b0
 [<ffffffff8106e720>] worker_thread+0x110/0x380
 [<ffffffff8106e610>] ? rescuer_thread+0x290/0x290
 [<ffffffff8107566d>] kthread+0xed/0x100
 [<ffffffff81075580>] ? kthread_create_on_node+0x160/0x160
 [<ffffffff8162caac>] ret_from_fork+0x7c/0xb0
 [<ffffffff81075580>] ? kthread_create_on_node+0x160/0x160
---[ end trace afe8ab959e3ef1ea ]---

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

* Re: e1000e disabling already-disabled device
  2013-03-03 16:21 e1000e disabling already-disabled device Dave Jones
@ 2013-03-03 23:36 ` Francois Romieu
  2013-03-05  2:11   ` Allan, Bruce W
  0 siblings, 1 reply; 3+ messages in thread
From: Francois Romieu @ 2013-03-03 23:36 UTC (permalink / raw)
  To: Dave Jones; +Cc: netdev, Bruce Allan

Dave Jones <davej@redhat.com> :
[...]
>  ------------[ cut here ]------------
>  WARNING: at drivers/pci/pci.c:1397 pci_disable_device+0x90/0xa0()
>  Hardware name: 2356JK8
>  Device e1000e
> disabling already-disabled device
> Modules linked in:
>  dm_crypt arc4 iwldvm mac80211 ipv6 iTCO_wdt xfs iTCO_vendor_support libcrc32c coretemp kvm_intel kvm crc32c_intel ghash_clmulni_intel microcode snd_hda_codec_hdmi snd_hda_codec_realtek btusb bluetooth iwlwifi pcspkr snd_hda_intel cfg80211 snd_hda_codec snd_pcm lpc_ich mfd_core e1000e snd_page_alloc ptp pps_core thinkpad_acpi hwmon led_class rfkill wmi nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit drm_kms_helper drm i2c_core video
> Pid: 19776, comm: kworker/u:11 Not tainted 3.8.0+ #6
> Call Trace:
>  [<ffffffff81049855>] warn_slowpath_common+0x75/0xa0
>  [<ffffffff81049936>] warn_slowpath_fmt+0x46/0x50
>  [<ffffffff81359760>] pci_disable_device+0x90/0xa0
>  [<ffffffffa0251092>] __e1000_shutdown+0x262/0x8a0 [e1000e]
>  [<ffffffffa0251743>] e1000_suspend+0x23/0x50 [e1000e]
>  [<ffffffff816284b9>] ? sub_preempt_count+0x79/0xd0
>  [<ffffffff8135bd97>] pci_pm_suspend+0x77/0x140
>  [<ffffffff8135bd20>] ? pci_pm_poweroff+0xf0/0xf0
>  [<ffffffff8140c678>] dpm_run_callback+0x58/0x90
>  [<ffffffff8140c79d>] __device_suspend+0xed/0x280
>  [<ffffffff8140d1ef>] async_suspend+0x1f/0xa0

Could it be that runtime power management is also enabled, you have no
link and thus end running both runtime_suspend and suspend at different
times ?

I wonder why the driver disables the PCI device here btw.

diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c
index a177b8b..5c643c6 100644
--- a/drivers/net/ethernet/intel/e1000e/netdev.c
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c
@@ -5986,8 +5986,6 @@ static int __e1000_shutdown(struct pci_dev *pdev, bool *enable_wake,
 	 */
 	e1000e_release_hw_control(adapter);
 
-	pci_disable_device(pdev);
-
 	return 0;
 }
 
--- 
Ueimor

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

* RE: e1000e disabling already-disabled device
  2013-03-03 23:36 ` Francois Romieu
@ 2013-03-05  2:11   ` Allan, Bruce W
  0 siblings, 0 replies; 3+ messages in thread
From: Allan, Bruce W @ 2013-03-05  2:11 UTC (permalink / raw)
  To: Francois Romieu, Dave Jones; +Cc: netdev@vger.kernel.org, khlebnikov@openvz.org

> -----Original Message-----
> From: Francois Romieu [mailto:romieu@fr.zoreil.com]
> Sent: Sunday, March 03, 2013 3:36 PM
> To: Dave Jones
> Cc: netdev@vger.kernel.org; Allan, Bruce W
> Subject: Re: e1000e disabling already-disabled device
> 
> Dave Jones <davej@redhat.com> :
> [...]
> >  ------------[ cut here ]------------
> >  WARNING: at drivers/pci/pci.c:1397 pci_disable_device+0x90/0xa0()
> >  Hardware name: 2356JK8
> >  Device e1000e
> > disabling already-disabled device
> > Modules linked in:
> >  dm_crypt arc4 iwldvm mac80211 ipv6 iTCO_wdt xfs iTCO_vendor_support
> libcrc32c coretemp kvm_intel kvm crc32c_intel ghash_clmulni_intel
> microcode snd_hda_codec_hdmi snd_hda_codec_realtek btusb bluetooth
> iwlwifi pcspkr snd_hda_intel cfg80211 snd_hda_codec snd_pcm lpc_ich
> mfd_core e1000e snd_page_alloc ptp pps_core thinkpad_acpi hwmon
> led_class rfkill wmi nfsd auth_rpcgss nfs_acl lockd sunrpc i915 i2c_algo_bit
> drm_kms_helper drm i2c_core video
> > Pid: 19776, comm: kworker/u:11 Not tainted 3.8.0+ #6
> > Call Trace:
> >  [<ffffffff81049855>] warn_slowpath_common+0x75/0xa0
> >  [<ffffffff81049936>] warn_slowpath_fmt+0x46/0x50
> >  [<ffffffff81359760>] pci_disable_device+0x90/0xa0
> >  [<ffffffffa0251092>] __e1000_shutdown+0x262/0x8a0 [e1000e]
> >  [<ffffffffa0251743>] e1000_suspend+0x23/0x50 [e1000e]
> >  [<ffffffff816284b9>] ? sub_preempt_count+0x79/0xd0
> >  [<ffffffff8135bd97>] pci_pm_suspend+0x77/0x140
> >  [<ffffffff8135bd20>] ? pci_pm_poweroff+0xf0/0xf0
> >  [<ffffffff8140c678>] dpm_run_callback+0x58/0x90
> >  [<ffffffff8140c79d>] __device_suspend+0xed/0x280
> >  [<ffffffff8140d1ef>] async_suspend+0x1f/0xa0
> 
> Could it be that runtime power management is also enabled, you have no
> link and thus end running both runtime_suspend and suspend at different
> times ?
> 
> I wonder why the driver disables the PCI device here btw.
> 
> diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c
> b/drivers/net/ethernet/intel/e1000e/netdev.c
> index a177b8b..5c643c6 100644
> --- a/drivers/net/ethernet/intel/e1000e/netdev.c
> +++ b/drivers/net/ethernet/intel/e1000e/netdev.c
> @@ -5986,8 +5986,6 @@ static int __e1000_shutdown(struct pci_dev
> *pdev, bool *enable_wake,
>  	 */
>  	e1000e_release_hw_control(adapter);
> 
> -	pci_disable_device(pdev);
> -
>  	return 0;
>  }
> 
> ---
> Ueimor

This is a known issue and a patch from Konstantin Khlebnikov <khlebnikov@openvz.org> is currently under test.

Thanks,
Bruce.

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

end of thread, other threads:[~2013-03-05  2:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-03 16:21 e1000e disabling already-disabled device Dave Jones
2013-03-03 23:36 ` Francois Romieu
2013-03-05  2:11   ` Allan, Bruce W

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.