Bug 92791 - [BXT-P] Several errors when suspending to freeze
Summary: [BXT-P] Several errors when suspending to freeze
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-03 10:35 UTC by cprigent
Modified: 2016-10-25 12:11 UTC (History)
2 users (show)

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


Attachments
Kernel configuration (178.53 KB, text/plain)
2015-11-03 10:35 UTC, cprigent
no flags Details
kern.log (440.65 KB, text/plain)
2015-11-03 10:36 UTC, cprigent
no flags Details
freeze-test-modes_kern.log (894.76 KB, text/plain)
2015-11-03 10:36 UTC, cprigent
no flags Details
Dmesg log (240.84 KB, text/plain)
2016-01-14 22:26 UTC, Elio
no flags Details

Description cprigent 2015-11-03 10:35:42 UTC
Created attachment 119370 [details]
Kernel configuration

BXT-P
Hardware 
Platform: Broxton P A0 Platform 
CPU Name : Intel(R) @ 1.2 GHz (family: 6, model: 92, stepping: 8) – 4 cores
SoC : BROXTON-P A0
CRB : Apollo Lake RVP Fab1
Software 
Linux distribution: Ubuntu 15.04 64 bits 
kernel 4.3.0-rc5 (26f82bd8) from https://github.com/ideak/linux.git BXT branch
commit 26f82bd872901733b739480e8899a92966ae9292
Author: Imre Deak <imre.deak@intel.com>
Date:   Tue Oct 20 16:44:03 2015 +0300
drm/i915/bxt: update bxt_defconfig
Enable Kconfig options needed for UART/eMMC.
Signed-off-by: Imre Deak <imre.deak@intel.com>
BIOS: APLKRVPA.X64.0104.R43.1510080446 
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_41_5_02
CSE : 3.0.0.1044
KSC : 1.02

Steps:
------
1. Boot DUT in text mode
2. Execute commands:
sudo -s
echo freeze > /sys/power/state
3. Press any key to resume
4. Check /var/log/kern.log

Actual results:
---------------
3. Suspend to freeze and resume work
4. Log contains some errors

Expected result:
----------------
4. No errors

More details with the test modes of freeze:
-------------------------------------------
echo devices > /sys/power/pm_test
echo platform > /sys/power/disk
echo freeze > /sys/power/state

atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
drm:i915_gem_init_hw [i915]] *ERROR* Failed to initialize GuC, error -5 (ignored)
atkbd serio0: Failed to enable keyboard on isa0060/serio0
snd_hda_intel 0000:00:0e.0: azx_get_response timeout, switching to single_cmd mode: last cmd=0x20170500
snd_hda_codec_hdmi hdaudioC0D2: Unable to sync register 0x2f0d00. -5


echo platform > /sys/power/pm_test
echo platform > /sys/power/disk
echo freeze > /sys/power/state

[drm:bxt_ddi_vswing_sequence [i915]] *ERROR* Disabled scaling while ouniqetrangenmethod was set
[drm:bxt_ddi_vswing_sequence [i915]] *ERROR* Disabled scaling while ouniqetrangenmethod was set
[drm:bxt_ddi_vswing_sequence [i915]] *ERROR* Disabled scaling while ouniqetrangenmethod was set
atkbd serio0: Failed to deactivate keyboard on isa0060/serio0
drm:i915_gem_init_hw [i915]] *ERROR* Failed to initialize GuC, error -5 (ignored)
[drm:bxt_ddi_vswing_sequence [i915]] *ERROR* Disabled scaling while ouniqetrangenmethod was set
[drm:bxt_ddi_vswing_sequence [i915]] *ERROR* Disabled scaling while ouniqetrangenmethod was set
atkbd serio0: Failed to enable keyboard on isa0060/serio0
Comment 1 cprigent 2015-11-03 10:36:18 UTC
Created attachment 119371 [details]
kern.log
Comment 2 cprigent 2015-11-03 10:36:42 UTC
Created attachment 119372 [details]
freeze-test-modes_kern.log
Comment 3 cprigent 2015-11-03 10:38:11 UTC
GuC error could be saved by installing the firmware, it is not available here: https://01.org/linuxgraphics/intel-linux-graphics-firmwares
Comment 4 cprigent 2016-01-12 17:16:30 UTC
Bug scrub:
----------
Elio,
Could you check if still reproduced with fresh setup?
Thanks
Comment 5 Elio 2016-01-14 22:12:27 UTC
I'm facing the same problem with the following configuration:

Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.4.0-rc8 8834392 
libdrm-2.4.66 from http://cgit.freedesktop.org/mesa/drm/
xf86-video-intel 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
mesa-11.0.8 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.2 from http://cgit.freedesktop.org/libva/
intel-driver 1.6.2 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.15.2 from http://cgit.freedesktop.org/cairo
IGT master 1.13 cd658a7c6bca74eb897a8ae87751029793f0c4f4 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

