Bug 91080 - [BSW/BYT-M] igt/gem_evict_everything/mlocked-interruptible crash
Summary: [BSW/BYT-M] igt/gem_evict_everything/mlocked-interruptible crash
Status: CLOSED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: unspecified
Hardware: Other Linux (All)
: medium major
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 10:35 UTC by cprigent
Modified: 2016-09-16 13:13 UTC (History)
1 user (show)

See Also:
i915 platform: BSW/CHT, BYT
i915 features: GEM/Other


Attachments
Kernel configuration (121.22 KB, text/plain)
2015-06-24 10:35 UTC, cprigent
no flags Details
kern.log (1.47 MB, text/plain)
2015-06-24 10:39 UTC, cprigent
no flags Details

Description cprigent 2015-06-24 10:35:35 UTC
Created attachment 116686 [details]
Kernel configuration

Regression
----------
Tested for the first time with this environment

Setup
------
Platform: Braswell M 
CPU : Intel(R) CPU  @ 1.52 GHz (family: 6, model: 76 stepping: 3)
SoC : BSW C0
CRB : BRASWELL RVP Fab2
Mandatory Reworks : All
Feature Reworks: F28, F32,F33 & F37
Optional reworks : O-01a

Software 
BIOS : BRAS.X64.B074.R00.1505311952
TXE FW : 2.0.0.2064
Ksc : 1.08
Linux distribution: Ubuntu 14.04 LTS 64 bits 
Kernel 4.1-rc8 from git://anongit.freedesktop.org/drm-intel tag drm-intel-testing-2015-06-19 
Mesa: mesa-10.5.8 from http://cgit.freedesktop.org/mesa/mesa/
Xf86_video_intel: 2.99.917 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm: libdrm-2.4.61 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from http://cgit.freedesktop.org/cairo
libva: libva-1.6.0.pre1 from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.0.pre1 from http://cgit.freedesktop.org/vaapi/intel-driver
xorg: 1.17.99 installed with script git_xorg.sh
Xserver: xorg-server-1.17.2 from http://cgit.freedesktop.org/xorg/xserver
Intel-gpu-tools: 4fbce7e462ab488fc11037adb571bb3a807459ba from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

Screens:
Connected via HDMI to monitor AOC 230LM00025
Connected via DP to monitor ASUS PB287Q

Steps:
------
1. Execute intel-gpu-tools with command:
cd <...>/intel-gpu-tools/scripts/
./run-tests.sh -r <path>/results  -x .*suspend.* -x gem_userptr_blits@swapping.* -x gem_dummy_reloc_loop -x gem_concurrent_all.* -x gem_evict_everything@swapping-hang -x gem_close_race -x gem_cpu_reloc -x gem_ctx_thrash.* -x drv_hangman.* -x drv_missed_irq_hang -x kms_setmode.* -x gem_fence_thrash@bo-write-verify-threaded-y -x gem_multi_bsd_sync_loop -x gem_reloc_vs_gpu@forked-interruptible-faulting-reloc-thrashing -x gem_seqno_wrap -x gem_userptr_blits@forked-sync-swapping-multifd-mempressure-interruptible -x kms_render@gpu-blit -x kms_cursor_crc@cursor-size-change -x gem_render_linear_blits@swap-thrash -x gem_render_tiled_blits@swap-thrash -x gem_evict_everything@mlocked-hang -x gem_userptr_blits@mlocked-normal-sync -x gem_userptr_blits@mlocked-sync-interruptible -x gem_userptr_blits@mlocked-unsync-normal -x gem_userptr_blits@mlocked-unsync-interruptible -x gem_exec_big -x gem_mmap_gtt@medium-copy -x gem_mmap_gtt@medium-copy-xy -x gem_pwrite@huge-gtt -x gem_pwrite@big-cpu -x gem_pwrite@big-gtt -x gem_pwrite@huge-cpu
2. Wait several hours

Actual result
--------------
2. Crash, DUT not responding when running gem_evict_everything@mlocked-interruptible

Expected result:
----------------
2. No crash 

