Bug 96564 - [BSW/BDW/SKL/KBL] igt / gem_exec_parallel / * contexts subcases send segmentation fault
Summary: [BSW/BDW/SKL/KBL] igt / gem_exec_parallel / * contexts subcases send segmenta...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: DRI git
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: 2016-06-17 17:52 UTC by Elio
Modified: 2016-08-29 14:04 UTC (History)
1 user (show)

See Also:
i915 platform: BDW, BSW/CHT, KBL, SKL
i915 features: GEM/Other


Attachments
Dmesg (248.97 KB, text/plain)
2016-06-17 17:52 UTC, Elio
no flags Details
results.json (15.03 KB, text/plain)
2016-07-05 14:44 UTC, cprigent
no flags Details
dmesg (1.29 MB, text/plain)
2016-07-05 14:45 UTC, cprigent
no flags Details
KBL-gem_exec_parallel__context-kern.log (570.29 KB, text/plain)
2016-08-04 13:48 UTC, cprigent
no flags Details
KBLU-gem_exec_parallel__blt-contexts-output (395.19 KB, text/plain)
2016-08-04 13:48 UTC, cprigent
no flags Details
KBLU-gem_exec_parallel__bsd-contexts-output (388.71 KB, text/plain)
2016-08-04 13:48 UTC, cprigent
no flags Details
KBLU-gem_exec_parallel__contexts-output (393.15 KB, text/plain)
2016-08-04 13:49 UTC, cprigent
no flags Details
KBLU-gem_exec_parallel__vebox-contexts-output (395.84 KB, text/plain)
2016-08-04 13:49 UTC, cprigent
no flags Details
APL-gem_exec_parallel__contexts-kern.log (878.88 KB, text/plain)
2016-08-12 13:32 UTC, cprigent
no flags Details
apl-gem_exec_parallel__blt_contexts-output (524.33 KB, text/plain)
2016-08-12 13:32 UTC, cprigent
no flags Details
apl-gem_exec_parallel__bsd_contexts-output (400.26 KB, text/plain)
2016-08-12 13:33 UTC, cprigent
no flags Details
apl-gem_exec_parallel__contexts-output (391.12 KB, text/plain)
2016-08-12 13:33 UTC, cprigent
no flags Details
apl-gem_exec_parallel__vebox-contexts-output (401.93 KB, text/plain)
2016-08-12 13:33 UTC, cprigent
no flags Details
dmesg log (249.08 KB, text/plain)
2016-08-19 16:04 UTC, Jairo Miramontes
no flags Details

Description Elio 2016-06-17 17:52:27 UTC
Created attachment 124579 [details]
Dmesg

The following sub cases are failing sending segmentation fault:

igt@gem_exec_parallel@contexts
igt@gem_exec_parallel@bsd-contexts
igt@gem_exec_parallel@blt-contexts
igt@gem_exec_parallel@vebox-contexts


Those test cases are failing sending out a segmentation fault.

The problem seems to be how are the test managing the ioctl-wrappers.


gem_exec_parall[3339]: segfault at 0 ip           (null) sp 00007ffc462e0dc0 error 14 in gem_exec_parallel[400000+1e000]
[  467.621070] gem_exec_parallel: executing


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 1 Jairo Miramontes 2016-06-17 20:15:03 UTC
Same failures are also reproduced BDW

igt@gem_exec_parallel@contexts
igt@gem_exec_parallel@bsd-contexts
igt@gem_exec_parallel@blt-contexts
igt@gem_exec_parallel@vebox-contexts


Under the following Configuration:

 Software information
============================================ 
Kernel version              	: 4.6.1-mainline-ww24-version-4.6.1 
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.3 
DRM version                 	: 2.4.68 
VAAPI version               	: Intel i965 driver for Intel(R) Broadwell - 1.7.1.pre1 (1.7.1.pre1) 
Cairo version               	: 1.15.2 
Intel GPU Tools version       	: Tag [intel-gpu-tools-1.15] / Commit [3ce58b6] 
Kernel driver in use        	: i915 
Hardware acceleration        	: Enabled 
Bios revision               	: 5.6 
KSC revision                	: Not found <-- maybe the DUT doesn't has this firmware 


 Hardware information 
