Bug 93316 - [BXT-P/APL/BDW/BSW/KBL/GLK] Timeout when executing testdisplay -f
Summary: [BXT-P/APL/BDW/BSW/KBL/GLK] Timeout when executing testdisplay -f
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: IGT (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: high normal
Assignee: Marius Vlad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-10 11:57 UTC by cprigent
Modified: 2017-11-14 16:52 UTC (History)
1 user (show)

See Also:
i915 platform: BDW, BSW/CHT, BXT, KBL
i915 features: display/HDMI


Attachments
Dmesg log (206.10 KB, text/plain)
2016-02-29 19:28 UTC, Elio
no flags Details
bsw-kern.log (179.44 KB, text/plain)
2016-03-17 13:43 UTC, cprigent
no flags Details
dmesg (292.21 KB, text/plain)
2016-03-29 22:24 UTC, Luis Botello
no flags Details

Description cprigent 2015-12-10 11:57:19 UTC
Q4 stack release setup:
-----------------------
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 
BIOS (IFWI Version): APLK_IFWI_X64_R_2015_44_3_00
BIOS : APLKRVPA.X64.0105.R45.1510272122
CSE FW : 3.0.0.1049
KSC : 1.04
Linux distribution: Ubuntu 15.10 64 bits
Kernel: tag testing 2015-11-20 from http://cgit.freedesktop.org/drm-intel/tag/?h=drm-intel-testing&id=drm-intel-testing-2015-11-20
Bios v105_48
xorg-server-1.18.0 from http://cgit.freedesktop.org/xorg/xserver
libdrm-2.4.65 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.4 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.1 from http://cgit.freedesktop.org/libva/
vaapi-intel-driver 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
DMC 1.06 firmware from https://01.org/linuxgraphics/intel-linux-graphics-firmwares
Monitor connected to Display Port

Steps:
------
1. Execute command:
cd <...>/intel-gpu-tools/tests
./testdisplay -f 38.25,800,832,912,1024,600,603,607,624
2. Wait a moment

Actual result:
--------------
2. Timeout 

Expected result:
----------------
2. Test is Pass
Comment 1 cprigent 2015-12-10 11:58:22 UTC
Assigned to Olivier to provide logs from testdisplay and dmesg
Comment 2 cprigent 2016-01-12 17:20:44 UTC
Bug scrub:
----------
Hi Olivier,
Please have a look to this. Thanks
Comment 3 Elio 2016-02-29 19:28:46 UTC
Created attachment 122035 [details]
Dmesg log
Comment 4 Elio 2016-02-29 19:29:08 UTC
The bug still present with the following configuration:
Linux distribution: Ubuntu 15.10 64 bits
Kernel drm-intel-nightly 4.5.0-rc5_1a139ea from http://cgit.freedesktop.org/drm-intel/
commit 1a139ead792d8e912aa13d413b9cf59811fde676
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Mon Feb 22 10:48:46 2016 +0200
 drm-intel-nightly: 2016y-02m-22d-08h-48m-06s UTC integration manifest
drm: tag libdrm-2.4.66 9b77443 from http://cgit.freedesktop.org/mesa/drm/
mesa: tag mesa-11.1.1 330aa44from http://cgit.freedesktop.org/mesa/mesa/
cairo: tag 1.15.2 db8a7f1 from http://cgit.freedesktop.org/cairo
waffle: master bb29b2a from https://github.com/waffle-gl/waffle
xorg-server-macros: master d7acec2 from git://git.freedesktop.org/git/xorg/util/macros
libva: tag libva-1.6.1 1f026de from http://cgit.freedesktop.org/libva/
vaapi-intel-driver: tag 1.6.1 f6fe842 from http://cgit.freedesktop.org/vaapi/intel-driverFirmware

Firmware
(APL)DMC 1.06 from https://01.org/linuxgraphics/downloads/broxton-dmc-1.06

Attaching Dmesg log

No process on background running

PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
    1 root      20   0  119776   5856   3948 S  0.0  0.1   0:00.89 systemd
    2 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kthreadd
    3 root      20   0       0      0      0 S  0.0  0.0   0:00.00 ksoftirqd/0
    4 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0
    5 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 kworker/0:0H
    7 root      20   0       0      0      0 S  0.0  0.0   0:00.04 rcu_sched
    8 root      20   0       0      0      0 S  0.0  0.0   0:00.00 rcu_bh
    9 root      20   0       0      0      0 S  0.0  0.0   0:00.02 rcuos/0
   10 root      20   0       0      0      0 S  0.0  0.0   0:00.00 rcuob/0
   11 root      rt   0       0      0      0 S  0.0  0.0   0:00.00 migration/0
   12 root      rt   0       0      0      0 S  0.0  0.0   0:00.00 watchdog/0
   13 root      20   0       0      0      0 S  0.0  0.0   0:00.00 kdevtmpfs
   14 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 netns
   15 root      20   0       0      0      0 S  0.0  0.0   0:00.00 khungtaskd
   16 root       0 -20       0      0      0 S  0.0  0.0   0:00.00 writeback
   17 root      25   5       0      0      0 S  0.0  0.0   0:00.00 ksmd
   18 root      39  19       0      0      0 S  0.0  0.0   0:00.00 khugepaged
Comment 5 Elio 2016-03-16 16:27:14 UTC
Same problem with Kernel 4.4.4 with BDW platform
Comment 6 cprigent 2016-03-17 13:43:54 UTC
Created attachment 122376 [details]
bsw-kern.log

Reproduced on BSW.
After 2 hours test was not ended, no output from testdisplay. /var/log/kern/log attached.

Hardware: 
Motherboard: Aspire XC-704 
cpu model name : Intel(R) Pentium(R) CPU N3700 @ 1.60GHz 
cpu model : 76 
cpu family : 6 
Graphic card: Device 22b1 (rev 21)

Software:
Ubuntu 14.04
Bios: R01-A2
Kernel mainline 4.4.0 from
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
  commit afd2ff9b7e1b367172f18ba7f693dfb62bdcb2dc
  Author: Linus Torvalds <torvalds@linux-foundation.org>
  Date:   Sun Jan 10 15:01:32 2016 -0800
  Linux 4.4
drm: libdrm-2.4.67-5 ea07de9 from git://anongit.freedesktop.org/mesa/drm
mesa: tag mesa-11.1.2 7bcd827 from git://anongit.freedesktop.org/mesa/mesa
cairo: tag 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
waffle: master bb29b2a from git://github.com/waffle-gl/waffle
xorg-server-macros: tag: util-macros-1.19.0-2 d7acec2 from
git://git.freedesktop.org/git/xorg/util/macros
xserver: tag: xorg-server-1.18.1 23e60f9 from
git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: tag 2.99.917-560 d167280 from
git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
libva: tag libva-1.7.0.pre1 35f1447 from
git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: tag 1.7.0.pre1 ab8e4e3 from
git://anongit.freedesktop.org/vaapi/intel-driver
IGT 1.14 364d378 from
http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

One external screen connected to HDMI: Asus PB238Q
Comment 7 Luis Botello 2016-03-29 22:21:51 UTC
This issue still happens on BXT-P with the following configuration:

Hardware configuration
=======================
Platform	BXT - P (APL)
Motherboard model	Apollo Lake
Motherboard type	 NOTEBOOK Hand Held
Motherboard manufacturer	Intel Corp.
CPU family	Other
CPU information	06/5c
GPU Card	Intel Corporation Device 5a84 (rev 03) (prog-if 00 [VGA controller])
Memory ram	8 GB

Software configuration
=======================
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-11-gea78c17 
	 commit : ea78c17 
	 author : Emil Velikov <emil.l.velikov@gmail.com> 
	 age : 20 hours ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 7 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-590-g094924f 
	 commit : 094924f 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 4 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-1-g2339d10 
	 commit : 2339d10 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 13 days ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-5-g759e44d 
	 commit : 759e44d 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 13 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 4 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-254-g44e1c97 
	 commit : 44e1c97 
	 author : Olivier Fourdan <ofourdan@redhat.com> 
	 age : 8 days ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-129-g41a26b5 
	 commit : 41a26b5 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 26 hours ago  


kernel configuration
=====================
Branch : drm-intel-nightly
commit f5d413cccefa1f93d64c34f357151d42add63a84
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Thu Mar 24 14:35:16 2016 +0000

    drm-intel-nightly: 2016y-03m-24d-14h-34m-29s UTC integration manifest
Kernel version : 4.5.0
Architecture : source amd64 all
Comment 8 Luis Botello 2016-03-29 22:24:14 UTC
Created attachment 122624 [details]
dmesg

BXT-P demsg log
Comment 9 Humberto Israel Perez Rodriguez 2016-04-20 17:12:17 UTC
The issue still happen on KBL and the following configuration :


Hardware information
========================================================
Platform                            : KBL (RVP7)
Motherboard model                   : Kabylake Client platform
Motherboard type                    : Skylake U DDR3L RVP7 Laptop
Motherboard manufacturer            : Intel Corporation
CPU family                          : Other
CPU information                     : Genuine Intel(R) CPU 0000 @ 2.60GHz
GPU Card                            : Intel Corporation Device 5916 (prog-if 00 [VGA controller])
Memory ram                          : 4 GB
Maximum memory ram allowed          : 16 GB
CPU's number                        : 4


Software information
========================================================
Linux distribution : Ubuntu 15.10 x64
Bios  : 75.03
KSC   : 1.20


Graphic stack
=========================================================

 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.67-25-gcc9a53f 
	 commit : cc9a53f 
	 author : Daniel Vetter <daniel.vetter@ffwll.ch> 
	 age : 3 weeks ago 
 --> Component : mesa 
	 url : http://cgit.freedesktop.org/mesa/mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
	 author : Emil Velikov <emil.velikov@collabora.com> 
	 age : 10 weeks ago 
 --> Component : xf86-video-intel 
	 url : http://cgit.freedesktop.org/xorg/driver/xf86-video-intel 
	 tag : 2.99.917-634-g81029be 
	 commit : 81029be 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 2 days ago 
 --> Component : libva 
	 url : http://cgit.freedesktop.org/libva/ 
	 tag : libva-1.7.0-1-g2339d10 
	 commit : 2339d10 
	 author : Xiang Haihao <haihao.xiang@intel.com> 
	 age : 5 weeks ago 
 --> Component : vaapi (intel-driver) 
	 url : http://cgit.freedesktop.org/vaapi/intel-driver 
	 tag : 1.7.0-8-g2c1bec0 
	 commit : 2c1bec0 
	 author : peng.chen <peng.c.chen@intel.com> 
	 age : 13 days ago 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
	 author : Bryce Harrington <bryce@osg.samsung.com> 
	 age : 4 months ago 
 --> Component : xserver 
	 url :  http://cgit.freedesktop.org/xorg/xserver 
	 tag : xorg-server-1.18.0-274-g8437955 
	 commit : 8437955 
	 author : Olivier Fourdan <ofourdan@redhat.com> 
	 age : 5 weeks ago 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-189-g7bd2ac6 
	 commit : 7bd2ac6 
	 author : Chris Wilson <chris@chris-wilson.co.uk> 
	 age : 3 days ago 


kernel 
==============================================
commit d9131d62d18ba94fb3ca019f1156c22b5f4ce23c
Author: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Date:   Fri Apr 15 14:54:26 2016 +0100

    drm-intel-nightly: 2016y-04m-15d-13h-53m-44s UTC integration manifest


Kernel version : 4.6.0-rc3
Architecture : source amd64 all
Homepage : http://www.kernel.org/
Comment 10 yann 2016-04-25 14:29:26 UTC
Increasing priority due to impact on manual tests
Comment 11 cprigent 2016-04-26 18:51:25 UTC
Humberto,
Could you check if the patch provided in bug 93328 fixes it.
Thanks
Comment 12 Humberto Israel Perez Rodriguez 2016-04-26 20:06:36 UTC
(In reply to cprigent from comment #11)
> Humberto,
> Could you check if the patch provided in bug 93328 fixes it.
> Thanks

please see my comments in the bug 93328, i tried with the following commit and the issue is still present

commit 1e81bacf1f7fdbdf83f46b55389713fa13cb1256
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Apr 24 11:36:51 2016 +0100
Comment 13 Humberto Israel Perez Rodriguez 2016-04-26 21:01:05 UTC
i've checked with the IGT's commit from bug 93328 27372851c8cdec29b198bc9ec8e21f83cd1ec083 this tests keeps fail on KBL-U
Comment 14 Humberto Israel Perez Rodriguez 2016-06-15 16:16:40 UTC
the issue is present with APL and the following configuration :


kernel : 4.6.1 from http://www.kernel.org/
Graphic stack
--> Component : drm 
         tag : libdrm-2.4.68 
         commit : fc09c5a 
--> Component : mesa 
         tag : mesa-11.2.2 
         commit : 3a9f628 
--> Component : xf86-video-intel 
         tag : 2.99.917 
         commit : baec802 
--> Component : libva 
         tag : libva-1.7.1.pre1 
         commit : 453876f 
--> Component : vaapi (intel-driver) 
         tag : 1.7.1.pre1 
         commit : 2975480 
--> Component : cairo 
         tag : 1.15.2 
         commit : db8a7f1 
--> Component : xserver 
         tag : xorg-server-1.18.3 
         commit : 9454cd5 
--> Component : intel-gpu-tools 
         tag : intel-gpu-tools-1.15 
         commit : 3ce58b6 
Software information
===============================================
Linux distribution                  : Ubuntu 16.04
Architecture                        : 64-bit
Bios revision                       : 138.25
KSC revision                        : 1.12
DMC revision                        : 1.07

Hardware information
===============================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : B1
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])
Comment 15 Elio 2016-06-20 18:25:25 UTC
Problem persist with following configuration, same behavior
Configuration:


============================================ 
Kernel version              	: 4.7.0-040700rc2-generic 
Linux distribution          	: Ubuntu 16.04 LTS 
Architecture                	: 64-bit 
Mesa version                	: 11.2.2
xf86-video-intel version    	: 2.99.917 
Xorg-Xserver version        	: 1.18.3 
DRM version                 	: 2.4.67 
VAAPI version               	: Intel i965 driver for Intel(R) CherryView - 1.7.0 
Cairo version               	: [1m[1;31mNot found[0m 
Intel GPU Tools version     	: 1.15-1 <-- [1;33mThis is a generic version of IGT[0m 
Kernel driver in use        	: [1m[1;32mi915[0m 
Hardware acceleration        	:  
Bios revision               	: 4.0 
KSC revision                	: [1m[1;31mNot found[0m <-- [1;33mmaybe the DUT doesn't has this firmware[0m 


 [1m[1;34mHardware information[0m 
============================================ 
Platform                     	:  
Motherboard model            	: Inspiron 15-3552 
Motherboard type             	: 0T14MC Portable 
Motherboard manufacturer     	: Dell Inc. 
CPU family                   	: Pentium 
CPU information              	: Intel(R) Pentium(R) CPU  N3700  @ 1.60GHz 
GPU Card                     	: Intel Corporation Device 22b1 (rev 21) (prog-if 00 [VGA controller]) 
Memory ram                   	: 4 GB 
Maximum memory ram allowed   	: 8 GB 
Display resolution       	:  
CPU's number             	: 4 
Hard drive Capacity 		: 128 GB
Comment 16 Luis Botello 2016-07-08 22:49:55 UTC
Issue still present on APL with the following config:

 Software information
============================================
Kernel version                  : 4.7.0-rc5-nightly+
Linux distribution              : Ubuntu 16.04 LTS
Architecture                    : 64-bit
Mesa version                    : 11.2.2 (git-3a9f628
xf86-video-intel version        : 2.99.917
Xorg-Xserver version            : 1.18.99.1
DRM version                     : 2.4.68
VAAPI version                   : Intel i965 driver for Intel(R) Broxton - 1.7.2.pre1 (1.7.0-53-gbcde10d)
Cairo version                   : 1.15.2
Intel GPU Tools version         : Tag [intel-gpu-tools-1.15-87-g376b813] / Commit [376b813]
Kernel driver in use            : i915
Hardware acceleration           : Enabled
Bios revision                   : 144.10
KSC revision                    : 1.15


 Hardware information
============================================
Platform                        : BXT-P
Motherboard model               : Broxton P
GPU Card                        : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])
Memory ram                      : 8 GB
CPU's number                    : 4

 Firmwares information
============================================
DMC version                     : 1.7
GUC version found               : 8.7
Comment 17 yann 2016-07-20 13:13:16 UTC
I investigated and the issue is coming from the fact that tests (update_display) are done successfully and then land into an infinite loop with glib main loop (waiting for an event that never happen when you are running)

If you run with option -a (ie all modes) this is not happening because in case of success test_all_modes exit via out_stdio. 

So I am changing Product here and either we consider that 
1- -f cannot be used to test automatically (via command line) and close as notabug, or consider -f is only be done in a automatic way and then goto out_stdio also in case of success,
2- check that we are not into an hotplug config and therefore we may not need to got though glib main loop,
3- handle a timeout (of no event) within glib main loop,
4- add another option ?
Comment 18 Elio 2017-11-14 16:52:24 UTC
This test need to press Q to close the test.


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.