Bug 78247 - [BDW]igt/gem_concurrent_blit unable to exit sporadically
Summary: [BDW]igt/gem_concurrent_blit unable to exit sporadically
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Imre Deak
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-04 08:31 UTC by Guo Jinxian
Modified: 2017-10-06 14:38 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (97.07 KB, text/plain)
2014-05-04 08:31 UTC, Guo Jinxian
no flags Details
dmesg (91.26 KB, text/plain)
2014-05-21 06:46 UTC, Guo Jinxian
no flags Details
dmesg-drm-intel-nightly_c37f30_20140526 (97.31 KB, text/plain)
2014-05-27 05:48 UTC, liulei
no flags Details

Description Guo Jinxian 2014-05-04 08:31:23 UTC
Created attachment 98405 [details]
dmesg

*System Environment:
--------------------------
Platform: IVB HSW ULT
kernel: 
-nightly: 08ce6614d07dd1e426109672a5e323317c8d6ec7(fails)
-queued: e5c03ca362819ba8ffbe5674340b61b9cd75de8f (fails)
-fixes: 9bbfd20abe5025adbb0ac75160bd2e41158a9e83 (fails)


 *Bug detailed description:
-----------------------------
igt/gem_concurrent_blit unable to exit sporadically, and here has CallTrace in demsg.

Output:
IGT-Version: 1.6-gc864279 (x86_64) (Linux: 3.15.0-rc2_drm-intel-nightly_08ce66_20140504+ x86_64)
using 2x512 buffers, each 1MiB
Subtest prw-overwrite-source: SUCCESS
Subtest prw-early-read: SUCCESS
Subtest prw-gpu-read-after-write: SUCCESS
Subtest prw-overwrite-source-interruptible: SUCCESS
Subtest prw-early-read-interruptible: SUCCESS
Subtest prw-gpu-read-after-write-interruptible: SUCCESS
Subtest prw-overwrite-source-forked: SUCCESS
Subtest prw-early-read-forked: SUCCESS
Subtest prw-gpu-read-after-write-forked: SUCCESS
Subtest cpu-overwrite-source: SUCCESS
Subtest cpu-early-read: SUCCESS
Subtest cpu-gpu-read-after-write: SUCCESS
Subtest cpu-overwrite-source-interruptible: SUCCESS
Subtest cpu-early-read-interruptible: SUCCESS
Subtest cpu-gpu-read-after-write-interruptible: SUCCESS
Subtest cpu-overwrite-source-forked: SUCCESS

 *CallTrace:
