Bug 85896 - [SNB+ Regression]igt/gem_concurrent_blit some subcases and ES3-CTS.gtf.GL3Tests.npot_textures.npot_pbo_tex_image bus error
Summary: [SNB+ Regression]igt/gem_concurrent_blit some subcases and ES3-CTS.gtf.GL3Tes...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: high normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL: http://patchwork.freedesktop.org/patc...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-05 07:24 UTC by lu hua
Modified: 2017-10-06 14:34 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (100.90 KB, text/plain)
2014-11-05 07:24 UTC, lu hua
no flags Details
Fix obj->map_and_fenceable across tiling changes (1.53 KB, patch)
2014-11-05 08:10 UTC, Chris Wilson
no flags Details | Splinter Review

Description lu hua 2014-11-05 07:24:57 UTC
Created attachment 108929 [details]
dmesg

==System Environment==
--------------------------
Regression: yes 
good commit:421d82916774361a4840018fc3ab3a15751c3ea6
bad commit: 049d7156eaee3209928810ff97ef04d26cd7626c
Non-working platforms: IVB

==kernel==
--------------------------
drm-intel-nightly/f56717bdf29eb7d6a9ec15f095ea2a6858895473

==Bug detailed description==
Some gem_concurrent_blit subcases have bus error. It happens on -queued and -nightly kernel.

case list:
igt/gem_concurrent_blit/gttX-bcs-early-read-forked
igt/gem_concurrent_blit/gttX-bcs-early-read-interruptible
igt/gem_concurrent_blit/gttX-bcs-gpu-read-after-write-forked
igt/gem_concurrent_blit/gttX-bcs-gpu-read-after-write-interruptible
igt/gem_concurrent_blit/gttX-rcs-early-read-forked
igt/gem_concurrent_blit/gttX-rcs-early-read-interruptible
igt/gem_concurrent_blit/gttX-rcs-gpu-read-after-write-forked
igt/gem_concurrent_blit/gttX-rcs-gpu-read-after-write-interruptible

output:
IGT-Version: 1.8-ge622850 (x86_64) (Linux: 3.18.0-rc3_drm-intel-nightly_f56717_20141105+ x86_64)
using 2x512 buffers, each 1MiB
child 1 died with signal 7, Bus error
Subtest gttX-bcs-early-read-forked: FAIL (0.386s)

