Bug 95389 - [KBL] igt / kms_panel_fitting segmentation fault
Summary: [KBL] igt / kms_panel_fitting segmentation fault
Status: CLOSED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Olivier Berthier
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 17:25 UTC by cprigent
Modified: 2016-08-11 12:40 UTC (History)
1 user (show)

See Also:
i915 platform: KBL
i915 features: display/Other


Attachments
kms_panel_fitting.0.crash from /var/crash (335.68 KB, text/plain)
2016-05-13 17:25 UTC, cprigent
no flags Details
kbl-kms_panel_fitting-kern.log (284.06 KB, text/plain)
2016-05-13 17:25 UTC, cprigent
no flags Details
kblu dmesg log (187.76 KB, text/x-log)
2016-06-24 11:50 UTC, Olivier Berthier
no flags Details

Description cprigent 2016-05-13 17:25:04 UTC
Created attachment 123715 [details]
kms_panel_fitting.0.crash from /var/crash

Hardware
Platform: KABY LAKE-U
CPU : Intel(R) Core(TM) @ 2.60GHz
MCP : KBL-U G0 2+2 (ou ULT-G0)
QDF : QYQ8
Chipset PCH: SPT-LP C1
CRB : KABY LAKE U DDR3L RVP7 CRB FAB1

Software
BIOS : KBLSE2R1.R00.X015.B01.1511271314
ME FW : 11.5.0.1008
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 16.04 64 bits
kernel drm-intel-nightly 4.6.0-rc7 61f856f from http://cgit.freedesktop.org/drm-intel/
  commit 61f856faa1e6ff9dddad214be1e372e8aacfc0f4
  Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
  Date:   Mon May 9 19:24:21 2016 +0300
  drm-intel-nightly: 2016y-05m-09d-16h-24m-01s UTC integration manifest
libdrm-2.4.68 fc09c5a from git://anongit.freedesktop.org/mesa/drm
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
IGT 1.14 cc24755 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git

Steps:
------
Execute commands:
cd <...>/intel-gpu-tools/tests
# ./kms_panel_fitting

Actual result:
--------------
Segmentation fault

Expected result:
----------------
Test is Pass

Output:
------
# ./kms_panel_fitting
IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.6.0-rc7-nightly+ x86_64)
(kms_panel_fitting:1197) igt-core-CRITICAL: Could not open data file "1080p-left.png": No such file or directoryReceived signal SIGSEGV.
Segmentation fault (core dumped)
Comment 1 cprigent 2016-05-13 17:25:20 UTC
Created attachment 123716 [details]
kbl-kms_panel_fitting-kern.log
Comment 2 cprigent 2016-05-13 17:26:13 UTC
Could be due to?
commit ec83ef916779d837efb29d8978cfbb8b690c6ce1
Author: Robert Foss <robert.foss@collabora.com>
Date:   Tue May 3 10:40:22 2016 -0400
kms_panel_fitting: Enable connectors with "scaling mode" property set.
Comment 3 yann 2016-05-14 08:16:51 UTC
No, this is due to missing "1080p-left.png" file which is present in tests folder of IGT.
please check and update igt test suite and confirm that you have this file.
Comment 4 cprigent 2016-05-16 11:24:57 UTC
Image is located here: <...>/intel-gpu-tools/tests/1080p-left.png
Comment 5 Humberto Israel Perez Rodriguez 2016-05-18 02:36:49 UTC
(In reply to yann from comment #3)
> No, this is due to missing "1080p-left.png" file which is present in tests
> folder of IGT.
> please check and update igt test suite and confirm that you have this file.

./kms_panel_fitting --debug

the image is in tests folder but however the test look like that is looking in some other place

IGT-Version: 1.14-NOT-GIT (x86_64) (Linux: 4.6.0-drm-intel-nightly-ww21-commit-c5034bf+ x86_64)
(kms_panel_fitting:2340) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_panel_fitting:2340) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_panel_fitting:2340) igt-kms-DEBUG: display: init {
(kms_panel_fitting:2340) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_panel_fitting:2340) igt-kms-DEBUG: display:     DP-1: Selecting pipe B
(kms_panel_fitting:2340) igt-kms-DEBUG: display:     DP-2: Selecting pipe C
(kms_panel_fitting:2340) igt-kms-DEBUG: display: }
(kms_panel_fitting:2340) igt-kms-DEBUG: display: eDP-1: set_pipe(A)
(kms_panel_fitting:2340) igt-fb-DEBUG: igt_create_fb_with_bo_size(width=1920, height=1080, format=0x34325258, tiling=0x0, size=0)
(kms_panel_fitting:2340) igt-fb-DEBUG: igt_create_fb_with_bo_size(handle=1, pitch=7680)
(kms_panel_fitting:2340) igt-core-CRITICAL: Could not open data file "1080p-left.png": No such file or directoryReceived signal SIGSEGV.

