Bug 91116

Summary: [BDW-U SKL] igt/gem_mmap_gtt/huge-copy-xy crash
Product: DRI Reporter: cprigent <christophe.prigent>
Component: DRM/IntelAssignee: Kimmo Nikkanen <knikkane>
Status: CLOSED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: high CC: intel-gfx-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: HSW i915 features:
Attachments:
Description Flags
kern.log
none
Kernel configuration none

Description cprigent 2015-06-26 16:17:37 UTC
Created attachment 116728 [details]
kern.log

Regression
-----------
Tested for the firt time on this test environment
No bug found on BDW-U linked to gem_mmap_gtt@huge-copy-xy

Setup:
-------
Hardware
Platform: Wilson Beach DVT2 Ultrabook
CPU: Intel(R) CPU @ 1.60GHz (family: 6, model: 61 stepping: 3)
SoC: Broadwell 2+2 D0 (QDF : QGHA)
Chipset PCH: Wildcat Point B0
Software
Linux distribution: Ubuntu 14.10 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: intel-gpu-tools-1.11 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/

Steps:
------
1. Launch igt with command:
<...>/scripts/run-tests.sh -s -v -R -n -r <...>/results  -x .*suspend.* -x gem_userptr_blits@swapping.* -x gem_ctx_thrash.* -x gem_concurrent_all.* -x gem_evict_everything@swapping-hang -x gem_close_race -x gem_ctx_thrash.* -x gem_render_linear_blits@swap-thrash -x gem_render_tiled_blits@swap-thrash -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_concurrent_blit -x gem_ppgtt@blt-vs-render-ctx0 -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 a moment

Actual result:
---------------
2. DUT crash when executing gem_mmap_gtt/huge-copy-xy

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