============================================ 
Platform                     	:  
Motherboard model            	:                                   
Motherboard type             	: NUC5i7RYB Desktop 
Motherboard manufacturer     	:                                   
CPU family                   	: Core i7 
CPU information              	: Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz 
GPU Card                     	: Intel Corporation Broadwell-U Integrated Graphics (rev 09) (prog-if 00 [VGA controller]) 
Memory ram                   	: 8 GB 
Maximum memory ram allowed   	: 16 GB 
Display resolution       	: 5760x2160 
CPU's number             	: 4 
Hard drive Capacity 		: 120 GB
Comment 2 Luis Botello 2016-06-22 16:20:45 UTC
Issue is also seen on SKL with the following config:

 Software information
============================================
Kernel version                  : 4.6.1-mainline-ww24-version-4.6.1
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.3
DRM version                     : 2.4.68
VAAPI version                   : Intel i965 driver for Intel(R) Skylake - 1.7.1.pre1 (1.7.1.pre1)
Cairo version                   : 1.15.2
Intel GPU Tools version         : Tag [intel-gpu-tools-1.15] / Commit [3ce58b6]
Kernel driver in use            : i915
Hardware acceleration           : Enabled
Bios revision                   : 1.0


 Hardware information
============================================
Platform                        : SKL
Motherboard model               : Inspiron 15-7568
Motherboard type                : 02HK88 Laptop
Motherboard manufacturer        : Dell Inc.
CPU family                      : Core i7
CPU information                 : Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
GPU Card                        : Intel Corporation Sky Lake Integrated Graphics (rev 07) (prog-if 00 [VGA controller])

 Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.26
Comment 3 Humberto Israel Perez Rodriguez 2016-06-30 16:47:27 UTC
The following tests cases fail with the next configuration

Tests cases
============================================
igt@gem_exec_parallel@blt-contexts
igt@gem_exec_parallel@bsd-contexts
igt@gem_exec_parallel@vebox-contexts
igt@gem_exec_parallel@contexts


Software information
============================================
Kernel version                  : 4.7.0-rc4-drm-intel-nightly-ww26-commit-5c244f4+
Linux distribution              : Ubuntu 16.04 LTS
Architecture                    : 64-bit

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])
Memory ram                      : 16 GB

Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.7
GUC fw loaded                   : SUCCESS
GUC version wanted              : 8.7
GUC version found               : 8.7

 
 --> Component : drm 
	 url : http://cgit.freedesktop.org/mesa/drm 
	 tag : libdrm-2.4.68-9-g625d181 
	 commit : 625d181 
 --> Component : cairo 
	 url : http://cgit.freedesktop.org/cairo 
	 tag : 1.15.2 
	 commit : db8a7f1 
 --> Component : intel-gpu-tools 
	 url : http://cgit.freedesktop.org/xorg/app/intel-gpu-tools 
	 tag : intel-gpu-tools-1.15-54-g88c1f7c 
	 commit : 88c1f7c 

Kernel information
============================================
commit 8a6521c80881208ba106696e67d143ab64bb34c2
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jun 29 17:08:50 2016 +0100

    drm-intel-nightly: 2016y-06m-29d-16h-08m-16s UTC integration manifest
Comment 4 yann 2016-07-05 13:33:18 UTC
Elio, please confirm whether or not we have still some segfault.
If not, then it may be duplicate of 96564
Comment 5 yann 2016-07-05 13:33:51 UTC
wrong bug id, duplicate candidate is bug 94539
Comment 6 cprigent 2016-07-05 14:44:14 UTC
Created attachment 124908 [details]
results.json

Some subtests are causing same result as bug 94539. Others (or when the full family is executed) are causing a seg fault.

Platform: 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 from 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
Kernel: drm-intel-nightly 4.7.0-rc4 5c244f4 from http://cgit.freedesktop.org/drm-intel/
                commit 5c244f4b128c6274755007e080d46e0a61b71534
                Author: Chris Wilson <chris@chris-wilson.co.uk>
                Date:   Fri Jun 24 16:17:56 2016 +0100
                drm-intel-nightly: 2016y-06m-24d-15h-17m-32s UTC integration manifest
drm: libdrm-2.4.68-9 625d181 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 56cd706 from git://anongit.freedesktop.org/mesa/mesa
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
server: xorg-server-1.18.0-419 7397a21 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-670 cac7c8d from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-26 c36971c from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-52 f47e513 from git://git.freedesktop.org/git/vaapi/intel-driver
DMC 1.07
GuC 8.7
Intel-Gpu-Tools: 1.15-54 88c1f7c from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 7 cprigent 2016-07-05 14:45:25 UTC
Created attachment 124909 [details]
dmesg
Comment 8 Humberto Israel Perez Rodriguez 2016-07-08 16:50:16 UTC
The following tests fails on APL :

