Bug 98618 - [skl] WARN_ON(!intel_pstate->base.fb) spam
Summary: [skl] WARN_ON(!intel_pstate->base.fb) spam
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-06 20:28 UTC by Chris Wilson
Modified: 2018-04-27 12:00 UTC (History)
1 user (show)

See Also:
i915 platform: SKL
i915 features: display/watermark


Attachments
tar file containing most important logs (1.51 MB, application/x-tar)
2017-07-07 17:56 UTC, Martin
no flags Details

Description Chris Wilson 2016-11-06 20:28:18 UTC
Nov  6 17:28:53 skylake kernel: [ 2330.654222] WARNING: CPU: 3 PID: 1212 at drivers/gpu/drm/i915/intel_pm.c:3743 skl_compute_wm+0xbc0/0x1370
Nov  6 17:28:53 skylake kernel: [ 2330.654222] WARN_ON(!intel_pstate->base.fb)
Nov  6 17:28:53 skylake kernel: [ 2330.654223] Modules linked in:
Nov  6 17:28:53 skylake kernel: [ 2330.654224]  hid_generic hidp rfcomm bnep binfmt_misc nls_iso8859_1 snd_hda_codec_hdmi input_leds snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm btusb btrtl 8250_dw snd_seq_midi snd_seq_midi_event iwlwifi snd_rawmidi hid_lenovo snd_seq idma64 x86_pkg_temp_thermal virt_dma coretemp snd_seq_device cfg80211 hci_uart snd_timer crct10dif_pclmul crc32_pclmul ghash_clmulni_intel btbcm btqca aesni_intel btintel aes_x86_64 bluetooth snd lrw gf128mul glue_helper ablk_helper cryptd soundcore intel_lpss_pci intel_pch_thermal intel_lpss_acpi acpi_als intel_lpss kfifo_buf mfd_core industrialio acpi_pad autofs4 hid_plantronics dm_mirror usbhid dm_region_hash dm_log sdhci_pci ahci sdhci libahci i2c_hid hid
Nov  6 17:28:53 skylake kernel: [ 2330.654255] CPU: 3 PID: 1212 Comm: Xorg Not tainted 4.9.0-rc3+ #216
Nov  6 17:28:53 skylake kernel: [ 2330.654256] Hardware name:                  /NUC6i3SYB, BIOS SYSKLi35.86A.0024.2015.1027.2142 10/27/2015
Nov  6 17:28:53 skylake kernel: [ 2330.654257]  ffffc900007af9f8 ffffffff812bb1a8 ffffc900007afa48 0000000000000000
Nov  6 17:28:53 skylake kernel: [ 2330.654259]  ffffc900007afa38 ffffffff8104f5f1 00000e9f00000000 0000000000000000
Nov  6 17:28:53 skylake kernel: [ 2330.654260]  ffff88084bcb4800 ffff8808441be0c0 ffff880845760800 0000000000000000
Nov  6 17:28:53 skylake kernel: [ 2330.654262] Call Trace:
Nov  6 17:28:53 skylake kernel: [ 2330.654266]  [<ffffffff812bb1a8>] dump_stack+0x4d/0x65
Nov  6 17:28:53 skylake kernel: [ 2330.654268]  [<ffffffff8104f5f1>] __warn+0xc1/0xe0
Nov  6 17:28:53 skylake kernel: [ 2330.654269]  [<ffffffff8104f66a>] warn_slowpath_fmt+0x5a/0x80
Nov  6 17:28:53 skylake kernel: [ 2330.654271]  [<ffffffff81402dc0>] skl_compute_wm+0xbc0/0x1370
Nov  6 17:28:53 skylake kernel: [ 2330.654274]  [<ffffffff81460b11>] intel_atomic_check+0x471/0x1100
Nov  6 17:28:53 skylake kernel: [ 2330.654275]  [<ffffffff813e0bac>] drm_atomic_check_only+0x45c/0x580
Nov  6 17:28:53 skylake kernel: [ 2330.654277]  [<ffffffff813e0d33>] drm_atomic_nonblocking_commit+0x13/0x50
Nov  6 17:28:53 skylake kernel: [ 2330.654279]  [<ffffffff813c3138>] drm_atomic_helper_page_flip+0x118/0x150
Nov  6 17:28:53 skylake kernel: [ 2330.654281]  [<ffffffff813e7a1c>] drm_mode_page_flip_ioctl+0x38c/0x430
Nov  6 17:28:53 skylake kernel: [ 2330.654283]  [<ffffffff813cd7f1>] drm_ioctl+0x1f1/0x4a0
Nov  6 17:28:53 skylake kernel: [ 2330.654285]  [<ffffffff813e7690>] ? drm_mode_cursor2_ioctl+0x10/0x10
Nov  6 17:28:53 skylake kernel: [ 2330.654288]  [<ffffffff812c4269>] ? timerqueue_add+0x59/0xb0
Nov  6 17:28:53 skylake kernel: [ 2330.654290]  [<ffffffff810a1dc8>] ? hrtimer_start_range_ns+0x1c8/0x350
Nov  6 17:28:53 skylake kernel: [ 2330.654292]  [<ffffffff811876ac>] do_vfs_ioctl+0x9c/0x5c0
Nov  6 17:28:53 skylake kernel: [ 2330.654294]  [<ffffffff8105a8d5>] ? recalc_sigpending+0x15/0x40
Nov  6 17:28:53 skylake kernel: [ 2330.654295]  [<ffffffff8105b547>] ? __set_task_blocked+0x37/0x90
Nov  6 17:28:53 skylake kernel: [ 2330.654298]  [<ffffffff8161319b>] ? __sys_recvmsg+0x7b/0x90
Nov  6 17:28:53 skylake kernel: [ 2330.654299]  [<ffffffff81187c0c>] SyS_ioctl+0x3c/0x70
Nov  6 17:28:53 skylake kernel: [ 2330.654301]  [<ffffffff81713024>] entry_SYSCALL_64_fastpath+0x17/0x98
Comment 1 Chris Wilson 2017-02-04 20:54:45 UTC
Still happening with drm-tip as of today. I appear to be special...
Comment 2 Chris Wilson 2017-03-01 12:31:39 UTC
Just me.
Comment 3 joel.porquet 2017-06-28 17:14:08 UTC
I'm having the same issue with Linux 4.11 on an Skylake-based ASUS UX305, with Archlinux.

