Bug 79821 - [SNB+]igt/prime_self_import/export-vs-gem_close-race fails
Summary: [SNB+]igt/prime_self_import/export-vs-gem_close-race fails
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
Depends on:
Reported: 2014-06-09 08:36 UTC by Guo Jinxian
Modified: 2017-10-06 14:37 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:

dmesg (94.29 KB, text/plain)
2014-06-09 08:36 UTC, Guo Jinxian
no flags Details

Description Guo Jinxian 2014-06-09 08:36:31 UTC
Created attachment 100706 [details]

==System Environment==
Regression: No. 
This case always fail.

Non-working platforms: IVB

origin/drm-intel-nightly: 969b3c5a312e849fa7a3dc0937a6acf34cdd7e25(fails)
    drm-intel-nightly: 2014y-06m-06d-22h-45m-15s integration manifest
origin/drm-intel-next-queued: e4964a6e664b4c338b5ab1f1820b0477bec68396(fails)
    drm/i915: Update DRIVER_DATE to 20140606
origin/drm-intel-fixes: 15d24aa5602fb87c7b1358cfabcfeb9b26db290f(fails)
    drm/i915: BDW: Adding missing cursor offsets.

==Bug detailed description==
igt/prime_self_import/export-vs-gem_close-race fails

./prime_self_import --run-subtest export-vs-gem_close-race
IGT-Version: 1.6-g18d2130 (x86_64) (Linux: 3.15.0-rc3_drm-intel-next-queued_e4964a_20140609+ x86_64)
leaked 2 objects
Test assertion failure function test_export_close_race, file prime_self_import.c:379:
Last errno: 0, Success
Failed assertion: obj_count == 0
Subtest export-vs-gem_close-race: FAIL

==Reproduce steps==
1. ./prime_self_import --run-subtest export-vs-gem_close-race
Comment 1 lu hua 2014-07-30 05:44:02 UTC
It fails on SNB+ platforms.
Comment 2 Guo Jinxian 2014-11-18 05:05:39 UTC
Test failed on hsw on latest -fixes(0485c9dc24ec0939b42ca5104c0373297506b555)

[root@x-hsw27 tests]# ./prime_self_import --run-subtest export-vs-gem_close-race
IGT-Version: 1.8-gaa63fc7 (x86_64) (Linux: 3.18.0-rc5_drm-intel-fixes_0485c9_20141118+ x86_64)
leaked 1 objects
Test assertion failure function test_export_close_race, file prime_self_import.c:374:
Failed assertion: obj_count == 0
error: 1 != 0
Subtest export-vs-gem_close-race: FAIL (5.000s)
[root@x-hsw27 tests]# dmesg -r|egrep "<[1-4]>"|grep drm
[root@x-hsw27 tests]#
Comment 3 Daniel Vetter 2014-11-18 13:25:13 UTC
fixed in igt with

commit 08f0e1c625571533bbef9a591d4ae4ce65c4144d
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Tue Nov 18 13:49:29 2014 +0100

    tests/prime_self_import: Track leaked objects accurately
Comment 4 Guo Jinxian 2014-11-19 06:06:10 UTC
Verified on latest igt(d8078911f63494eba67f8f07ffb56c4bdeae7bc9)

[root@x-ivb9 tests]# ./prime_self_import --run-subtest export-vs-gem_close-race
IGT-Version: 1.8-gd807891 (x86_64) (Linux: 3.18.0-rc5_drm-intel-nightly_3cb89f_20141119_debug+ x86_64)
leaked 0 objects
Subtest export-vs-gem_close-race: SUCCESS (5.001s)
Comment 5 Elizabeth 2017-10-06 14:37:50 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.