Tests cases
=============================================
igt@gem_exec_parallel@contexts
igt@gem_exec_parallel@vebox-contexts
igt@gem_exec_parallel@blt-contexts
igt@gem_exec_parallel@bsd-contexts


Hardware Information
=============================================
Platform: APL system
Linux distribution: Ubuntu 16.04 64 bits
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 FAB1
Reworks : R19, R20
Bios : 144.10
KSC: 1.15

Software Information
===============================================
drm: libdrm-2.4.68-11 7996a87
mesa: mesa-11.2.2 3a9f628
cairo: 1.15.2 db8a7f1
server: xorg-server-1.18.0-443 3762edd 
xf86-video-intel: 2.99.917-674 9154dff
libva: libva-1.7.0-26 c36971c
vaapi-intel-driver: 1.7.0-53 bcde10d
Intel-Gpu-Tools 1.15-87 376b813 

Firmwares information
============================================
DMC fw loaded                   : yes
DMC version                     : 1.7
GUC fw loaded                   : SUCCESS
GUC version wanted              : 8.7
GUC version found               : 8.7


Kernel
===============================================
commit 2fe5da8adcbe5a34830b98c63878eea756e977a2
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sat Jul 2 19:32:50 2016 +0100

    drm-intel-nightly: 2016y-07m-02d-18h-31m-39s UTC integration manifest
Comment 9 cprigent 2016-08-04 13:48:18 UTC
Created attachment 125525 [details]
KBL-gem_exec_parallel__context-kern.log
Comment 10 cprigent 2016-08-04 13:48:34 UTC
Created attachment 125526 [details]
KBLU-gem_exec_parallel__blt-contexts-output
Comment 11 cprigent 2016-08-04 13:48:49 UTC
Created attachment 125527 [details]
KBLU-gem_exec_parallel__bsd-contexts-output
Comment 12 cprigent 2016-08-04 13:49:06 UTC
Created attachment 125528 [details]
KBLU-gem_exec_parallel__contexts-output
Comment 13 cprigent 2016-08-04 13:49:43 UTC
Created attachment 125529 [details]
KBLU-gem_exec_parallel__vebox-contexts-output

KBLU logs attached.

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

Software
BIOS: 38_07 KBLSE2R1.R00.X038.P07.1606200632 from https://ubit-artifactory-ba.intel.com/artifactory/simple/one-windows-local/Submissions/ifwi/KBL_PURPLE_IFWI_2016_WW26_1_00_HR'16/IFWI-KBL_PURPLE_IFWI_2016_WW26_1_00_HR'16-R.7z
ME FW: 11.5.0.1058
EC FW: 1.19
Ksc (EC FW): 1.20
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.7.0 6f87e85 from http://cgit.freedesktop.org/drm-intel/
   commit 6f87e85fa302ffdb4cb9f4cd712691165923c7a2
 Author: Chris Wilson <chris@chris-wilson.co.uk>
  Date:   Mon Aug 1 15:53:41 2016 +0100
  drm-intel-nightly: 2016y-08m-01d-14h-53m-17s UTC integration manifest
drm: libdrm-2.4.70 f19cd3a from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xserver: xorg-server-1.18.0-502 c833c08 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-688 49daf5d from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-40 f7e2263 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-64 1cd6795 from git://git.freedesktop.org/git/vaapi/intel-driver
GuC 9.14 from http://rdvivi-hillsboro.jf.intel.com/firmware/kbl_guc_ver9_14.tar.bz2 
DMC 1.01 from: https://01.org/linuxgraphics/downloads/kabylake-dmc-1.01 
Intel-Gpu-Tools 1.15-188 53b4dfd from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 14 cprigent 2016-08-12 13:32:26 UTC
Created attachment 125731 [details]
APL-gem_exec_parallel__contexts-kern.log

