Bug 92222 - [FIXED] drm_import_export / import-close-race-prime fails
Summary: [FIXED] drm_import_export / import-close-race-prime fails
Status: CLOSED WORKSFORME
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: cprigent
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-01 20:32 UTC by Elio
Modified: 2016-02-22 16:06 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg log file for SKL (326.66 KB, text/plain)
2015-10-02 12:06 UTC, Olivier Berthier
no flags Details

Description Elio 2015-10-01 20:32:48 UTC
Test enviroment:
Name: drm-intel-testing

Description: IGT tools manage all basic functions for graphics stack

CPU: Intel(R) CPU @ 1.60GHz

Board: : Wilson Beach DVT2 Ultrabook

GPU: SoC: Broadwell 2+2 D0 (QDF : QGHA)

Kernel 4.3.0-rc8-drm-intel-testing-2015-08-28
Mesa: mesa-10.6.7 from http://cgit.freedesktop.org/mesa/mesa/
Xf86_video_intel: 2.99.917 from
http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm: libdrm-2.4.64 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from http://cgit.freedesktop.org/cairo
libva: libva-1.6.0 from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.1. from http://cgit.freedesktop.org/vaapi/intel-driver
xorg: 1.17.99 installed with script git_xorg.sh
Xserver: xorg-server-1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Intel-gpu-tools: 1.12 from http://cgit.freedesktop.org/xorg/app/intel-gpu

Steps to reproduce:

1. Install intel graphic stack with mentioned configuration
2. Install igt
3. Execute drm_import_export@import-close-race-prime

Expected result:  Test should pass without issues

Actual result:


Returncode	-11
Time	0:00:00.176104
Stdout	
IGT-Version: 1.12-g1f9e055 (x86_64) (Linux: 4.3.0-rc2-drm-intel-nightly+ x86_64)
Stack trace:
  #0 [__igt_fail_assert+0xf1]
  #1 [test_import_close_race+0x0]
  #2 [start_thread+0xc2]
  #3 [clone+0x6d]
  #4 [<unknown>+0x6d]
Subtest import-close-race-prime: FAIL (0.032s)
Stderr	
Test assertion failure function import_close_thread, file drm_import_export.c:172:
Failed assertion: (*__errno_location ()) == 2
Last errno: 22, Invalid argument
error: 22 != 2
Subtest import-close-race-prime failed.
**** DEBUG ****
Test assertion failure function import_close_thread, file drm_import_export.c:172:
Failed assertion: (*__errno_location ()) == 2
Last errno: 22, Invalid argument
error: 22 != 2
****  END  ****
Received signal SIGSEGV.
Received signal SIGSEGV.

Log is going to be attached as soon as possible
Comment 1 Olivier Berthier 2015-10-02 12:06:11 UTC
Created attachment 118594 [details]
dmesg log file for SKL

Same bug found on Sky Lake Y.
I attach the dmesg log.
Comment 2 knr 2015-10-06 07:22:28 UTC
This is actually testing libdrm behaviour and is fixed in libdrm 2.4.65 since:
intel: Serialize drmPrimeFDToHandle with struct_mutex
Comment 3 cprigent 2015-10-14 09:04:31 UTC
Hi Elio,
Please check if still reproduced on BDW with libdrm 2.4.65.
If not reproduced please assign to Olivier for the same check on SKL.
Thanks
Comment 4 Elio 2015-10-14 20:53:53 UTC
This issue is not present anymore using Libdrm version
libdrm-2.4.65
Comment 5 Elio 2015-10-14 20:55:07 UTC
issue is not present anymore on BDW with libdrm version 2.4.65
Comment 6 Olivier Berthier 2015-12-01 15:23:42 UTC
Not reproduced on SKL Y.

Setup :
-------

Hardware
Platform: SKY LAKE Y A0 QUAL
CPU : Intel(R) Core(TM) M5-6Y54 @ 1.10GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D0  2+2 (ou ULX-D0)
QDF : QJ9W
CPU : SKL D0
Chipset PCH: Sunrise Point LP C0       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06

Software
Linux OS : Ubuntu 14.04 64 bits
BIOS : SKLSE2R1.R00.B104.B01.1511110114
ME FW : 11.0.0.1191
Ksc (EC FW): 1.20

kernel 4.4.0-rc2-nightly+
cairo: 1.14.2)
drm: 2.4.65
intel-driver: 1.6.1
libva: 1.6.1
mesa: mesa-11.0.6
xf86-video-intel: 2.99.917
xserver: 1.17.2

intel-gpu-tools: 4cfcea4056ab78a8097b41e26748c940936cd411
Comment 7 cprigent 2015-12-08 21:14:33 UTC
Result is fail on BDW-U with tag testing 2015-12-04 and Libdrm: 2.4.65.

Hardware:
Motherboard: SawTooth Peak cpu model name : Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz
cpu model : 61
cpu family : 6
Graphic card: Broadwell-U Integrated Graphics (rev 09)