----------------------------
[  291.988284] Oops: 0002 [#1] SMP 
[  291.988326] Modules linked in: dm_mod snd_hda_codec_hdmi iTCO_wdt iTCO_vendor_support ppdev snd_hda_intel snd_hda_controller snd_hda_codec snd_hwdep snd_pcm snd_timer i2c_i801 pcspkr lpc_ich mfd_core snd soundcore battery parport_pc parport ac acpi_cpufreq i915 video button drm_kms_helper drm
[  291.988698] CPU: 2 PID: 4553 Comm: gem_concurrent_ Not tainted 3.15.0-rc2_drm-intel-nightly_08ce66_20140504+ #2286
[  291.988803] task: ffff88000232f620 ti: ffff8800a9b02000 task.ti: ffff8800a9b02000
[  291.988879] RIP: 0010:[<ffffffff812e6723>]  [<ffffffff812e6723>] iowrite32+0xe/0x28
[  291.988965] RSP: 0018:ffff8800a9b03c40  EFLAGS: 00010292
[  291.989021] RAX: 0000000010800001 RBX: ffff880002e45780 RCX: 000000000001ffc0
[  291.989095] RDX: 000000000001ffd0 RSI: ffffc900110a0000 RDI: ffffc900110a0000
[  291.989167] RBP: ffff880002e44000 R08: 000000000ecd1000 R09: 000000000ecd1000
[  291.989239] R10: 000000000ecd2000 R11: 000000000ecd2000 R12: ffff880145b29a00
[  291.989313] R13: 0000000000000000 R14: ffff880002e45780 R15: ffff880145cf7e40
[  291.989386] FS:  00007f2144ea08c0(0000) GS:ffff88014f480000(0000) knlGS:0000000000000000
[  291.989468] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  291.989528] CR2: ffffc900110a0000 CR3: 000000007ae05000 CR4: 00000000003407e0
[  291.989601] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  291.989674] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  291.989746] Stack:
[  291.989770]  ffffffffa008a9c1 ffff880145b29a00 ffffffff00000000 0000000000000000
[  291.989861]  ffffffffa007a17f ffff880002e45780 000000000001ffc0 0001ffa80ecd1000
[  291.989951]  ffff8800aab7cc00 0000000000000000 ffff880002e45780 ffff880002d02200
[  291.990042] Call Trace:
[  291.990089]  [<ffffffffa008a9c1>] ? gen6_add_request+0x2c/0x88 [i915]
[  291.990169]  [<ffffffffa007a17f>] ? __i915_add_request+0x1c4/0x1e3 [i915]
[  291.990252]  [<ffffffffa0075eb1>] ? i915_gem_do_execbuffer.isra.16+0xff1/0x1142 [i915]
[  291.990335]  [<ffffffff812e3c23>] ? __sg_page_iter_next+0x2b/0x58
[  291.990409]  [<ffffffffa00764d0>] ? i915_gem_execbuffer2+0x177/0x1fb [i915]
[  291.990487]  [<ffffffffa0002f22>] ? drm_ioctl+0x25c/0x3ad [drm]
[  291.990559]  [<ffffffffa0076359>] ? i915_gem_execbuffer+0x357/0x357 [i915]
[  291.990632]  [<ffffffff812df90b>] ? scnprintf+0x39/0x3e
[  291.990691]  [<ffffffff810ee9b3>] ? do_vfs_ioctl+0x3ec/0x435
[  291.990753]  [<ffffffff810fc6ca>] ? simple_attr_release+0xd/0x11
[  291.990819]  [<ffffffff8104966d>] ? task_work_run+0x78/0x87
[  291.990879]  [<ffffffff810eea45>] ? SyS_ioctl+0x49/0x78
[  291.990938]  [<ffffffff8172d8aa>] ? int_signal+0x12/0x17
[  291.990996]  [<ffffffff8172d622>] ? system_call_fastpath+0x16/0x1b
[  291.991060] Code: 48 89 f7 76 05 e9 21 5c d4 ff 48 81 fe 00 00 01 00 77 09 48 c7 c6 15 9f 9b 81 eb aa c3 48 81 fe ff ff 03 00 89 f8 48 89 f7 76 03 <89> 06 c3 48 81 fe 00 00 01 00 76 05 0f b7 d6 ef c3 48 c7 c6 49 
[  291.991479] RIP  [<ffffffff812e6723>] iowrite32+0xe/0x28
[  291.991536]  RSP <ffff8800a9b03c40>
[  291.991571] CR2: ffffc900110a0000
[  291.991606] ---[ end trace ca0d12e45e4caf9c ]---


 *Reproduce steps:
---------------------------- 
1. ./gem_concurrent_blit
Comment 1 Chris Wilson 2014-05-15 12:40:18 UTC
commit d1533379584f8edcfcabb024dffc1b334db8da0f
Author: Oscar Mateo <oscar.mateo@intel.com>
Date:   Fri May 9 13:44:59 2014 +0100

    drm/i915: Ringbuffer signal func for the second BSD ring
    
    This is missing in:
    
    commit 78325f2d270897c9ee0887125b7abb963eb8efea
    Author: Ben Widawsky <benjamin.widawsky@intel.com>
    Date:   Tue Apr 29 14:52:29 2014 -0700
    
        drm/i915: Virtualize the ringbuffer signal func
    
    Looks to me like a rebase side-effect...
    
    Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
    Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Comment 2 Guo Jinxian 2014-05-16 03:50:14 UTC
igt/gem_concurrent_blit unable to exit on latest -nightly(c74cad3c2599b47438b168ca5629fbb00ab63f95), Maybe the commit didn't include into -nightly now. I will verified it again later.
Comment 3 Guo Jinxian 2014-05-16 05:04:53 UTC
Checked on latest -next-queued(229b0489aa75a8c51d2f2e124329d3ac326f326d), This bug still able to reproduce.

Output:
./gem_concurrent_blit
IGT-Version: 1.6-g351e7d3 (x86_64) (Linux: 3.15.0-rc3_drm-intel-next-queued_229b04_20140515+ x86_64)
using 2x512 buffers, each 1MiB
Subtest prw-overwrite-source: SUCCESS
Subtest prw-early-read: SUCCESS


^C^C^C
Comment 4 Daniel Vetter 2014-05-19 09:18:22 UTC
Please attach a new dmesg with the calltrace or whatever there is ...
Comment 5 Guo Jinxian 2014-05-21 06:46:51 UTC
Created attachment 99472 [details]
dmesg