End of kern.log
---------------
[drm:drm_detect_monitor_audio] Monitor has basic audio support
Jun 23 19:04:39 BSWM8 kernel: [25916.834652] [drm:intel_hpd_irq_event] [CONNECTOR:50:DP-2] status updated from disconnected to connected
Jun 23 19:06:13 BSWM8 kernel: [26010.223192] BUG: unable to handle kernel NULL pointer dereference at 0000000000000008
Jun 23 19:06:13 BSWM8 kernel: [26010.229571] IP: [<ffffffffa00e2f9d>] gen8_ppgtt_insert_entries+0x3a/0x184 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.235652] PGD 6c92a067 PUD 6c92b067 PMD 0 
Jun 23 19:06:13 BSWM8 kernel: [26010.241631] Oops: 0000 [#1] SMP 
Jun 23 19:06:13 BSWM8 kernel: [26010.247962] Modules linked in: ipv6 rfcomm bnep bluetooth rfkill joydev snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm_oss snd_mixer_oss snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi coretemp kvm_intel snd_rawmidi kvm microcode snd_seq_midi_event serio_raw snd_seq snd_seq_device snd_timer snd lpc_ich mfd_core soundcore shpchp battery parport_pc ppdev i915 video drm_kms_helper drm ac lp parport button acpi_cpufreq r8169
Jun 23 19:06:13 BSWM8 kernel: [26010.268284] CPU: 1 PID: 7763 Comm: gem_evict_every Tainted: G     U  W       4.1.0-rc8-drm-intel-testing-tag19june+ #4
Jun 23 19:06:13 BSWM8 kernel: [26010.275106] Hardware name: Intel Corporation CHERRYVIEW C0 PLATFORM/Braswell CRB, BIOS BRAS.X64.B074.R00.1505311952 05/31/2015
Jun 23 19:06:13 BSWM8 kernel: [26010.282033] task: ffff880179f420c0 ti: ffff88006c908000 task.ti: ffff88006c908000
Jun 23 19:06:13 BSWM8 kernel: [26010.289282] RIP: 0010:[<ffffffffa00e2f9d>]  [<ffffffffa00e2f9d>] gen8_ppgtt_insert_entries+0x3a/0x184 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.296422] RSP: 0018:ffff88006c90ba68  EFLAGS: 00010292
Jun 23 19:06:13 BSWM8 kernel: [26010.303544] RAX: ffff88006cb7c000 RBX: 0000000000000000 RCX: 0000000000000000
Jun 23 19:06:13 BSWM8 kernel: [26010.310951] RDX: 000000000008d200 RSI: 0000000000000000 RDI: ffff88006cb7c000
Jun 23 19:06:13 BSWM8 kernel: [26010.318116] RBP: 0000000000000069 R08: 0000000000000000 R09: ffff88006c9dc6c0
Jun 23 19:06:13 BSWM8 kernel: [26010.325274] R10: ffffffffffffffff R11: ffffffffa00e2700 R12: 0000000000000002
Jun 23 19:06:13 BSWM8 kernel: [26010.332737] R13: ffff88006cb7c000 R14: 0000000000000000 R15: 000000008d200000
Jun 23 19:06:13 BSWM8 kernel: [26010.339907] FS:  00007f1fce531740(0000) GS:ffff88017fc80000(0000) knlGS:0000000000000000
Jun 23 19:06:13 BSWM8 kernel: [26010.347348] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
Jun 23 19:06:13 BSWM8 kernel: [26010.354485] CR2: 0000000000000008 CR3: 000000006c929000 CR4: 00000000001006e0
Jun 23 19:06:13 BSWM8 kernel: [26010.361707] Stack:
Jun 23 19:06:13 BSWM8 kernel: [26010.369067]  00000000c0000000 ffff88015bb7f000 0000000000000000 0000000000000000
Jun 23 19:06:13 BSWM8 kernel: [26010.376433]  000000000000006a ffff88015b943a00 0000000000000002 0000000000001000
Jun 23 19:06:13 BSWM8 kernel: [26010.383812]  ffffffffa016e58d ffff88006cb7c000 000000008d200000 ffffffffa00e04a4
Jun 23 19:06:13 BSWM8 kernel: [26010.391486] Call Trace:
Jun 23 19:06:13 BSWM8 kernel: [26010.398852]  [<ffffffffa00e04a4>] ? ppgtt_bind_vma+0x2e/0x32 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.406524]  [<ffffffffa00e4499>] ? i915_vma_bind+0x8c/0x151 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.413963]  [<ffffffffa00ea192>] ? i915_gem_object_do_pin+0x724/0x7f6 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.421175]  [<ffffffffa00de31e>] ? i915_gem_execbuffer_reserve_vma.isra.13+0x6b/0x111 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.428445]  [<ffffffffa00de623>] ? i915_gem_execbuffer_reserve.isra.14+0x25f/0x2f6 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.435213]  [<ffffffffa00dec8c>] ? i915_gem_do_execbuffer.isra.15+0x5d2/0xd71 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.441739]  [<ffffffff810ef869>] ? kmalloc_order+0x10/0x3d
Jun 23 19:06:13 BSWM8 kernel: [26010.448278]  [<ffffffff810ef8b2>] ? kmalloc_order_trace+0x1c/0x7e
Jun 23 19:06:13 BSWM8 kernel: [26010.454445]  [<ffffffffa00e03df>] ? i915_gem_execbuffer2+0x16e/0x205 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.460638]  [<ffffffffa004e656>] ? drm_ioctl+0x322/0x38d [drm]
Jun 23 19:06:13 BSWM8 kernel: [26010.467127]  [<ffffffffa00e0271>] ? i915_gem_execbuffer+0x339/0x339 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.473340]  [<ffffffff81123623>] ? do_vfs_ioctl+0x360/0x424
Jun 23 19:06:13 BSWM8 kernel: [26010.479356]  [<ffffffff810f1e0f>] ? __mm_populate+0xda/0xee
Jun 23 19:06:13 BSWM8 kernel: [26010.485158]  [<ffffffff81123730>] ? SyS_ioctl+0x49/0x77
Jun 23 19:06:13 BSWM8 kernel: [26010.491155]  [<ffffffff810f74ba>] ? SyS_mlock+0xd9/0x114
Jun 23 19:06:13 BSWM8 kernel: [26010.496842]  [<ffffffff817ac997>] ? system_call_fastpath+0x12/0x6a
Jun 23 19:06:13 BSWM8 kernel: [26010.502537] Code: 54 49 89 d4 49 c1 ec 1e 55 48 89 d5 48 c1 ea 0c 48 c1 ed 15 41 83 e4 03 53 89 d3 81 e5 ff 01 00 00 81 e3 ff 01 00 00 48 83 ec 28 <8b> 56 08 48 8b 36 48 8d 7c 24 08 e8 ce 64 26 e1 45 31 ff 48 8d 
Jun 23 19:06:13 BSWM8 kernel: [26010.509175] RIP  [<ffffffffa00e2f9d>] gen8_ppgtt_insert_entries+0x3a/0x184 [i915]
Jun 23 19:06:13 BSWM8 kernel: [26010.515231]  RSP <ffff88006c90ba68>
Jun 23 19:06:13 BSWM8 kernel: [26010.521188] CR2: 0000000000000008
Jun 23 19:06:13 BSWM8 kernel: [26010.527593] ---[ end trace d9c837efa2439b91 ]---
Jun 23 19:06:13 BSWM8 kernel: [26010.980357] [drm:i915_gem_open]
Comment 1 cprigent 2015-06-24 10:39:25 UTC
Created attachment 116687 [details]
kern.log
Comment 2 Humberto Israel Perez Rodriguez 2015-10-28 17:27:57 UTC
The same test still crash on BYT-M platform with the following configuration :

xorg-server : 1.17.2
libdrm : 2.4.65
xf86-video-intel : 2.99.917
mesa : 11.0.4
libva : 1.6.1
intel: driver 1.6.1
cairo : 1.14.2
intel-gpu-tools : 1.12 (commit a2c6786)

Kernel: drm-intel-nightly: 2015y-10m-23d-09h-56m-09s
commit 87074657f22e38163e712ca417e1a398d00096b6
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Oct 23 11:56:52 2015 +0200

Test : <%gem_evict_everything@mlocked-interruptible%>
Comment 3 cprigent 2016-09-16 13:13:34 UTC
I reported a fresh one: bug 97835


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.