Software:
Kernel: tag 2015-12-04-drm-intel-testing 4.4.0-rc3 91587c7 from http://cgit.freedesktop.org/drm-intel/
Ubuntu 14.04.1 LTS
Bios: EBH7710H.86A.0096.2012.1012.1645
Libdrm: 2.4.65  

Let's check if it is fail due to another test executed before and the reproducibility.
Comment 8 cprigent 2015-12-08 21:33:49 UTC
Also fail on HSW with tag testing 2015-12-04 and Libdrm: 2.4.65

Hardware:
Motherboard: SawTooth Peak
cpu model name : Intel(R) Core(TM) i7-4550U CPU @ 1.50GHz
cpu model : 69
cpu family : 6
Graphic card: Haswell-ULT Integrated Graphics Controller (rev 09)

Software:
Kernel: tag 2015-12-04-drm-intel-testing 4.4.0-rc3 91587c7 from http://cgit.freedesktop.org/drm-intel/
Ubuntu 14.04.1 LTS
Bios: EBH7710H.86A.0096.2012.1012.1645 Libdrm: 2.4.65
Comment 9 cprigent 2015-12-09 09:06:44 UTC
Also fail on IVB with tag testing 2015-12-04 and Libdrm 2.4.65.

Hardware:
Motherboard: DH77EB
cpu model name	: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
cpu model	: 58 
cpu family	: 6
Graphic card: Xeon E3-1200 v2/3rd Gen Core processor Graphics

Software:
Kernel: tag 2015-12-04-drm-intel-testing 4.4.0-rc3 91587c7 from http://cgit.freedesktop.org/drm-intel/
Ubuntu 14.04.1 LTS
Bios: EBH7710H.86A.0096.2012.1012.1645
Libdrm: 2.4.65 from http://cgit.freedesktop.org/mesa/drm/
Comment 10 Humberto Israel Perez Rodriguez 2016-01-06 17:00:43 UTC
the following test pass on IVB with this configuration :

test : ./drm_import_export --run-subtest import-close-race-prime
drm version : libdrm-2.4.66
commit :b38a4b2

kernel drm-intel-testing:

commit 91587c722c28c4116dedbfbf08aa874377bc76f8
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Dec 4 17:35:54 2015 +0100

    drm-intel-nightly: 2015y-12m-04d-16h-35m-07s UTC integration manifest


kernel version : 4.4.0-rc3
git url        : git://anongit.freedesktop.org/drm-intel
git branch     : drm-intel-testing
git describe   : drm-intel-next-2015-11-20-rebased-13721-g91587c7

kernel drm-intel-nightly

commit 79686f613b3955a4ed09cee936e7f70ec4e61b67
Author: Jani Nikula <jani.nikula@intel.com>
Date:   Wed Dec 30 14:00:24 2015 +0200

    drm-intel-nightly: 2015y-12m-30d-11h-59m-54s UTC integration manifest


kernel version : 4.4.0-rc6
git url        : git://anongit.freedesktop.org/drm-intel
git branch     : drm-intel-nightly
git describe   : drm-intel-next-2015-12-18-1500-g79686f6

igt tools :
branch : intel-gpu-tools-1.13
commit : 2db78a4995a8ee298ae0cd68879baf80407a0e5e
Comment 11 Elio 2016-01-07 15:50:52 UTC
The problem is not present in HSW platform with following configuration
kernel: 4.4.0-rc6-drm-intel-nightly-2015-10-10
commit 0417da5e6f56078d87d366d5f959f8290ae9d16d
IGT= intel-gpu-tools-1.13
Cairo=1.15.2
Intel-Driver= 1.6.2.pre2
xf86= 2.99.917-524-g8e98751
libva=libva-1.6.2.pre3
xorg-server=xorg-server-1.18.0
drm=libdrm-2.4.65
mesa=mesa-11.1.0

Deleting HSW from header
Comment 12 Humberto Israel Perez Rodriguez 2016-01-07 17:17:41 UTC
The following test pass in BDW with the next configuration :

drm_import_export@import-close-race-prime


kernel drm-intel-testing:

commit 91587c722c28c4116dedbfbf08aa874377bc76f8
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Dec 4 17:35:54 2015 +0100

    drm-intel-nightly: 2015y-12m-04d-16h-35m-07s UTC integration manifest


kernel version : 4.4.0-rc3
git url        : git://anongit.freedesktop.org/drm-intel
git branch     : drm-intel-testing
git describe   : drm-intel-next-2015-11-20-rebased-13721-g91587c7

igt tools :
branch : intel-gpu-tools-1.13
commit : 2db78a4995a8ee298ae0cd68879baf80407a0e5e

cairo version: 1.15.2 / commit :  db8a7f1 
drm version :  libdrm-2.4.66  / commit : b38a4b2 
intel-driver : 1.6.2 / commit: 683edee
libva version : libva-1.6.2 / commit : 304bc13
mesa version : mesa-11.0.8 / commit : 261daab 
xf86-video-intel version : 2.99.917  / commit : baec802 
xserver version :xorg-server-1.18.0 / commit :7921764
Comment 13 cprigent 2016-02-22 16:06:17 UTC
Not reproduced on IVB, HSW, BDW with last setup.
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.