Error message: (setup was on skylake i just moved the HD)

Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.065964] [drm:bxt_ddi_vswing_sequence [i915]] *ERROR* Disabled scaling while ouniqetrangenmethod was set
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.065964] ------------[ cut here ]------------
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.065990] WARNING: CPU: 0 PID: 1895 at /home/shared/kernels/drm-intel-nightly/drivers/gpu/drm/i915/intel_pm.c:3626 skl_update_other_pipe_wm+0x172/0x180 [i915]()
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.065992] WARN_ON(!wm_changed)
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066031] Modules linked in: binfmt_misc xhci_plat_hcd iosf_mbi snd_hda_codec_hdmi coretemp dwc3 udc_core kvm_intel snd_hda_codec_realtek snd_hda_codec_generic nls_iso8859_1 kvm irqbypass snd_hda_intel crct10dif_pclmul snd_hda_codec crc32_pclmul snd_hda_core snd_hwdep aesni_intel aes_x86_64 lrw gf128mul glue_helper snd_pcm ablk_helper cryptd snd_seq_midi snd_seq_midi_event serio_raw snd_rawmidi snd_seq snd_seq_device snd_timer snd soundcore dwc3_pci shpchp rfkill_gpio mac_hid parport_pc ppdev lp parport autofs4 hid_generic usbhid mmc_block i915 psmouse igb drm_kms_helper syscopyarea sysfillrect xhci_pci dca sysimgblt sdhci_pci ptp fb_sys_fops sdhci xhci_hcd pps_core i2c_algo_bit drm ahci libahci i2c_hid hid video
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066034] CPU: 0 PID: 1895 Comm: kms_rotation_cr Tainted: G        W       4.4.0-rc8-nightly+ #1
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066035] Hardware name: Intel Corp. BROXTON P A0 PLATFORM/NOTEBOOK, BIOS APLK_IFWI_X64_R_2015_38_05_00 09/16/2015
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066038]  ffffffffa02fd0f8 ffff8802723d76e0 ffffffff81391b8d ffff8802723d7728
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066041]  ffff8802723d7718 ffffffff810760e6 ffff880076a73000 ffff880076a72000
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066043]  0000000000000004 ffff88027121eb78 ffff8802723d77a4 ffff8802723d7778
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066044] Call Trace:
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066049]  [<ffffffff81391b8d>] dump_stack+0x44/0x57
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066053]  [<ffffffff810760e6>] warn_slowpath_common+0x86/0xc0
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066055]  [<ffffffff8107616c>] warn_slowpath_fmt+0x4c/0x50
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066077]  [<ffffffffa0234a82>] skl_update_other_pipe_wm+0x172/0x180 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066099]  [<ffffffffa0234c2a>] skl_update_wm+0x19a/0x6f0 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066130]  [<ffffffffa0277978>] ? hsw_unclaimed_reg_debug+0x28/0x90 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066164]  [<ffffffffa02bb390>] ? intel_ddi_enable_transcoder_func+0x170/0x240 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066187]  [<ffffffffa023626e>] intel_update_watermarks+0x1e/0x30 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066220]  [<ffffffffa029ef71>] haswell_crtc_enable+0x321/0x8d0 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066225]  [<ffffffff81767202>] ? mutex_lock+0x12/0x2f
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066257]  [<ffffffffa0298cbc>] intel_atomic_commit+0x60c/0x2340 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066260]  [<ffffffff81766d5a>] ? __ww_mutex_lock_slowpath+0x16e/0x184
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066263]  [<ffffffff81766dcf>] ? __ww_mutex_lock+0x5f/0x97
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066286]  [<ffffffffa008b660>] ? drm_atomic_check_only+0x130/0x5f0 [drm]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066306]  [<ffffffffa008c157>] ? drm_atomic_add_affected_connectors+0x27/0xf0 [drm]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066326]  [<ffffffffa008bb57>] drm_atomic_commit+0x37/0x60 [drm]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066336]  [<ffffffffa019576d>] restore_fbdev_mode+0x22d/0x260 [drm_kms_helper]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066355]  [<ffffffffa008aaa7>] ? drm_modeset_lock_all_ctx+0x97/0xb0 [drm]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066365]  [<ffffffffa0197823>] drm_fb_helper_restore_fbdev_mode_unlocked+0x33/0x80 [drm_kms_helper]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066373]  [<ffffffffa019789c>] drm_fb_helper_set_par+0x2c/0x50 [drm_kms_helper]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066405]  [<ffffffffa02b189a>] intel_fbdev_set_par+0x1a/0x60 [i915]
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066409]  [<ffffffff8140d851>] fb_set_var+0x191/0x400
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066412]  [<ffffffff81765004>] ? __schedule+0x334/0x900
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066416]  [<ffffffff81404c9c>] fbcon_blank+0x1bc/0x2b0
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066421]  [<ffffffff8149a958>] do_unblank_screen+0xb8/0x1c0
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066423]  [<ffffffff81492033>] vt_ioctl+0x1053/0x10d0
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066426]  [<ffffffff81485679>] tty_ioctl+0x3a9/0xb70
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066429]  [<ffffffff8112b0bc>] ? acct_account_cputime+0x1c/0x20
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066432]  [<ffffffff810a4e6d>] ? account_user_time+0x5d/0x80
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066434]  [<ffffffff811f760d>] do_vfs_ioctl+0x2cd/0x4b0
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066438]  [<ffffffff8116e91d>] ? context_tracking_exit+0x1d/0x30
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066441]  [<ffffffff8100366f>] ? enter_from_user_mode+0x1f/0x50
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066443]  [<ffffffff811f7869>] SyS_ioctl+0x79/0x90
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066446]  [<ffffffff8116e9ad>] ? context_tracking_enter+0x1d/0x30
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066448]  [<ffffffff81769176>] entry_SYSCALL_64_fastpath+0x16/0x75
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066450] ---[ end trace 2090549c37e6becf ]---
Jan 12 11:25:32 gfx-Skylake-Client-platform kernel: [   87.066491] ------------[ cut here ]------------


