Bug 92605

Summary: [BAT BDW BSW SKL] igt@pm_rpm@basic-rte has dmesg-fail
Product: DRI Reporter: Daniel Vetter <daniel>
Component: DRM/IntelAssignee: cprigent <christophe.prigent>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: blocker    
Priority: highest CC: intel-gfx-bugs
Version: XOrg git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: SKL i915 features:
Attachments:
Description Flags
basic-pci-d3-state_skl-y_kern.log
none
basic-rte_skl-y_kern.log none

Description Daniel Vetter 2015-10-22 15:01:22 UTC
basic runtime pm testcase. It does work on BYT/HSL, so it's not totally hopeless.
Comment 1 cprigent 2015-11-07 14:05:30 UTC
igt@pm_rpm@basic-pci-d3-state is "Fail" during full IGT execution with:

Platform: SKY LAKE Y A0 
CPU : Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1 2+2 (ou ULX-D1)
QDF : QJK9 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02,FBS03, F23, O-02 & O-06
Software
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19
Linux distribution: Ubuntu 14.04 LTS 64 bits
kernel 4.3.0-rc7-drm-intel-nightly (86ba603) from git://anongit.freedesktop.org/drm-intel
  commit 86ba603f327626055fe1436112b3786eaaaf7fb1
  Author: Daniel Vetter <daniel.vetter@ffwll.ch>
  Date:   Sat Oct 31 09:27:21 2015 +0100
  drm-intel-nightly: 2015y-10m-31d-08h-26m-39s UTC integration manifest
Mesa 11.0.4 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Comment 2 Jesse Barnes 2015-11-09 21:07:24 UTC
Snippet from today:

[  491.961443] pm_rpm: starting subtest basic-rte
[  494.290426] ------------[ cut here ]------------
[  494.290490] WARNING: CPU: 2 PID: 0 at drivers/gpu/drm/i915/intel_uncore.c:606
 hsw_unclaimed_reg_debug+0x71/0x90 [i915]()
[  494.290494] Unclaimed register detected before reading register 0xc4008

Power well handling?  Or does SDEIIR not exist at the same location anymore and now we're reading it?
Comment 3 Imre Deak 2015-11-17 20:01:27 UTC
We merged a few SKL/power well/D3 related fixes to -nightly, could you give it a go? Note that atm you have to boot with i915.disable_power_well=1 for this subtest to pass.
Comment 4 Kimmo Nikkanen 2015-11-19 13:08:16 UTC
Is this bug valid for non-SKL platforms? 
As Imre mentioned, SKL should now work with the latest
Comment 5 Maarten Lankhorst 2015-11-23 09:49:48 UTC
Might also be fixed by "[PATCH 00/12] Remove intel_crtc->atomic and fix BAT!"

could you check if it fixes it?
Comment 6 cprigent 2015-11-25 10:17:08 UTC
pm_rpm@basic-pci-d3-state and pm_rpm@basic-rte are Pass on BSW-M with last setup.

Platform: Braswell M
CPU : Intel(R) Celeron N3060 1.60GHz @ 1.6 GHz (family: 6, model: 76 stepping:
4)
SoC : BSW D0
QDF : K6XC
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All 
Feature Reworks: F28, F32, F33, F35, F37
Optional reworks : O-01a; O-02, O-03
Software 
BIOS : BRAS.X64.B088.R00.1510270350
TXE FW : 2.0.0.2093
Ksc : 1.08
Linux : Ubuntu 15.04 64 bits
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.20
Kernel 4.4.0-rc2 nighlty 9e096bc from git://anongit.freedesktop.org/drm-intel
  commit 9e096bc5a20d1d8122740136ab6c584afd4cb913
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Mon Nov 23 17:11:06 2015 +0200
  drm-intel-nightly: 2015y-11m-23d-15h-10m-47s UTC integration manifest
Mesa 11.0.5 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
IGT 1.12 gd84e624
Comment 7 cprigent 2015-11-25 10:21:55 UTC
Created attachment 120108 [details]
basic-pci-d3-state_skl-y_kern.log

basic-pci-d3-state is fail on SKL-Y

# ./pm_rpm --run-subtest basic-pci-d3-state
IGT-Version: 1.12-gd84e624 (x86_64) (Linux: 4.4.0-rc2-nightly+ x86_64)
Runtime PM support: 1
PC8 residency support: 0
Test assertion failure function pci_d3_state_subtest, file pm_rpm.c:1380:
Failed assertion: wait_for_suspended()
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x22e8]
  #2 [__libc_start_main+0xf5]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest basic-pci-d3-state failed.
**** DEBUG ****
Test requirement passed: has_runtime_pm
Test assertion failure function pci_d3_state_subtest, file pm_rpm.c:1380:
Failed assertion: wait_for_suspended()
****  END  ****
Subtest basic-pci-d3-state: FAIL (10.539s)

Hardware
Platform: SKY LAKE Y A0 QUAL
CPU : Intel(R) Core(TM) M5-6Y54 @ 1.10GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  
QDF : QJ9W
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software 
Linux : Ubuntu 15.04 64 bits
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.20
Kernel 4.4.0-rc2 nighlty 9e096bc from git://anongit.freedesktop.org/drm-intel
  commit 9e096bc5a20d1d8122740136ab6c584afd4cb913
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Mon Nov 23 17:11:06 2015 +0200
  drm-intel-nightly: 2015y-11m-23d-15h-10m-47s UTC integration manifest