The test is able to finish on latest -nightly(36765340cb068dec1216342bfcdbf2678ec29860).
time ./gem_concurrent_blit
IGT-Version: 1.6-g737d248 (x86_64) (Linux: 3.15.0-rc5_drm-intel-nightly_367653_20140521+ x86_64)
using 2x512 buffers, each 1MiB
Subtest prw-overwrite-source: SUCCESS
Subtest prw-early-read: SUCCESS
Subtest prw-gpu-read-after-write: SUCCESS
Subtest prw-overwrite-source-interruptible: SUCCESS
Subtest prw-early-read-interruptible: SUCCESS
Subtest prw-gpu-read-after-write-interruptible: SUCCESS
Subtest prw-overwrite-source-forked: SUCCESS
Subtest prw-early-read-forked: SUCCESS
Subtest prw-gpu-read-after-write-forked: SUCCESS
Subtest cpu-overwrite-source: SUCCESS
Subtest cpu-early-read: SUCCESS
Subtest cpu-gpu-read-after-write: SUCCESS
Subtest cpu-overwrite-source-interruptible: SUCCESS
Subtest cpu-early-read-interruptible: SUCCESS
Subtest cpu-gpu-read-after-write-interruptible: SUCCESS
Subtest cpu-overwrite-source-forked: SUCCESS
Subtest cpu-early-read-forked: SUCCESS
Subtest cpu-gpu-read-after-write-forked: SUCCESS
Subtest gtt-overwrite-source: SUCCESS
Subtest gtt-early-read: SUCCESS
Subtest gtt-gpu-read-after-write: SUCCESS
Subtest gtt-overwrite-source-interruptible: SUCCESS
Subtest gtt-early-read-interruptible: SUCCESS
Subtest gtt-gpu-read-after-write-interruptible: SUCCESS
Subtest gtt-overwrite-source-forked: SUCCESS
Subtest gtt-early-read-forked: SUCCESS
Subtest gtt-gpu-read-after-write-forked: SUCCESS

real    17m14.136s
user    26m8.028s
sys     1m22.114s
Comment 6 Daniel Vetter 2014-05-22 06:41:53 UTC
Seems to all be fine. Let's tentatively close this.
Comment 7 liulei 2014-05-27 05:45:00 UTC
root@x-bdw:/opt# time ./gem_concurrent_blit
IGT-Version: 1.6-gff3c122 (x86_64) (Linux: 3.15.0-rc6_drm-intel-nightly_c37f30_20140526+ x86_64)
using 2x512 buffers, each 1MiB
Subtest prw-overwrite-source: SUCCESS
Subtest prw-early-read: SUCCESS
Subtest prw-gpu-read-after-write: SUCCESS
Subtest prw-overwrite-source-interruptible: SUCCESS
Subtest prw-early-read-interruptible: SUCCESS
Subtest prw-gpu-read-after-write-interruptible: SUCCESS
Subtest prw-overwrite-source-forked: SUCCESS
Subtest prw-early-read-forked: SUCCESS
Subtest prw-gpu-read-after-write-forked: SUCCESS
Subtest cpu-overwrite-source: SUCCESS
Subtest cpu-early-read: SUCCESS
Subtest cpu-gpu-read-after-write: SUCCESS
Subtest cpu-overwrite-source-interruptible: SUCCESS
Subtest cpu-early-read-interruptible: SUCCESS
Subtest cpu-gpu-read-after-write-interruptible: SUCCESS
Subtest cpu-overwrite-source-forked: SUCCESS
Subtest cpu-early-read-forked: SUCCESS
Subtest cpu-gpu-read-after-write-forked: SUCCESS
Subtest gtt-overwrite-source: SUCCESS
Subtest gtt-early-read: SUCCESS
Subtest gtt-gpu-read-after-write: SUCCESS
Subtest gtt-overwrite-source-interruptible: SUCCESS
^C
real    26m45.783s
user    12m31.370s
sys     1m21.858s
Comment 8 liulei 2014-05-27 05:48:17 UTC
Created attachment 99918 [details]
dmesg-drm-intel-nightly_c37f30_20140526
Comment 9 Guo Jinxian 2014-06-18 08:49:29 UTC
Verified on latest -nightly fff6c5111af7356d3815521f597959554e7bc1cc
Comment 10 Elizabeth 2017-10-06 14:38:22 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.