Bug 89124 - [SKL mobile] igt/kms_psr_sink_crc subcases fail if PSR enabled
Summary: [SKL mobile] igt/kms_psr_sink_crc subcases fail if PSR enabled
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other 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-02-13 05:25 UTC by liulei
Modified: 2015-11-01 12:10 UTC (History)
3 users (show)

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


Attachments
dmesg (564.28 KB, text/plain)
2015-02-13 05:25 UTC, liulei
no flags Details
dmesg-2015-03-11 (702.00 KB, text/plain)
2015-03-11 10:43 UTC, liulei
no flags Details

Description liulei 2015-02-13 05:25:55 UTC
Created attachment 113443 [details]
dmesg

==System Environment==
--------------------------
Bios : V68
Regression: No. First test on this platform.
Non-working platforms: SKL mobile

==kernel==
--------------------------
-nightly: b4442ee4e150506cebeee72249efc566c5f14bbe (fails)
     drm-intel-nightly: 2015y-02m-06d-09h-25m-00s UTC integration manifest

==Bug detailed description==
-----------------------------
IGT-Version: 1.9-g9846e7f (x86_64) (Linux: 3.19.0-rc7_drm-intel-nightly_b4442e_20150208+ x86_64)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest primary_page_flip: FAIL (4.391s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest primary_mmap_gtt: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest primary_mmap_gtt_waiting: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest primary_mmap_cpu: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest primary_blt: FAIL (4.322s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest primary_render: FAIL (4.322s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_mmap_gtt: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_mmap_gtt_waiting: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_mmap_cpu: FAIL (4.322s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_blt: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_render: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_plane_move: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest sprite_plane_onoff: FAIL (4.322s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_mmap_gtt: FAIL (4.333s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_mmap_gtt_waiting: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_mmap_cpu: FAIL (4.322s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_blt: FAIL (4.323s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_render: FAIL (4.321s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_plane_move: FAIL (4.320s)
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Test assertion failure function igt_wait_for_vblank, file igt_kms.c:1778:
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Failed assertion: drmWaitVBlank(drm_fd, &wait_vbl) == 0
(kms_psr_sink_crc:5206) igt-kms-CRITICAL: Last errno: 16, Device or resource busy
Subtest cursor_plane_onoff: FAIL (4.334s)


==Reproduce steps==
---------------------------- 
1. run kms_psr_sink_crc case.
Comment 1 Paulo Zanoni 2015-03-09 15:14:39 UTC
We just merged some SKL fixes that may affect all display-related tests. Please retest this bug against the latest drm-intel-nightly.
Comment 2 liulei 2015-03-11 10:42:40 UTC
Re-tset on latest -nightly. All sub_tests skip.
root@x-skly03:~# cat /sys/kernel/debug/dri/0/i915_edp_psr_status
Sink_Support: yes
Source_OK: yes
Enabled: yes
Active: yes
Busy frontbuffer bits: 0x000
Re-enable work scheduled: no
HW Enabled & Active bit: yes
Link standby: no
Performance_Counter: 173062
root@x-skly03:~# pkill x
root@x-skly03:~# /opt/kms_psr_sink_crc
IGT-Version: 1.9-g07be8fe (x86_64) (Linux: 4.0.0-rc3_drm-intel-nightly_8d96a0_20150311+ x86_64)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest primary_page_flip: SKIP (1.319s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest primary_mmap_gtt: SKIP (1.323s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest primary_mmap_gtt_waiting: SKIP (1.324s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest primary_mmap_cpu: SKIP (1.324s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest primary_blt: SKIP (1.316s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest primary_render: SKIP (1.323s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_mmap_gtt: SKIP (1.312s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_mmap_gtt_waiting: SKIP (1.310s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_mmap_cpu: SKIP (1.311s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_blt: SKIP (1.312s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_render: SKIP (1.312s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_plane_move: SKIP (1.310s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest sprite_plane_onoff: SKIP (1.310s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_mmap_gtt: SKIP (1.915s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_mmap_gtt_waiting: SKIP (1.315s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_mmap_cpu: SKIP (1.317s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_blt: SKIP (1.316s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_render: SKIP (1.317s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_plane_move: SKIP (1.317s)
Test requirement not met in function get_sink_crc, file kms_psr_sink_crc.c:250:
Test requirement: ret > 0
Last errno: 19, No such device
Subtest cursor_plane_onoff: SKIP (1.317s)
Comment 3 liulei 2015-03-11 10:43:12 UTC
Created attachment 114215 [details]
dmesg-2015-03-11
Comment 4 Ander Conselvan de Oliveira 2015-06-03 18:38:46 UTC
(In reply to liulei from comment #2)
> Test requirement not met in function get_sink_crc, file
> kms_psr_sink_crc.c:250:

It seems more recent IGT would print the following message when it reaches this assertion failure:

"Sink CRC is unreliable on this machine. Try manual debug with --interactive-debug=manual"
Comment 5 cprigent 2015-10-13 14:29:17 UTC
On SKL-Y, all following tests are fail:
igt@kms_psr_sink_crc@cursor_blt
igt@kms_psr_sink_crc@cursor_mmap_cpu
igt@kms_psr_sink_crc@cursor_mmap_gtt_waiting
igt@kms_psr_sink_crc@cursor_plane_onoff
igt@kms_psr_sink_crc@cursor_render
igt@kms_psr_sink_crc@primary_blt
igt@kms_psr_sink_crc@primary_mmap_cpu
igt@kms_psr_sink_crc@primary_mmap_gtt
igt@kms_psr_sink_crc@primary_mmap_gtt_waiting
igt@kms_psr_sink_crc@primary_render
igt@kms_psr_sink_crc@sprite_blt
igt@kms_psr_sink_crc@sprite_mmap_cpu
igt@kms_psr_sink_crc@sprite_mmap_gtt
igt@kms_psr_sink_crc@sprite_mmap_gtt_waiting
igt@kms_psr_sink_crc@sprite_plane_move

Please tell us if it should be reported in another bug?

Hardware:
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
Linux : Ubuntu 14.04 LTS 64 bits
BIOS : SKLSE2R1.R00.X097.B02.1509020030
ME FW : 11.0.0.1173
Ksc (EC FW): 1.19

kernel 4.3.0-rc3-drm-intel-nightly+ (eb69e51) from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.2 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.64 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 6 cprigent 2015-10-20 11:40:15 UTC
Following tests are fail on SKL-Y with last setup:
igt@kms_psr_sink_crc@cursor_blt
igt@kms_psr_sink_crc@cursor_mmap_gtt
igt@kms_psr_sink_crc@cursor_mmap_gtt_waiting
igt@kms_psr_sink_crc@cursor_plane_onoff
igt@kms_psr_sink_crc@cursor_render
igt@kms_psr_sink_crc@primary_mmap_cpu
igt@kms_psr_sink_crc@primary_mmap_gtt
igt@kms_psr_sink_crc@primary_mmap_gtt_waiting
igt@kms_psr_sink_crc@primary_page_flip
igt@kms_psr_sink_crc@primary_render
igt@kms_psr_sink_crc@sprite_blt
igt@kms_psr_sink_crc@sprite_mmap_cpu
igt@kms_psr_sink_crc@sprite_mmap_gtt
igt@kms_psr_sink_crc@sprite_mmap_gtt_waiting
igt@kms_psr_sink_crc@sprite_plane_move
igt@kms_psr_sink_crc@sprite_plane_onoff
igt@kms_psr_sink_crc@sprite_render

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
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-rc4-drm-intel-nightly+ c38f2c24fb6484fc6900efa6f8d968e8ee964e9c from git://anongit.freedesktop.org/drm-intel
Mesa - 11.0.3 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

commit c38f2c24fb6484fc6900efa6f8d968e8ee964e9c
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Oct 9 14:50:43 2015 +0200
drm-intel-nightly: 2015y-10m-09d-12h-49m-56s UTC integration manifest
Comment 7 cprigent 2015-11-01 12:09:48 UTC
All subtests are Pass with last setup:

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-rc6-drm-intel-nightly+ (ab48d30) from git://anongit.freedesktop.org/drm-intel
commit ab48d308f2fe5a8ad3d2fd57d313e74995cf1c20 Author: Daniel Vetter <daniel.vetter@ffwll.ch> Date: Fri Oct 23 12:03:04 2015 +0200 drm-intel-nightly: 2015y-10m-23d-10h-02m-25s UTC integration manifest
Mesa 10.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 8 cprigent 2015-11-01 12:10:08 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.