real    0m0.583s
user    0m0.032s
sys     0m0.004s

(07:34 PM) [gfx@gfx04x] [tests]$ : ls -l  | grep 1080p
-rwxrwxrwx 1 gfx gfx   41858 May 17 19:26 1080p-left.png
-rwxrwxrwx 1 gfx gfx   42502 May 17 16:30 1080p-right.png

(07:35 PM) [gfx@gfx04x] [tests]$ : pwd
/home/gfx/intel-graphics/intel-gpu-tools/tests
Comment 6 Humberto Israel Perez Rodriguez 2016-05-26 15:40:55 UTC
The following tests cases fail with the following configuration :


Tests cases
===============================================
igt@kms_panel_fitting


Gfx stack information
===============================================
 --> Component : drm 
	 tag : libdrm-2.4.68-4-g7aab852 
	 commit : 7aab852 
 --> Component : mesa 
	 tag : mesa-11.1.2 
	 commit : 7bcd827 
 --> Component : cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
 --> Component : intel-gpu-tools
	 tag : intel-gpu-tools-1.14-346-gcce2ff0
	 commit : cce2ff0


Software information
===============================================
Kernel version                      : 4.6.0-rc7-drm-intel-nightly-ww20-commit-5528ede+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 138.22
KSC revision                        : 1.12
DMC revision                        : 1.07
GUC revision                        : 8.7


Hardware information
===============================================
Platform                            : BXT-P
Motherboard model                   : Broxton P
Motherboard type                    : NOTEBOOK Hand Held
Motherboard manufacturer            : Intel Corp.
CPU family                          : Other
CPU information                     : 06/5c
GPU Card                            : Intel Corporation Device 5a84 (rev 0a) (prog-if 00 [VGA controller])


kernel
===============================================
commit 2ec823981d62c56d1511bda42b8295e31ece800f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun May 22 18:23:13 2016 +0200

    drm-intel-nightly: 2016y-05m-22d-16h-22m-45s UTC integration manifest
Comment 7 maria guadalupe 2016-05-27 21:44:34 UTC
This is also reproduced on KBL with the next configuration

Gfx stack information
===============================================
--> Component : drm 
                 tag : libdrm-2.4.68-4-g7aab852 
                 commit : 7aab852 
 --> Component : mesa 
                 tag : mesa-11.1.2 
                 commit : 7bcd827 
 --> Component : cairo 
                 tag : 1.15.2 
                 commit : db8a7f1 
 --> Component : intel-gpu-tools
                tag : intel-gpu-tools-1.14-346-gcce2ff0
                commit : cce2ff0


Software information
============================

Kernel version                      : 4.6.0-nightly+
Linux distribution                  : Ubuntu 15.10
Architecture                        : 64-bit
Bios revision                       : 28.1
KSC revision                        : 1.15


Hardware information 
=============================

Platform                            : SKL-Y to KBL (RVP3)
Motherboard model                   : Kabylake Client platform
Motherboard type                    : Skylake Y LPDDR3 RVP3 Laptop
Motherboard manufacturer            : Intel Corporation
CPU family                          : Other
CPU information                     : Genuine Intel(R) CPU 0000 @ 0.90GHz
GPU Card                            : Intel Corporation Device 591e (prog-if 00 [VGA controller])


|=== kernel information ===|

commit 2ec823981d62c56d1511bda42b8295e31ece800f
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Sun May 22 18:23:13 2016 +0200


========== test cases failed ===============
igt@kms_panel_fitting
Comment 8 Olivier Berthier 2016-06-01 07:59:44 UTC
Not reproduced with the latest version of IGT:

commit 3ce58b6f9502329d03207a786301d077e7f0cf6c
Author: Marius Vlad <marius.c.vlad@intel.com>
Date:   Tue May 31 18:33:24 2016 +0300

    Updated NEWS, and bumped to 1.15.
    
    Signed-off-by: Marius Vlad <marius.c.vlad@intel.com>
Comment 9 Humberto Israel Perez Rodriguez 2016-06-03 17:29:20 UTC
for something reason with run-tests.sh script this test fail, but manually it  shows pass in APL


--> Component : intel-gpu-tools 
	 tag : intel-gpu-tools-1.14-348-g303b380 
	 commit : 303b380 

kernel
===============================================
commit fb023a2062df06c9e097e1f8f2bcf252194b9413
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon May 30 10:46:14 2016 +0200

    drm-intel-nightly: 2016y-05m-30d-08h-45m-53s UTC integration manifest