kernel: WARNING: CPU: 2 PID: 104 at drivers/gpu/drm/i915/intel_pm.c:3749 skl_compute_wm+0xbf7/0x1560 [i915]
kernel: WARN_ON(!intel_pstate->base.fb)
...

The computer boots and the screen becomes black when starting the DRM.

For now, I've downgraded to Linux 4.10 which is not affected by this issue.
Comment 4 Elizabeth 2017-06-28 19:45:03 UTC
(In reply to joel.porquet from comment #3)
> I'm having the same issue with Linux 4.11 on an Skylake-based ASUS UX305,
> with Archlinux.
> 
> kernel: WARNING: CPU: 2 PID: 104 at drivers/gpu/drm/i915/intel_pm.c:3749
> skl_compute_wm+0xbf7/0x1560 [i915]
> kernel: WARN_ON(!intel_pstate->base.fb)
> ...
> 
> The computer boots and the screen becomes black when starting the DRM.
> 
> For now, I've downgraded to Linux 4.10 which is not affected by this issue.

Hello Joel,
This bug had been already mark as CLOSED, if you can replicate the problem, could you please share a clean kern.log that includes the bug and change the status to REOPEN. Thank you.
Comment 5 Martin 2017-07-07 17:56:07 UTC
Created attachment 132505 [details]
tar file containing most important logs
Comment 6 Martin 2017-07-07 17:59:39 UTC
Hi all, 

I have a similar problem to Joel.

The system boots normally, the only problem is the screen remains black (the backlight seems to be turned on). I have remote control of the machine via ssh: I managed to start the sshd after logging in tty4 without having any visual control of what I was doing.

The most important tracelogs can be found in dmesg and syslog and look similar to this:
[    2.146215] ------------[ cut here ]------------
[    2.146253] WARNING: CPU: 2 PID: 254 at drivers/gpu/drm/i915/intel_pm.c:3749 skl_compute_wm+0xbf5/0x1550 [i915]
[    2.146253] WARN_ON(!intel_pstate->base.fb)
[    2.146254] Modules linked in: sparse_keymap mac80211 snd_soc_skl snd_soc_skl_ipc snd_soc_sst_ipc iwlwifi snd_soc_sst_dsp snd_hda_ext_core snd_soc_sst_mat
ch nls_iso8859_1 intel_rapl snd_soc_core x86_pkg_temp_thermal nls_cp437 intel_powerclamp coretemp snd_compress kvm_intel snd_pcm_dmaengine vfat cfg80211 fat 
kvm irqbypass ac97_bus crct10dif_pclmul crc32_pclmul crc32c_intel ghash_clmulni_intel i915 pcbc aesni_intel snd_hda_intel idma64 snd_hda_codec uvcvideo aes_x
86_64 crypto_simd glue_helper cryptd videobuf2_vmalloc drm_kms_helper intel_cstate videobuf2_memops videobuf2_v4l2 snd_hda_core intel_rapl_perf videobuf2_cor
e snd_hwdep drm videodev snd_pcm media evdev snd_timer intel_gtt syscopyarea snd mei_me sysfillrect input_leds sysimgblt mac_hid pcspkr fb_sys_fops processor
_thermal_device soundcore
[    2.146275]  i2c_i801 mei i2c_algo_bit shpchp intel_pch_thermal intel_soc_dts_iosf intel_lpss_pci i2c_hid thermal elan_i2c hid wmi int3403_thermal hci_uar
t intel_lpss_acpi battery int3406_thermal int3402_thermal intel_lpss btqca video int340x_thermal_zone ac tpm_crb int3400_thermal asus_wireless acpi_thermal_r
el acpi_als led_class kfifo_buf button industrialio acpi_pad tpm_tis tpm_tis_core tpm btusb btrtl btbcm btintel bluetooth rfkill sch_fq_codel sg ip_tables x_
tables ext4 crc16 jbd2 fscrypto mbcache sd_mod serio_raw atkbd libps2 ahci libahci xhci_pci libata xhci_hcd scsi_mod usbcore usb_common i8042 serio
[    2.146300] CPU: 2 PID: 254 Comm: kworker/u8:4 Not tainted 4.11.7-1-ARCH #1
[    2.146301] Hardware name: ASUSTeK COMPUTER INC. UX305UA/UX305UA, BIOS UX305UA.201 10/12/2015
[    2.146305] Workqueue: events_unbound async_run_entry_fn
[    2.146306] Call Trace:
[    2.146310]  dump_stack+0x63/0x81
[    2.146312]  __warn+0xcb/0xf0
[    2.146314]  warn_slowpath_fmt+0x5a/0x80
[    2.146345]  skl_compute_wm+0xbf5/0x1550 [i915]
[    2.146379]  intel_atomic_check+0x5ac/0x11a0 [i915]
[    2.146386]  ? drm_mode_object_unreference+0x15/0x20 [drm]
[    2.146392]  drm_atomic_check_only+0x39e/0x580 [drm]
[    2.146397]  drm_atomic_commit+0x18/0x50 [drm]
[    2.146400]  restore_fbdev_mode+0x222/0x280 [drm_kms_helper]
[    2.146402]  drm_fb_helper_restore_fbdev_mode_unlocked+0x2e/0x80 [drm_kms_helper]
[    2.146405]  drm_fb_helper_set_par+0x2d/0x60 [drm_kms_helper]
[    2.146435]  intel_fbdev_set_par+0x18/0x70 [i915]
[    2.146437]  fbcon_init+0x484/0x650
[    2.146440]  visual_init+0xd6/0x130
[    2.146441]  do_bind_con_driver+0x1fc/0x420
[    2.146443]  do_take_over_console+0x82/0x1b0
[    2.146445]  do_fbcon_takeover+0x5c/0xb0
[    2.146446]  fbcon_event_notify+0x587/0x780
[    2.146448]  notifier_call_chain+0x4a/0x70
[    2.146450]  blocking_notifier_call_chain+0x43/0x60
[    2.146452]  fb_notifier_call_chain+0x1b/0x20
[    2.146453]  register_framebuffer+0x24d/0x360
[    2.146455]  ? vga_switcheroo_client_fb_set+0x5b/0x70
[    2.146458]  drm_fb_helper_initial_config+0x230/0x3e0 [drm_kms_helper]
[    2.146487]  intel_fbdev_initial_config+0x18/0x30 [i915]
[    2.146489]  async_run_entry_fn+0x37/0x150
[    2.146491]  process_one_work+0x1e0/0x490
[    2.146493]  worker_thread+0x48/0x4e0
[    2.146494]  kthread+0x125/0x140
[    2.146495]  ? process_one_work+0x490/0x490
[    2.146497]  ? kthread_create_on_node+0x70/0x70
[    2.146499]  ret_from_fork+0x2c/0x40
[    2.146500] ---[ end trace b45da8c5dcb81a7f ]---
[    2.146501] ------------[ cut here ]------------
Comment 7 Elizabeth 2017-07-27 19:06:43 UTC
(In reply to Martin from comment #5)
> Created attachment 132505 [details]
> tar file containing most important logs

Thanks for the update Martin,
Could you please attach another dmesg but with drm.debug=0xe parameter on grub and change to REOPEN?
Thank you.
Comment 8 Chris 2017-07-30 19:38:58 UTC
(In reply to joel.porquet from comment #3)
> I'm having the same issue with Linux 4.11 on an Skylake-based ASUS UX305,
> with Archlinux.
> 
> kernel: WARNING: CPU: 2 PID: 104 at drivers/gpu/drm/i915/intel_pm.c:3749
> skl_compute_wm+0xbf7/0x1560 [i915]
> kernel: WARN_ON(!intel_pstate->base.fb)
> ...
> 
> The computer boots and the screen becomes black when starting the DRM.
> 
> For now, I've downgraded to Linux 4.10 which is not affected by this issue.

Want to contribute that I have this same issue, also on an ASUS UX305; all kernels after 4.11.3.
Comment 9 Elizabeth 2017-10-23 15:21:49 UTC
Hello everybody, still reproducible with latest tip/mainline? Thanks.

https://cgit.freedesktop.org/drm-tip
https://www.kernel.org
Comment 10 Jani Saarinen 2018-03-29 07:11:22 UTC
First of all. Sorry about spam.
This is mass update for our bugs. 

Sorry if you feel this annoying but with this trying to understand if bug still valid or not.
If bug investigation still in progress, please ignore this and I apologize!

If you think this is not anymore valid, please comment to the bug that can be closed.
If you haven't tested with our latest pre-upstream tree(drm-tip), can you do that also to see if issue is valid there still and if you cannot see issue there, please comment to the bug.
Comment 11 Jani Saarinen 2018-04-20 11:23:21 UTC
Chris, is this still valid?
Comment 12 Jani Saarinen 2018-04-27 12:00:45 UTC
Closing, please re-open is issue still exists.


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.