Bug 93013

Summary: [SKL] igt/drm_import_export/import-close-race-flink result is crash
Product: DRI Reporter: Olivier Berthier <olivierx.berthier>
Component: DRM/IntelAssignee: Olivier Berthier <olivierx.berthier>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: DRI git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: SKL i915 features:
Attachments:
Description Flags
dmesg log file none

Description Olivier Berthier 2015-11-19 14:27:23 UTC
Created attachment 119939 [details]
dmesg log file

Setup:
------

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  D0 2+2 (ou ULX-D1)
QDF : QJA4 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories

Software
BIOS : SKLSE2R1.R00.B104.B01.151111011
ME FW : 11.0.0.1179
Ksc (EC FW): 1.19
Linux : Ubuntu 15.04 64 bits
Kernel : 4.3.0-rc6 drm-intel-next-fixes-2015-11-06
commit 816d2206f0f9953ca854e4ff1a2749a5cbd62715
Merge: d0baf92 1b0e3a0
Author: Dave Airlie <airlied@gmail.com>
Date:   Sat Nov 7 17:16:59 2015 +1000

    Merge tag 'drm-intel-next-fixes-2015-11-06' of git://anongit.freedesktop.org/drm-in
 

cairo: 1.14.2
drm: 2.4.65
vaapi/intel-driver: 1.6.1
vaapi/libva: 1.6.1
mesa: mesa-11.0.5
xf86-video-intel: 2.99.917
xserver:  xorg-server-1.17.2

Intel GPU Tools: master bfea74a9f64a900bcb90f946b38746781017449f

Steps:
------
run # ./drm_import_export --run-subtest import-close-race-flink

Actual result:
---------------
The result of the test is crash.

Expected result:
----------------
The result is pass or skip.

Program output:
---------------

IGT-Version: 1.12-gbfea74a (x86_64) (Linux: 4.3.0-rc5-drm-intel-for-next-ww47+ x86_64)
Received signal SIGSEGV.
Subtest import-close-race-flink: CRASH (0.000s)
Received signal SIGSEGV.
Test assertion failure function gem_quiescent_gpu, file drmtest.c:184:
Failed assertion: drmIoctl((fd), ((((1U) << (((0+8)+8)+14)) | ((('d')) << (0+8)) | (((0x40 + 0x29)) << 0) | ((((sizeof(struct drm_i915_gem_execbuffer2)))) << ((0+8)+8)))), (&execbuf)) == 0
Comment 1 Mika Kuoppala 2015-11-25 13:53:58 UTC
commit 32329b2e7dd9b6b69a397da0356bd1ebc6a45901
Author: Mika Kuoppala <mika.kuoppala@intel.com>
Date:   Wed Nov 25 15:00:50 2015 +0200

    tests/drm_import_export: Always loop with mutex held
Comment 2 cprigent 2015-11-27 16:58:43 UTC
Test is fail on SKL-Y with kernel tag drm-intel-testing-2015-11-20 

Motherboard: Skylake Y
cpu model name	: Intel(R) Core(TM) m5-6Y57 CPU @ 1.10GHz
cpu model : 78
cpu family : 6
Graphic card: Device 191e (rev 07) 
Software:
Kernel: tag drm-intel-testing-2015-11-20 5074e51ef3a2b0ad4c2354e95aec5380a93966b3 (4.4-rc1) from git://anongit.freedesktop.org/drm-intel
Ubuntu 14.04.2 LTS
Bios: SKLSE2R1.R00.B104.B01.1511110114
Libdrm: 2.4.65 from http://cgit.freedesktop.org/mesa/drm

Assigned to Olivier to check on nightly
Comment 3 Mika Kuoppala 2015-12-01 16:27:10 UTC
You need latest intel-gpu-tools to test as the segfault is caused by
bad lockhandling in the test executable.
Comment 4 cprigent 2015-12-08 09:59:22 UTC
Test is fail with:
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  D0 2+2 (ou ULX-D1)
QDF : QJA4 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories
Linux distribution: Ubuntu 15.10 or 15.04 LTS 64 bits
Kernel: drm-intel-nightly 4.4.0-rc2 17874a0 from http://cgit.freedesktop.org/drm-intel/
  commit 17874a0bd04949ab460431e6017860ab98e0e4d2
  Author: Ville Syrjala <ville.syrjala@linux.intel.com>
  Date:   Thu Nov 26 18:58:09 2015 +0200
  drm-intel-nightly: 2015y-11m-26d-16h-57m-42s UTC integration manifest
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.6 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.1 from http://cgit.freedesktop.org/libva/
intel-driver 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.14.4 from http://cgit.freedesktop.org/cairo
IGT 1.12 4cfcea4 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/
Comment 5 cprigent 2015-12-08 09:59:45 UTC
I confirm test is Pass with last setup. So closed.

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  D0 2+2 (ou ULX-D1)
QDF : QJA4 
CPU : SKL D0
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories
Linux distribution: Ubuntu 15.10 64 bits
Kernel: drm-intel-nightly 4.4.0-rc4 ce0affb from http://cgit.freedesktop.org/drm-intel/
  commit ce0affb33df59b20bc7771d6d6b7998c2b895ea5
  Author: Jani Nikula <jani.nikula@intel.com>
  Date:   Mon Dec 7 10:49:34 2015 +0200
  drm-intel-nightly: 2015y-12m-07d-08h-49m-17s UTC integration manifestxorg-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.6 from http://cgit.freedesktop.org/mesa/mesa/
libva-1.6.1 from http://cgit.freedesktop.org/libva/
intel-driver 1.6.1 from http://cgit.freedesktop.org/vaapi/intel-driver
cairo 1.14.4 from http://cgit.freedesktop.org/cairo
IGT 1.13 8b22e05 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

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.