End of kern.log
----------------
Jun 26 17:25:39 WSB5 kernel: [ 1242.151157] [drm:i915_gem_open] 
Jun 26 17:25:39 WSB5 kernel: [ 1242.151520] [drm:i915_gem_open] 
Jun 26 17:25:39 WSB5 kernel: [ 1242.159247] gem_mmap_gtt (3365): drop_caches: 3
Jun 26 17:25:40 WSB5 kernel: [ 1243.023354] [drm:intel_print_rc6_info] Enabling RC6 states: RC6 on
Jun 26 17:25:40 WSB5 kernel: [ 1243.076119] BUG: unable to handle kernel paging request at ffffc90004800000
Jun 26 17:25:40 WSB5 kernel: [ 1243.077864] IP: [<ffffffffa010dedb>] gen8_ggtt_insert_entries+0x86/0x10e [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.079596] PGD 24502d067 PUD 24502e067 PMD 2419db067 PTE 0
Jun 26 17:25:40 WSB5 kernel: [ 1243.081313] Oops: 0002 [#1] SMP 
Jun 26 17:25:40 WSB5 kernel: [ 1243.082994] Modules linked in: ipv6 rfcomm bnep bluetooth rfkill cdc_acm uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common videodev snd_hda_codec_hdmi x86_pkg_temp_thermal coretemp kvm_intel kvm microcode serio_raw snd_hda_intel snd_hda_codec snd_hda_core snd_hwdep snd_pcm_oss snd_mixer_oss battery snd_pcm snd_seq_dummy snd_seq_oss snd_seq_midi snd_rawmidi snd_seq_midi_event snd_seq parport_pc ppdev snd_seq_device snd_timer snd i915 lp parport acpi_cpufreq button ac lpc_ich video shpchp drm_kms_helper mfd_core drm soundcore
Jun 26 17:25:40 WSB5 kernel: [ 1243.086958] CPU: 2 PID: 3365 Comm: gem_mmap_gtt Tainted: G     U  W       4.1.0-rc8-drm-intel-testing-tag19june+ #4
Jun 26 17:25:40 WSB5 kernel: [ 1243.088951] Hardware name: Intel Corporation Broadwell Client platform/Wilson Beach SDS, BIOS BDW-E2R1.86C.0095.R09.1410300006 10/30/2014
Jun 26 17:25:40 WSB5 kernel: [ 1243.090985] task: ffff880243f96a70 ti: ffff8802421f8000 task.ti: ffff8802421f8000
Jun 26 17:25:40 WSB5 kernel: [ 1243.093037] RIP: 0010:[<ffffffffa010dedb>]  [<ffffffffa010dedb>] gen8_ggtt_insert_entries+0x86/0x10e [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.095346] RSP: 0018:ffff8802421fbb38  EFLAGS: 00010293
Jun 26 17:25:40 WSB5 kernel: [ 1243.097396] RAX: 00000001909ea083 RBX: 00000001909ea000 RCX: 0000000000002c90
Jun 26 17:25:40 WSB5 kernel: [ 1243.099430] RDX: ffffc90004800000 RSI: ffff88024337b000 RDI: ffff8801ea9d8b00
Jun 26 17:25:40 WSB5 kernel: [ 1243.101481] RBP: ffff880242df0000 R08: 0000000000000000 R09: 0000000000001000
Jun 26 17:25:40 WSB5 kernel: [ 1243.103544] R10: 0000000002c8e000 R11: 0000000000000003 R12: 00000000000fd372
Jun 26 17:25:40 WSB5 kernel: [ 1243.105616] R13: 0000000000000001 R14: ffffc90004016470 R15: 0000000000000000
Jun 26 17:25:40 WSB5 kernel: [ 1243.107699] FS:  00007fcdf2ece740(0000) GS:ffff88024dc80000(0000) knlGS:0000000000000000
Jun 26 17:25:40 WSB5 kernel: [ 1243.109807] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 26 17:25:40 WSB5 kernel: [ 1243.111923] CR2: ffffc90004800000 CR3: 000000009ec3a000 CR4: 00000000003406e0
Jun 26 17:25:40 WSB5 kernel: [ 1243.114065] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Jun 26 17:25:40 WSB5 kernel: [ 1243.116216] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Jun 26 17:25:40 WSB5 kernel: [ 1243.118371] Stack:
Jun 26 17:25:40 WSB5 kernel: [ 1243.120490]  ffff8802421fbbc0 ffff8801ea9d8b00 00002c8f00000000 ffffffff00000001
Jun 26 17:25:40 WSB5 kernel: [ 1243.122633]  ffff880243c06f00 0000000000000000 0000000000001000 ffff8800aaeabcc0
Jun 26 17:25:40 WSB5 kernel: [ 1243.124809]  ffff88024200ad90 ffffffffa010d066 0000000000000003 0000000002c8e000
Jun 26 17:25:40 WSB5 kernel: [ 1243.126997] Call Trace:
Jun 26 17:25:40 WSB5 kernel: [ 1243.129138]  [<ffffffffa010d066>] ? ggtt_bind_vma+0x4bc/0x500 [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.131263]  [<ffffffff81349495>] ? sg_next+0x9/0x1d
Jun 26 17:25:40 WSB5 kernel: [ 1243.133379]  [<ffffffffa010f499>] ? i915_vma_bind+0x8c/0x151 [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.135474]  [<ffffffffa0115192>] ? i915_gem_object_do_pin+0x724/0x7f6 [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.137575]  [<ffffffff810dcee4>] ? __alloc_pages_nodemask+0x18b/0x771
Jun 26 17:25:40 WSB5 kernel: [ 1243.139700]  [<ffffffffa0116175>] ? i915_gem_fault+0x139/0x37a [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.141825]  [<ffffffff810f21af>] ? __do_fault+0x3d/0x80
Jun 26 17:25:40 WSB5 kernel: [ 1243.143958]  [<ffffffff810f5a1e>] ? handle_mm_fault+0x598/0xc4d
Jun 26 17:25:40 WSB5 kernel: [ 1243.146105]  [<ffffffff81123623>] ? do_vfs_ioctl+0x360/0x424
Jun 26 17:25:40 WSB5 kernel: [ 1243.148223]  [<ffffffff8103587c>] ? __do_page_fault+0x219/0x3da
Jun 26 17:25:40 WSB5 kernel: [ 1243.150345]  [<ffffffff81123730>] ? SyS_ioctl+0x49/0x77
Jun 26 17:25:40 WSB5 kernel: [ 1243.152440]  [<ffffffff817ae3b2>] ? page_fault+0x22/0x30
Jun 26 17:25:40 WSB5 kernel: [ 1243.154637] Code: 0c 48 03 58 10 45 85 ed 48 89 d8 74 13 48 89 da 0c 83 48 83 ca 13 41 83 fd 03 48 0f 44 c2 eb 04 48 83 c8 1b 49 63 d4 49 8d 14 d6 <48> 89 02 41 ff c4 eb b4 45 85 e4 74 46 4d 63 e4 4b 8d 44 e6 f8 
Jun 26 17:25:40 WSB5 kernel: [ 1243.156948] RIP  [<ffffffffa010dedb>] gen8_ggtt_insert_entries+0x86/0x10e [i915]
Jun 26 17:25:40 WSB5 kernel: [ 1243.159144]  RSP <ffff8802421fbb38>
Jun 26 17:25:40 WSB5 kernel: [ 1243.161319] CR2: ffffc90004800000
Jun 26 17:25:40 WSB5 kernel: [ 1243.163463] ---[ end trace 7c557a5341c2fa73 ]---
Jun 26 17:25:42 WSB5 kernel: [ 1244.820345] [drm:edp_panel_vdd_off_sync] Turning eDP port A VDD off
Jun 26 17:25:42 WSB5 kernel: [ 1244.822542] [drm:edp_panel_vdd_off_sync] PP_STATUS: 0x80000008 PP_CONTROL: 0xabcd0007
Comment 1 cprigent 2015-06-26 16:18:41 UTC
Created attachment 116729 [details]
Kernel configuration
Comment 2 cprigent 2015-08-16 14:12:44 UTC
Reproduced on SKL-Y.

Platform: SKY LAKE Y A0
CPU : Intel(R) Core(TM) m3-6Y30 CPU @ 0.8GHz 4MB (family: 6, model: 78  stepping: 3)
MCP : SKL-Y  D1  2+2
QDF : QVY3 
CPU : SKL D1
Chipset PCH: Sunrise Point LP C1       
CRB : SKY LAKE Y LPDDR3 RVP3 CRB FAB2
Reworks : All Mandatories + FBS02 & FBS03, O-06
Software
BIOS : SKLSE2R1.R00.X093.B02.1507222151
ME FW : 11.0.0.1157
Ksc (EC FW): 1.15
Linux distribution: Ubuntu 14.04 LTS 64 bits
Kernel : drm-intel-nightly 308b72e08b237aa7cde758fc44f88851710e417d 4.2.0-rc5 from git://anongit.freedesktop.org/drm-intel 
Mesa: mesa-10.6.3 ddc976368fef367e464472ebcc2ac4fd89eb9fd8 from http://cgit.freedesktop.org/mesa/mesa/
Xf86_video_intel: 2.99.917 baec802b21387d04aebb10ac29e719a1800c5aa0 from http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
Libdrm: libdrm-2.4.62 ba4b5ac010ab85406ec52e3906e13d58cd9aa782 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from 93422b3cb5e0ef8104b8194c8873124ce2f5ea2d http://cgit.freedesktop.org/cairo
libva: libva-1.6.0 a8008998bc0d4a76ae6927607c048e52ba50fd0e from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.0 32268c46d538667d437dc9266aa4c183e51c1286 from http://cgit.freedesktop.org/vaapi/intel-driver
Xserver: xorg-server-1.17.2 2123f7682d522619f101b05fb75efa75dabbe371 from http://cgit.freedesktop.org/xorg/xserver

IGT: 1.11-g5c07135 from http://cgit.freedesktop.org/xorg/app/intel-gpu-tools/ 

Kernel commit log:
commit 308b72e08b237aa7cde758fc44f88851710e417d
Author: Daniel Vetter
Date: Fri Aug 7 19:09:47 2015 +0200
drm-intel-nightly: 2015y-08m-07d-17h-08m-56s UTC integration manifest
Comment 3 Elio 2015-10-01 14:56:50 UTC
This issue is reproducible with BDW with the following configuration

Kernel 4.3.0-rc8-drm-intel-testing-2015-08-28
Mesa: mesa-10.6.7 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.64 from http://cgit.freedesktop.org/mesa/drm/
Cairo: 1.14.2 from http://cgit.freedesktop.org/cairo
libva: libva-1.6.0 from http://cgit.freedesktop.org/libva/
intel-driver: 1.6.1. 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: 1.12 from http://cgit.freedesktop.org/xorg/app/intel-gpu


On BDW_U
Comment 4 cprigent 2015-10-08 16:33:45 UTC
Bug scrub:
Kimmo, can you assign it to someone?
Comment 5 Humberto Israel Perez Rodriguez 2015-10-15 15:36:31 UTC
The issue still present with HSW and the following configuration :

Configuration :
----------------------------------------------
kernel: 4.3.0-rc4-drm-intel-testing-2015-10-10
xorg-server-1.17.2
libdrm-2.4.65
xf86-video-intel-2.99.917
mesa-11.0.2
libva-1.6.1
intel-driver-1.6.1
cairo-1.14.2
IGT Version : 1.12-g1f9e055
Comment 6 Chris Wilson 2016-01-28 10:12:49 UTC
Fixed by pinning the pages whilst allocating the va.
Comment 7 Jari Tahvanainen 2017-07-03 13:34:37 UTC
closing >1 year old resolved+fixed.

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.