Bug 111195 - "wakeref_count=1 on cleanup" during suspend on Dell Precision 5540
Summary: "wakeref_count=1 on cleanup" during suspend on Dell Precision 5540
Status: RESOLVED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Arcadiy Ivanov
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: Triaged
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-23 01:40 UTC by Arcadiy Ivanov
Modified: 2019-07-23 17:30 UTC (History)
1 user (show)

See Also:
i915 platform: CFL
i915 features: power/suspend-resume


Attachments
debug dmesg of drm-tip 2019y-07m-23d-12h-27m-47s UTC (7.80 MB, text/x-log)
2019-07-23 15:40 UTC, Arcadiy Ivanov
no flags Details

Description Arcadiy Ivanov 2019-07-23 01:40:20 UTC
[22169.146307] ------------[ cut here ]------------
[22169.146311] i915->runtime_pm.wakeref_count=1 on cleanup
[22169.146461] WARNING: CPU: 9 PID: 15728 at drivers/gpu/drm/i915/intel_runtime_pm.c:4474 intel_runtime_pm_cleanup+0x42/0x90 [i915]
[22169.146463] Modules linked in: pktcdvd snd_usb_audio snd_usbmidi_lib snd_rawmidi uas usb_storage cdc_ether usbnet r8152 mii dm_crypt loop fuse ccm rfcomm ipt_MASQUERADE nf_conntrack_netlink xt_addrtype br_netfilter bridge stp llc nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 overlay ip_set nfnetlink ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter cmac bnep bbswitch(OE) sunrpc vfat fat uvcvideo btusb videobuf2_vmalloc videobuf2_memops btrtl videobuf2_v4l2 btbcm btintel videobuf2_common bluetooth videodev media cdc_acm ecdh_generic hid_multitouch arc4 dell_rbtn iTCO_wdt iTCO_vendor_support iwlmvm mac80211 snd_hda_codec_hdmi intel_rapl snd_soc_skl x86_pkg_temp_thermal intel_powerclamp snd_soc_hdac_hda
[22169.146508]  snd_hda_ext_core coretemp snd_soc_skl_ipc snd_hda_codec_realtek snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match snd_hda_codec_generic snd_soc_acpi kvm_intel snd_soc_core snd_compress iwlwifi ac97_bus snd_pcm_dmaengine kvm snd_hda_intel snd_hda_codec cfg80211 snd_hda_core dell_laptop snd_hwdep mei_hdcp irqbypass mei_wdt ledtrig_audio snd_seq dell_wmi dell_smbios snd_seq_device snd_pcm idma64 dcdbas crct10dif_pclmul dell_smm_hwmon crc32_pclmul snd_timer snd ucsi_acpi typec_ucsi ghash_clmulni_intel mei_me intel_cstate thunderbolt soundcore joydev wmi_bmof intel_wmi_thunderbolt mei rfkill intel_uncore intel_lpss_pci processor_thermal_device int3403_thermal intel_lpss intel_rapl_perf intel_soc_dts_iosf intel_pch_thermal rtsx_pci_ms i2c_i801 dell_wmi_descriptor memstick int340x_thermal_zone typec dell_smo8800 int3400_thermal intel_hid pcc_cpufreq sparse_keymap acpi_thermal_rel acpi_pad binfmt_misc ip_tables xfs libcrc32c i915 i2c_algo_bit drm_kms_helper rtsx_pci_sdmmc
[22169.146547]  mmc_core drm mxm_wmi nvme crc32c_intel nvme_core serio_raw rtsx_pci i2c_hid pinctrl_cannonlake video wmi pinctrl_intel
[22169.146561] CPU: 9 PID: 15728 Comm: kworker/u32:12 Tainted: G     U  W  OE     5.1.18-300.fc30.x86_64 #1
[22169.146562] Hardware name: Dell Inc. Precision 5540/0V030K, BIOS 1.1.1 05/31/2019
[22169.146569] Workqueue: events_unbound async_run_entry_fn
[22169.146624] RIP: 0010:intel_runtime_pm_cleanup+0x42/0x90 [i915]
[22169.146627] Code: 75 1c 80 bb b4 70 00 00 00 75 2a 8b 83 b0 70 00 00 85 c0 74 40 f0 ff 8b b0 70 00 00 5b c3 48 c7 c7 80 5c 75 c0 e8 4d 88 aa c3 <0f> 0b 80 bb b4 70 00 00 00 74 d6 80 3d dc 8c 1a 00 00 75 cd 48 c7
[22169.146629] RSP: 0018:ffffae1ed5bbbd98 EFLAGS: 00010282
[22169.146632] RAX: 0000000000000000 RBX: ffff8f27b4040000 RCX: 0000000000000006
[22169.146634] RDX: 0000000000000007 RSI: 0000000000000082 RDI: ffff8f27bc4568c0
[22169.146636] RBP: ffff8f27b4040000 R08: 00001429a817431d R09: ffffffff859bde04
[22169.146638] R10: 00000000000007b5 R11: 00000000000124f4 R12: 0000000000000000
[22169.146639] R13: ffff8f27b45d5000 R14: 0000000000000000 R15: 0000000000000002
[22169.146642] FS:  0000000000000000(0000) GS:ffff8f27bc440000(0000) knlGS:0000000000000000
[22169.146644] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[22169.146646] CR2: 00007fe97c0103e6 CR3: 0000000a6f20e003 CR4: 00000000003606e0
[22169.146648] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[22169.146649] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[22169.146651] Call Trace:
[22169.146699]  i915_drm_suspend_late+0xcb/0x110 [i915]
[22169.146707]  ? pci_pm_poweroff_late+0x30/0x30
[22169.146713]  dpm_run_callback+0x4f/0x140
[22169.146716]  ? pci_pm_poweroff_late+0x30/0x30
[22169.146721]  __device_suspend_late+0xe1/0x1c0
[22169.146726]  async_suspend_late+0x1b/0x90
[22169.146729]  async_run_entry_fn+0x39/0x160
[22169.146735]  process_one_work+0x19d/0x380
[22169.146740]  worker_thread+0x50/0x3b0
[22169.146744]  kthread+0xfb/0x130
[22169.146748]  ? process_one_work+0x380/0x380
[22169.146750]  ? kthread_park+0x90/0x90
[22169.146757]  ret_from_fork+0x1f/0x40
[22169.146762] ---[ end trace 9bec67370381bc56 ]---
Comment 1 Chris Wilson 2019-07-23 09:40:27 UTC
Please retest on an upstream kernel (drm-tip) -- if you are enabling debug code, presumably you have a reason to, and bugs are always fixed upstream first.
Comment 2 Arcadiy Ivanov 2019-07-23 15:37:02 UTC
Same story with drm-tip. As a side note, the enable_guc=2 prevented the graphics adapter from initializing.