(In reply to yann from comment #4)
> Elio, please confirm whether or not we have still some segfault.
> If not, then it may be duplicate of 96564

Yes, Segmentation fault (core dumped) is reproduced on APL.
This is not the same as bug 94539.

Platform: 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
Kernel: 4.8.0-rc1 fc1e1be from http://cgit.freedesktop.org/drm-intel/
  commit fc1e1be6fef445e9ea5b99db5fe49bcb49f77eee
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Thu Aug 11 01:09:44 2016 +0300
  drm-intel-nightly: 2016y-08m-10d-22h-09m-24s UTC integration manifest
  with patch https://bugs.freedesktop.org/attachment.cgi?id=125686 applied
drm: libdrm-2.4.70 f19cd3a from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo: 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xserver: xorg-server-1.18.0-502 c833c08 from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel: 2.99.917-688 49daf5d from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva: libva-1.7.0-40 f7e2263 from git://git.freedesktop.org/git/vaapi/libva
vaapi-intel-driver: 1.7.0-64 1cd6795 from git://git.freedesktop.org/git/vaapi/intel-driver
GuC 9.14 from http://rdvivi-hillsboro.jf.intel.com/firmware/kbl_guc_ver9_14.tar.bz2 
DMC 1.01 from: https://01.org/linuxgraphics/downloads/kabylake-dmc-1.01 
Intel-Gpu-Tools 1.15 9afd545 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git
Comment 15 cprigent 2016-08-12 13:32:51 UTC
Created attachment 125732 [details]
apl-gem_exec_parallel__blt_contexts-output
Comment 16 cprigent 2016-08-12 13:33:06 UTC
Created attachment 125733 [details]
apl-gem_exec_parallel__bsd_contexts-output
Comment 17 cprigent 2016-08-12 13:33:22 UTC
Created attachment 125734 [details]
apl-gem_exec_parallel__contexts-output
Comment 18 cprigent 2016-08-12 13:33:37 UTC
Created attachment 125735 [details]
apl-gem_exec_parallel__vebox-contexts-output
Comment 19 Jairo Miramontes 2016-08-19 16:04:12 UTC
Created attachment 125911 [details]
dmesg log

The following tests were reproduced on SKL with below configuration:

Test Cases
===================================================
igt@gem_exec_parallel@blt-contexts		
igt@gem_exec_parallel@bsd-contexts		
igt@gem_exec_parallel@contexts		
igt@gem_exec_parallel@vebox-contexts

Hardware
==================================================================================

Platform: NUC6i3SYB
CPU: Intel(R) Core(TM) i3-6100U CPU @ 2.30GHZ (family 6, model 78, stepping 3)
Motherboard version: H81132-502
GPU: Intel® HD Graphics 520 - Intel Corporation Sky Lake Integrated Graphics (rev 07)
Memory: one 8GB card Kingston KVR21S15D8/8
SSD: Samsung 850 EVO M.2 120 Go

Software
==============================================================================================
Bios: SYSKLi35.86A.0045.2016.0527.1055 from https://downloadcenter.intel.com/downloads/eula/26097/BIOS-Update-SYSKLi35-86A-?httpDown=https%3A%2F%2Fdownloadmirror.intel.com%2F26097%2Feng%2FSY0045.bio
Linux distribution: Ubuntu 16.04 64 bits
Kernel: 4.8.0-rc2 e4ec788 from http://cgit.freedesktop.org/drm-intel/
  commit e4ec788166b13fc8b5b7e188c522d4cf07ba53eb
  Author: Sumit Semwal <sumit.semwal@linaro.org>
  Date:   Tue Aug 16 12:36:30 2016 +0530
  drm-intel-nightly: 2016y-08m-16d-07h-06m-09s UTC integration manifest
libdrm-2.4.70-2 b214b05 from git://anongit.freedesktop.org/mesa/drm
mesa: mesa-11.2.2 3a9f628from git://anongit.freedesktop.org/mesa/mesa
cairo 1.15.2 db8a7f1 from git://anongit.freedesktop.org/cairo
xorg-server-1.18.0-525 de5291c from git://git.freedesktop.org/git/xorg/xserver
xf86-video-intel 2.99.917-695 c8fc7f5 from git://git.freedesktop.org/git/xorg/driver/xf86-video-intel
libva-1.7.0-45 b27feb9 from git://git.freedesktop.org/git/vaapi/libva 
vaapi-intel-driver: 1.7.0-82 98555d2 from git://git.freedesktop.org/git/vaapi/intel-driver
DMC 1.26 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/skldmcver126.tar_1.bz2
GUC 6.1 from https://01.org/sites/default/files/downloads/intelr-graphics-linux/sklgucver61.tar.bz2
Intel-Gpu-Tools 1.15 a147ef2 from http://anongit.freedesktop.org/git/xorg/app/intel-gpu-tools.git


Attachments
===============================================
Dmesg log of the above tests
Comment 20 Chris Wilson 2016-08-26 19:34:04 UTC
commit f7978a0c581a8a840a28306f8da43e06e7fef3bf
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Mon Aug 22 09:03:36 2016 +0100

    drm/i915: Allow the user to pass a context to any ring


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.