Bug 87627 - [BDW Bisected]igt/prime_self_import/export-vs-gem_close-race fails, when execlists enabled
Summary: [BDW Bisected]igt/prime_self_import/export-vs-gem_close-race fails, when exec...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high normal
Assignee: Mika Kuoppala
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-23 05:20 UTC by lu hua
Modified: 2017-10-06 14:32 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (107.46 KB, text/plain)
2014-12-23 05:20 UTC, lu hua
no flags Details

Description lu hua 2014-12-23 05:20:40 UTC
Created attachment 111205 [details]
dmesg

==System Environment==
--------------------------
Regression: Yes
good commit: b05ddd4dfb6303ee9dde359ec913aa7a918fd813
bad commit: 140fd38dc4962ae3694f81900b51c567df1b6d33
Non-working platforms:  BDW

==kernel==
--------------------------
drm-intel-nightly/4fa23142a15526f4a4b5df61f26eacdd558a849a
commit 4fa23142a15526f4a4b5df61f26eacdd558a849a
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Dec 19 15:33:33 2014 +0100

    drm-intel-nightly: 2014y-12m-19d-14h-33m-07s UTC integration manifest

==Bug detailed description==
-----------------------------
It fails on BDW with drm-intel-nightly and drm-intel-next-queued kernel, works well on -fixes kernel.

output:
IGT-Version: 1.9-geb799b2 (x86_64) (Linux: 3.18.0_drm-intel-nightly_4fa231_20141223+ x86_64)
leaked -8 objects
Test assertion failure function test_export_close_race, file prime_self_import.c:377:
Failed assertion: obj_count == 0
error: -8 != 0
Subtest export-vs-gem_close-race: FAIL (5.004s)

==Reproduce steps==
---------------------------- 
1. ./prime_self_import --run-subtest export-vs-gem_close-race
Comment 1 lu hua 2015-01-04 06:38:53 UTC
Bisect shows: 27401d126b5b1c8dd4df98bbb60b09ff2b3d5e60 is the first bad commit
commit 27401d126b5b1c8dd4df98bbb60b09ff2b3d5e60
Author:     Thomas Daniel <thomas.daniel@intel.com>
AuthorDate: Thu Dec 11 12:48:35 2014 +0000
Commit:     Daniel Vetter <daniel.vetter@ffwll.ch>
CommitDate: Mon Dec 15 11:25:28 2014 +0100

    drm/i915/bdw: Enable execlists by default where supported

    Execlist support in the i915 driver is now considered good enough for the
    feature to be enabled by default on Gen8 and later and routinely tested.
    Adjusted i915 parameters structure initialization to reflect this and updated
    the comment in intel_sanitize_enable_execlists().

    There's still work to do before we can let the wider massive onto it,
    but there's still time left before the 3.20 cutoff.

    v2: Update the MODULE_PARM_DESC too.

    Issue: VIZ-2020
    Signed-off-by: Thomas Daniel <thomas.daniel@intel.com>
    [danvet: Add note that there's still some work left to do.]
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Comment 2 Chris Harris 2015-01-21 15:36:51 UTC
This issue appears to be a test bug - see https://patchwork.freedesktop.org/patch/40649/ for a proposed fix.
Comment 3 lu hua 2015-01-26 07:59:11 UTC
(In reply to Chris Harris from comment #2)
> This issue appears to be a test bug - see
> https://patchwork.freedesktop.org/patch/40649/ for a proposed fix.

Apply this patch, it works well.

root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./prime_self_import --run-subtest export-vs-gem_close-race
IGT-Version: 1.9-gfa94e01 (x86_64) (Linux: 3.19.0-rc5_drm-intel-nightly_67e9eb_20150126+ x86_64)
leaked 0 objects
Subtest export-vs-gem_close-race: SUCCESS (5.005s)
Comment 4 Mika Kuoppala 2015-01-29 14:47:25 UTC
commit 51d87b80493169f68bf1cda0eb2f6715310fe45c
Author: Thomas Daniel <thomas.daniel@intel.com>
Date:   Mon Jan 19 16:34:51 2015 +0000

    tests/prime_self_import: further fix object counts
Comment 5 lu hua 2015-02-02 07:33:58 UTC
Verified.Fixed.
root@x-bdw05:/GFX/Test/Intel_gpu_tools/intel-gpu-tools/tests# ./prime_self_import --run-subtest export-vs-gem_close-race
IGT-Version: 1.9-g51d87b8 (x86_64) (Linux: 3.19.0-rc6_drm-intel-nightly_8b4216_20150202+ x86_64)
leaked 0 objects
Subtest export-vs-gem_close-race: SUCCESS (5.000s)
Comment 6 Elizabeth 2017-10-06 14:32:53 UTC
Closing old verified.


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.