Bug 73857

Summary: gem_fd_exhaustion Aborted and causes <3>[ 84.236304] [drm:drm_release] *ERROR* Device busy: 1
Product: DRI Reporter: lu hua <huax.lu>
Component: DRM/IntelAssignee: Daniel Vetter <daniel>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium CC: intel-gfx-bugs
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg
none
dmesg none

Description lu hua 2014-01-21 01:35:28 UTC
Created attachment 92497 [details]
dmesg

System Environment:
--------------------------
Platform: PNV/ILK/SNB/IVB/BYT/BDW
kernel: (drm-intel-nightly)0c57772c928f9fad7ac00cedf0104ce36c6fb2b6

Bug detailed description:
---------------------------
It aborted on all platforms with -queued, -fixes and -nightly kernel.
It's a new case.

output:
IGT-Version: 1.5-g5b91475 (x86_64) (Linux: 3.13.0-rc8_drm-intel-nightly_0c5777_20140120+ x86_64)
System limit for open files is 376375
child 0 died with signal 9, Killed
gem_fd_exhaustion: drmtest.c:1253: children_exit_handler: Assertion `ret == 0' failed.
Aborted (core dumped)

Call Trace:
[   55.884589]  [<ffffffffa006c102>] ? i915_gem_alloc_object+0x37/0xd5 [i915]
[   55.884623]  [<ffffffffa006c1cb>] ? i915_gem_create+0x2b/0xaf [i915]
[   55.884657]  [<ffffffffa0002f37>] ? drm_ioctl+0x263/0x385 [drm]
[   55.884686]  [<ffffffff810f7f13>] ? __inode_wait_for_writeback+0x63/0xa9
[   55.884719]  [<ffffffffa006c24f>] ? i915_gem_create+0xaf/0xaf [i915]
[   55.884749]  [<ffffffff810e762e>] ? do_filp_open+0x2d/0x75
[   55.884774]  [<ffffffff810ec17a>] ? dentry_kill+0x1c0/0x1dc
[   55.884799]  [<ffffffff810e91a4>] ? do_vfs_ioctl+0x3f1/0x43a
[   55.884825]  [<ffffffff810f0abb>] ? __alloc_fd+0x58/0xe0
[   55.884849]  [<ffffffff810f0703>] ? put_unused_fd+0x1f/0x3f
[   55.884874]  [<ffffffff810e923b>] ? SyS_ioctl+0x4e/0x7b
[   55.884899]  [<ffffffff8171bd62>] ? system_call_fastpath+0x16/0x1b
[   55.884925] Code: 05 b8 ed ff ff ff 41 59 5b 5d 41 5c 41 5d c3 48 8b 87 b8 01 00 00 be d0 80 00 00 48 8b 78 08 e9 d4 a5 06 e1 48 8b 47 08 48 89 fe <48> 8b 80 b8 01 00 00 48 8b 78 08 e9 ac a1 06 e1 8b 57 70 31 c0
[   55.885272] RIP  [<ffffffffa006b15a>] i915_gem_object_free+0x7/0x17 [i915]
[   55.885308]  RSP <ffff8800ca219d60>
[   55.885325] CR2: 00000000000001b8
[   55.885351] ---[ end trace f95e7796b22150e5 ]---


Reproduce steps:
-------------------------
1. ./gem_fd_exhaustion
Comment 1 lu hua 2014-01-21 03:09:20 UTC
It also cases [   84.236304] [drm:drm_release] *ERROR* Device busy: 1.
Run this case, then run other cases, many cases will fail with the error.
Comment 2 lu hua 2014-01-21 03:14:46 UTC
Created attachment 92501 [details]
dmesg
Comment 3 Daniel Vetter 2014-01-21 16:45:33 UTC
Should be fixed with

commit 6ab11a2635ce988ebc2e798947beb72cf7324119
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Mon Jan 20 08:21:54 2014 +0100

    drm/gem: Always initialize the gem object in object_init

Note that this is only in -nightly (since it's in topic/core-stuff).
Comment 4 lu hua 2014-01-24 01:48:07 UTC
Verified.Fixed.
Comment 5 Elizabeth 2017-10-06 14:40:15 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.