[  135.998510] ------------[ cut here ]------------
[  135.998514] i915 raw-wakerefs=1 wakelocks=1 on cleanup
[  135.998660] WARNING: CPU: 3 PID: 572 at drivers/gpu/drm/i915/intel_runtime_pm.c:599 intel_runtime_pm_driver_release+0x20/0x30 [i915]
[  135.998661] Modules linked in: rfcomm xt_MASQUERADE nf_conntrack_netlink xt_addrtype br_netfilter bridge stp llc cmac nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ip6table_nat ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_nat iptable_mangle iptable_raw iptable_security nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 ip_set nfnetlink ebtable_filter overlay ebtables ip6table_filter ip6_tables iptable_filter bnep sunrpc vfat fat uvcvideo btusb videobuf2_vmalloc btrtl videobuf2_memops btbcm videobuf2_v4l2 videobuf2_common btintel bluetooth videodev snd_soc_skl snd_soc_hdac_hda ecdh_generic mc snd_hda_ext_core cdc_acm ecc snd_soc_skl_ipc snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match snd_hda_codec_hdmi snd_soc_acpi dell_rbtn snd_soc_core hid_multitouch snd_compress snd_hda_codec_realtek ac97_bus snd_pcm_dmaengine iwlmvm snd_hda_codec_generic x86_pkg_temp_thermal snd_hda_intel
[  135.998701]  intel_powerclamp mac80211 snd_hda_codec coretemp snd_hda_core libarc4 kvm_intel snd_hwdep kvm snd_seq snd_seq_device irqbypass iwlwifi snd_pcm dell_laptop dell_wmi crct10dif_pclmul ledtrig_audio crc32_pclmul dell_smbios snd_timer iTCO_wdt mei_wdt cfg80211 mei_hdcp ghash_clmulni_intel iTCO_vendor_support intel_cstate intel_rapl_msr dell_smm_hwmon rtsx_pci_ms dcdbas ucsi_acpi intel_uncore mei_me snd idma64 processor_thermal_device thunderbolt intel_rapl_perf mei typec_ucsi memstick wmi_bmof pcspkr dell_wmi_descriptor joydev intel_wmi_thunderbolt soundcore i2c_i801 rfkill intel_rapl_common intel_lpss_pci intel_pch_thermal typec intel_soc_dts_iosf intel_lpss int3403_thermal int340x_thermal_zone dell_smo8800 intel_hid int3400_thermal acpi_thermal_rel sparse_keymap acpi_pad binfmt_misc ip_tables xfs libcrc32c i915 mxm_wmi i2c_algo_bit drm_kms_helper rtsx_pci_sdmmc mmc_core drm nvme rtsx_pci nvme_core crc32c_intel serio_raw i2c_hid video pinctrl_cannonlake wmi pinctrl_intel
[  135.998749] CPU: 3 PID: 572 Comm: kworker/u32:3 Tainted: G     U            5.3.0-rc1+ #1
[  135.998751] Hardware name: Dell Inc. Precision 5540/0V030K, BIOS 1.1.1 05/31/2019
[  135.998758] Workqueue: events_unbound async_run_entry_fn
[  135.998811] RIP: 0010:intel_runtime_pm_driver_release+0x20/0x30 [i915]
[  135.998815] Code: 84 00 00 00 00 00 0f 1f 40 00 0f 1f 44 00 00 8b 37 85 f6 75 01 c3 89 f2 48 c7 c7 f0 fb 64 c0 0f b7 f6 c1 fa 10 e8 2e 7c bc d8 <0f> 0b c3 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 0f 1f 44 00 00 48
[  135.998817] RSP: 0018:ffffbdfb407c3d98 EFLAGS: 00010282
[  135.998820] RAX: 0000000000000000 RBX: ffff9fa1f6340000 RCX: 0000000000000006
[  135.998821] RDX: 0000000000000007 RSI: 0000000000000082 RDI: ffff9fa2342d7900
[  135.998823] RBP: 0000000000000000 R08: 0000001faa24a638 R09: ffff9fa274800000
[  135.998824] R10: 0000000000005472 R11: 0000000007dd12b8 R12: 0000000000000000
[  135.998826] R13: ffff9fa22c205000 R14: ffff9fa1f63477e0 R15: 0000000000000002
[  135.998828] FS:  0000000000000000(0000) GS:ffff9fa2342c0000(0000) knlGS:0000000000000000
[  135.998830] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  135.998832] CR2: 000055b278c46f58 CR3: 0000000ead40a002 CR4: 00000000003606e0
[  135.998833] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  135.998835] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  135.998836] Call Trace:
[  135.998885]  i915_drm_suspend_late+0xe5/0x130 [i915]
[  135.998894]  ? pci_pm_poweroff_late+0x30/0x30
[  135.998898]  dpm_run_callback+0x4f/0x140
[  135.998902]  ? pci_pm_poweroff_late+0x30/0x30
[  135.998905]  __device_suspend_late+0xe1/0x1c0
[  135.998909]  async_suspend_late+0x1b/0x90
[  135.998913]  async_run_entry_fn+0x39/0x160
[  135.998919]  process_one_work+0x19d/0x340
[  135.998924]  worker_thread+0x50/0x3b0
[  135.998928]  kthread+0xfb/0x130
[  135.998933]  ? process_one_work+0x340/0x340
[  135.998936]  ? kthread_park+0x80/0x80
[  135.998940]  ret_from_fork+0x1f/0x40
[  135.998994] WARNING: CPU: 3 PID: 572 at drivers/gpu/drm/i915/intel_runtime_pm.c:599 intel_runtime_pm_driver_release+0x20/0x30 [i915]
[  135.998996] ---[ end trace 7c00525aa3c505c4 ]---
Comment 3 Arcadiy Ivanov 2019-07-23 15:40:08 UTC
Created attachment 144855 [details]
debug dmesg of drm-tip 2019y-07m-23d-12h-27m-47s UTC
Comment 4 Chris Wilson 2019-07-23 16:33:54 UTC
You have i915.disable_power_well=0 so that's expected. Stop using unsafe parameters, if you have any reason to, file a bug.
Comment 5 Arcadiy Ivanov 2019-07-23 17:30:05 UTC
Power well was disabled on Skylake Dell Precision 7510 as well and such warning did not appear during suspend.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.