Comment 10 maria guadalupe 2016-06-06 16:39:29 UTC
This bug was also reproduced on KBL under the following configuration

Software information
============================================
Kernel version                  : 4.6.0-drm-intel-nightly-ww23-commit-fb023a2+
Linux distribution              : Ubuntu 16.04 LTS
Architecture                    : 64-bit
Mesa version                    : Not found << Please see the message at the bottom >>
xf86-video-intel version        : 2.99.917
Xorg-Xserver version            : 1.18.3
DRM version                     : 2.4.68
VAAPI version                   : Intel i965 driver for Intel(R) Kabylake - 1.7.0
Cairo version                   : 1.15.2
Intel GPU Tools version         : Tag [intel-gpu-tools-1.14-348-g303b380] / Commit [303b380]
Kernel driver in use            : i915
Hardware acceleration           :
Bios revision                   : 28.1
KSC revision                    : 1.15


 Hardware information
============================================
Platform                        : SKL-Y to KBL (RVP3)
Motherboard model               : Kabylake Client platform
Motherboard type                : Skylake Y LPDDR3 RVP3 Laptop
Motherboard manufacturer        : Intel Corporation
CPU family                      : Other
CPU information                 : Genuine Intel(R) CPU 0000 @ 0.90GHz
GPU Card                        : Intel Corporation Device 591e (prog-if 00 [VGA controller])
Memory ram                      : 4 GB
Maximum memory ram allowed      : 16 GB
Display resolution              :
CPU's number                    : 4
Hard drive Capacity             : 120 GB

 Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.1

kernel configuration
=====================
commit fb023a2062df06c9e097e1f8f2bcf252194b9413
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon May 30 10:46:14 2016 +0200

drm-intel-nightly: 2016y-05m-30d-08h-45m-53s UTC integration manifest


Kernel version : 4.6.0

========== test cases failed ===============

igt@kms_panel_fitting
Comment 11 cprigent 2016-06-17 16:08:10 UTC
I see it failing again on KBL-U.
Assign to Olivier to check our installation procedure/package.
Comment 12 Olivier Berthier 2016-06-24 08:14:35 UTC
Not reproduced with IGT 1.15, please use the lastest version of IGT.
Comment 13 Olivier Berthier 2016-06-24 11:50:26 UTC
Created attachment 124701 [details]
kblu dmesg log

The test pass on Sky Lake Y and Kaby Lake Y, but still fail on Kaby Lake U.

IGT-Version: 1.15-gc344044 (x86_64) (Linux: 4.7.0-rc4-nightly+ x86_64)
(kms_panel_fitting:1434) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_panel_fitting:1434) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_panel_fitting:1434) igt-kms-DEBUG: display: init {
(kms_panel_fitting:1434) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_panel_fitting:1434) igt-kms-DEBUG: display: }
(kms_panel_fitting:1434) igt-kms-DEBUG: display: eDP-1: set_pipe(A)
(kms_panel_fitting:1434) CRITICAL: Test assertion failure function test_panel_fitting, file kms_panel_fitting.c:164:
(kms_panel_fitting:1434) CRITICAL: Failed assertion: cairo_surface_status(image) == CAIRO_STATUS_SUCCESS
(kms_panel_fitting:1434) CRITICAL: Last errno: 2, No such file or directory
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [__real_main218+0x545]
  #2 [main+0x29]
  #3 [__libc_start_main+0xf0]
  #4 [_start+0x29]
  #5 [<unknown>+0x29]
Test kms_panel_fitting failed.
**** DEBUG ****
(kms_panel_fitting:1434) igt-core-DEBUG: Test requirement passed: !igt_run_in_simulation()
(kms_panel_fitting:1434) drmtest-DEBUG: Test requirement passed: fd >= 0
(kms_panel_fitting:1434) igt-kms-DEBUG: display: init {
(kms_panel_fitting:1434) igt-kms-DEBUG: display:     eDP-1: Selecting pipe A
(kms_panel_fitting:1434) igt-kms-DEBUG: display: }
(kms_panel_fitting:1434) igt-kms-DEBUG: display: eDP-1: set_pipe(A)
(kms_panel_fitting:1434) CRITICAL: Test assertion failure function test_panel_fitting, file kms_panel_fitting.c:164:
(kms_panel_fitting:1434) CRITICAL: Failed assertion: cairo_surface_status(image) == CAIRO_STATUS_SUCCESS
(kms_panel_fitting:1434) CRITICAL: Last errno: 2, No such file or directory
****  END  ****
(kms_panel_fitting:1434) igt-core-DEBUG: Exiting with status code 99
FAIL (0.004s)
Comment 14 cprigent 2016-08-11 12:40:05 UTC
kms_panel_fitting has now 2 subtests. Let's open a new bug if they fail.


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.