Attaching logs
Comment 6 Elio 2016-01-14 22:26:02 UTC
Created attachment 121051 [details]
Dmesg log
Comment 7 Jani Nikula 2016-06-16 07:38:57 UTC
Does this still occur with current drm-intel-nightly and current hardware?
Comment 8 cprigent 2016-10-25 12:11:28 UTC
Not reproduced with:

Platform BXT-P: APL system
CPU Name : Intel(R) Genuine Processor @ 1.1 GHz (family: 6, model: 12, stepping: 9) 4 cores
QDF : Q6HE
SoC : B1
CRB : Apollo Lake DDR3L RVP1A FAB2
Reworks: R19, R20

Software 
Bios: 144_B10 APLK_B0_IFWI_X64_R_2016_06_27_0956_SPI_RVP1.bin from \\gar\ec\proj\ba\CCG\APL BIOS\External\BIOS_Release\Daily\v144_10_2016_WW27.1\IFWI\IFWI_RVP1_Release\IFWI
KSC: 1.15
Linux distribution: Ubuntu 16.04 64 bits
DMC 1.07
GuC 8.7
Kernel: 4.8.0 f35ed31 from http://cgit.freedesktop.org/drm-intel/
  commit f35ed31aea66b3230c366fcba5f3456ae2cb956e
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Mon Oct 10 14:29:09 2016 +0300
  drm-intel-nightly: 2016y-10m-10d-11h-28m-51s UTC integration manifest
libdrm-2.4.71 a44c9c3 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-12.0.0 8b06176 from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.99.901-76 97a8353 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-712 696f58f from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.2-38 3b7e499 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.2-133 dd73514 from git://git.freedesktop.org/git/vaapi/intel-driver
IGT: intel-gpu-tools-1.16-59 48a9e1e from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

External screens: ASUS PB238Q (HDMI), LG 25UM55D (DP)
Comment 9 cprigent 2016-10-25 12:11:37 UTC
So closed


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.