Mesa 11.0.5 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
IGT 1.12-gd84e624
2 monitors connected: Asus PB287Q (HDMI) and Asus PB238Q (DP)
Comment 8 cprigent 2015-11-25 10:28:45 UTC
Created attachment 120110 [details]
basic-rte_skl-y_kern.log

basic-rte is fail on SKL-Y

# ./pm_rpm --run-subtest basic-rte
IGT-Version: 1.12-gd84e624 (x86_64) (Linux: 4.4.0-rc2-nightly+ x86_64)
Runtime PM support: 1
PC8 residency support: 0
Test assertion failure function basic_subtest, file pm_rpm.c:729:
Failed assertion: wait_for_suspended()
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [main+0x2345]
  #2 [__libc_start_main+0xf5]
  #3 [_start+0x29]
  #4 [<unknown>+0x29]
Subtest basic-rte failed.
**** DEBUG ****
Test assertion failure function basic_subtest, file pm_rpm.c:729:
Failed assertion: wait_for_suspended()
****  END  ****
Subtest basic-rte: FAIL (10.519s)

Hardware
Platform: SKY LAKE Y A0 QUAL
CPU : Intel(R) Core(TM) M5-6Y54 @ 1.10GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  
QDF : QJ9W
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software 
Linux : Ubuntu 14.04 64 bits
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.20
Kernel 4.4.0-rc2 nighlty 9e096bc from git://anongit.freedesktop.org/drm-intel
  commit 9e096bc5a20d1d8122740136ab6c584afd4cb913
  Author: Imre Deak <imre.deak@intel.com>
  Date:   Mon Nov 23 17:11:06 2015 +0200
  drm-intel-nightly: 2015y-11m-23d-15h-10m-47s UTC integration manifest
Mesa 11.0.5 from http://cgit.freedesktop.org/mesa/mesa/
xf86-video-intel - 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm - 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Libva - 1.6.1 from http://cgit.freedesktop.org/libva/
vaapi intel-driver - 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
Cairo - 1.14.2 from http://cgit.freedesktop.org/cairo
Xorg Xserver - 1.17.2 from http://cgit.freedesktop.org/xorg/xserver
IGT 1.12-gd84e624
2 monitors connected: Asus PB287Q (HDMI) and Asus PB238Q (DP)
Comment 9 cprigent 2015-11-25 10:33:52 UTC
pm_rpm@basic-pci-d3-state and pm_rpm@basic-rte are Pass on BDW-U

Hardware:
Motherboard: WhiteTip Mountain
cpu model name : Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
cpu model : 61
cpu family : 6
Graphic card: Broadwell-U Integrated Graphics (rev 09)
Software:
Kernel: 4.4.0-rc1 5074e51ef3a2b0ad4c2354e95aec5380a93966b3 drm-intel-nightly from git://anongit.freedesktop.org/drm-intel
Ubuntu 14.04.1 LTS
Bios: BDW-E1R1.86C.0125.R00.1506031935
Libdrm: 2.4.65
Comment 10 Imre Deak 2015-11-25 10:34:54 UTC
(In reply to cprigent from comment #8)
> Created attachment 120110 [details]
> basic-rte_skl-y_kern.log
> 
> basic-rte is fail on SKL-Y
> 
> # ./pm_rpm --run-subtest basic-rte
> IGT-Version: 1.12-gd84e624 (x86_64) (Linux: 4.4.0-rc2-nightly+ x86_64)
> Runtime PM support: 1
> PC8 residency support: 0
> Test assertion failure function basic_subtest, file pm_rpm.c:729:
> Failed assertion: wait_for_suspended()
> Stack trace:
>   #0 [__igt_fail_assert+0xf1]
>   #1 [main+0x2345]
>   #2 [__libc_start_main+0xf5]
>   #3 [_start+0x29]
>   #4 [<unknown>+0x29]
> Subtest basic-rte failed.

Please retest with the latest firmware:
Nov 25 11:22:29 SKLY4 kernel: [    2.931780] [drm:intel_csr_ucode_init] Loading i915/skl_dmc_ver1.bin
Nov 25 11:22:29 SKLY4 kernel: [    2.931785] [drm:drm_irq_install] irq=284
Nov 25 11:22:29 SKLY4 kernel: [    2.932790] [drm] Refusing to load old Skylake DMC firmware v1.22, please upgrade to v1.23 or later [https://01.org/linuxgraphics/intel-linux-graphics-firmwares].
Nov 25 11:22:29 SKLY4 kernel: [    2.932823] [drm:csr_load_work_fn [i915]] *ERROR* Failed to load DMC firmware, disabling rpm
Comment 11 cprigent 2015-11-25 10:59:31 UTC
pm_rpm@basic-pci-d3-state and pm_rpm@basic-rte are Pass on SKL-Y with firmware DMC 1.23.
Comment 12 cprigent 2015-11-25 10:59:48 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.