[   29.850009] ------------[ cut here ]------------
[   29.850104] WARNING: CPU: 1 PID: 3802 at drivers/gpu/drm/i915/i915_gem.c:4114 i915_gem_object_pin+0x6bd/0x6d1 [i915]()
[   29.850170] WARN_ON(flags & PIN_MAPPABLE && !obj->map_and_fenceable)
[   29.850212] Modules linked in:
[   29.850237]  snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic iTCO_wdt iTCO_vendor_support dcdbas pcspkr serio_raw i2c_i801 snd_hda_intel snd_hda_controller snd
_hda_codec snd_hwdep snd_pcm lpc_ich snd_timer mfd_core snd soundcore battery dm_mod tpm_tis tpm acpi_cpufreq i915 button video drm_kms_helper drm cfbfillrect cfbimgblt cfbcopya
rea
[   29.850670] CPU: 1 PID: 3802 Comm: gem_concurrent_ Not tainted 3.18.0-rc3_drm-intel-nightly_f56717_20141105+ #1198
[   29.850731] Hardware name: Dell Inc. OptiPlex 9010/03JR84, BIOS A01 05/04/2012
[   29.850777]  0000000000000000 0000000000000009 ffffffff81789002 ffff8800cda7fb68
[   29.850831]  ffffffff810368cc ffff88000279b000 ffffffffa00a02e2 ffff880118e8dc00
[   29.850875]  ffff8800cd823a40 0000000000000001 0000000015be3000 ffff880118828800
[   29.850920] Call Trace:
[   29.850941]  [<ffffffff81789002>] ? dump_stack+0x41/0x51
[   29.850971]  [<ffffffff810368cc>] ? warn_slowpath_common+0x78/0x90
[   29.851010]  [<ffffffffa00a02e2>] ? i915_gem_object_pin+0x6bd/0x6d1 [i915]
[   29.851045]  [<ffffffff8103697c>] ? warn_slowpath_fmt+0x45/0x4a
[   29.851079]  [<ffffffffa0098c24>] ? ggtt_bind_vma+0x75/0xc8 [i915]
[   29.851115]  [<ffffffffa00a02e2>] ? i915_gem_object_pin+0x6bd/0x6d1 [i915]
[   29.851150]  [<ffffffff81058e30>] ? enqueue_task_fair+0x441/0x88d
[   29.851185]  [<ffffffffa00a2134>] ? i915_gem_fault+0x104/0x2c5 [i915]
[   29.851221]  [<ffffffffa009c486>] ? __wait_seqno+0x32d/0x388 [i915]
[   29.851253]  [<ffffffff810e80e9>] ? __do_fault+0x35/0x73
[   29.851282]  [<ffffffff810ea02d>] ? do_read_fault.isra.82+0x1ae/0x26d
[   29.851319]  [<ffffffffa00a1fb2>] ? i915_gem_object_set_to_gtt_domain+0x107/0x185 [i915]
[   29.851365]  [<ffffffffa00a23ba>] ? i915_gem_set_domain_ioctl+0xc5/0xe9 [i915]
[   29.851401]  [<ffffffff810eba01>] ? handle_mm_fault+0x1eb/0x840
[   29.851436]  [<ffffffffa0010738>] ? drm_ioctl+0x279/0x3bc [drm]
[   29.851467]  [<ffffffff8102d906>] ? __do_page_fault+0x42e/0x47b
[   29.851496]  [<ffffffff8178b923>] ? __schedule+0x6cb/0x850
[   29.851524]  [<ffffffff8111a53f>] ? do_vfs_ioctl+0x3ec/0x435
[   29.851558]  [<ffffffff8109d57a>] ? __audit_syscall_entry+0xb2/0xd2
[   29.851591]  [<ffffffff8100d27c>] ? syscall_trace_enter_phase1+0x11e/0x127
[   29.851630]  [<ffffffff81790062>] ? page_fault+0x22/0x30
[   29.851660] ---[ end trace 742c1faa06342b71 ]---
[   29.851683] ------------[ cut here ]------------

==Reproduce steps==
---------------------------- 
1. ./gem_concurrent_blit --run-subtest gttX-bcs-early-read-forked
Comment 1 lu hua 2014-11-05 07:26:33 UTC
gem_gtt_hog also has this issue.
output:
IGT-Version: 1.8-ge622850 (x86_64) (Linux: 3.18.0-rc3_drm-intel-nightly_f56717_20141105+ x86_64)
child 35 died with signal 7, Bus error
Comment 2 Chris Wilson 2014-11-05 07:59:05 UTC
Oh boy, dinq still has all those direct calls to vma->bind_vma(GLOBAL);
Comment 3 Chris Wilson 2014-11-05 08:10:35 UTC
Created attachment 108934 [details] [review]
Fix obj->map_and_fenceable across tiling changes

Ah, another patch required from s/seqno/requests/:
Comment 4 lu hua 2014-11-06 05:32:57 UTC
It impacts SNB+ platforms.

(In reply to Chris Wilson from comment #3)
> Created attachment 108934 [details] [review] [review]
> Fix obj->map_and_fenceable across tiling changes
> 
> Ah, another patch required from s/seqno/requests/:

Fixed by this patch.
Comment 5 lu hua 2014-11-06 06:19:47 UTC
Ogles3conform case ES3-CTS.gtf.GL3Tests.npot_textures.npot_pbo_tex_image also has bus error, it also fixed by the patch.
output:
dEQP Core GL-CTS-2.0 (0x0052484b) starting..
  target implementation = 'X11'

Test case 'ES3-CTS.gtf.GL3Tests.npot_textures.npot_pbo_tex_image'..
Bus error (core dumped)
Comment 6 Chris Wilson 2014-11-06 08:43:56 UTC
See http://patchwork.freedesktop.org/patch/36339/
Comment 7 Jani Nikula 2014-11-07 17:47:35 UTC
Fixed pushed to drm-intel-fixes as

commit dc54e76d12f2b9ee32f8f4bc7ade79dbc7e6e55c
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Nov 6 08:40:35 2014 +0000

    drm/i915: Fix obj->map_and_fenceable across tiling changes
Comment 8 lu hua 2014-11-10 02:21:29 UTC
Verified.Fixed.
Comment 9 Elizabeth 2017-10-06 14:34:06 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.