[Bug 99295] [Regression BDW] kernel panic in Intel i915 module, complete system freeze in 4.10-rc2

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon May 22 11:24:57 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=99295

--- Comment #46 from Helio Loureiro <helio at loureiro.eng.br> ---
(In reply to Chris Wilson from comment #22)
> Or less broken:
> 
> diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c
> b/drivers/gpu/drm/i915/i915_gem_gtt.c
> index b4bde1452f2a..be75ab6a8ed6 100644
> --- a/drivers/gpu/drm/i915/i915_gem_gtt.c
> +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
> @@ -33,7 +33,7 @@
>  #include "intel_drv.h"
>  #include "intel_frontbuffer.h"
>  
> -#define I915_GFP_DMA (GFP_KERNEL | __GFP_HIGHMEM)
> +#define I915_GFP_DMA ((GFP_KERNEL | __GFP_HIGHMEM) & ~__GFP_RECLAIM)
>  
>  /**
>   * DOC: Global GTT views

Hi,

I applied such patch on top of 4.11.2.  It apparently caught the bug and didn't
crash the usage.

May 22 11:20:33 elxaf7qtt32 kernel: CPU: 3 PID: 10790 Comm: kscreenlocker_g
Tainted: G           OE   4.11.2-i915patch-helio+ #6
May 22 11:20:33 elxaf7qtt32 kernel: Hardware name: Dell Inc. XPS 13
9343/0F5KF3, BIOS A03 03/25/2015
May 22 11:20:33 elxaf7qtt32 kernel: Call Trace:
May 22 11:20:33 elxaf7qtt32 kernel:  dump_stack+0x65/0x92
May 22 11:20:33 elxaf7qtt32 kernel:  warn_alloc+0x114/0x1b0
May 22 11:20:33 elxaf7qtt32 kernel:  __alloc_pages_slowpath+0xd69/0xe40
May 22 11:20:33 elxaf7qtt32 kernel:  __alloc_pages_nodemask+0x24b/0x260
May 22 11:20:33 elxaf7qtt32 kernel:  alloc_pages_current+0x95/0x140
May 22 11:20:33 elxaf7qtt32 kernel:  __setup_page_dma+0x21/0x130 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  alloc_pt+0x5e/0xb0 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  gen8_alloc_va_range_3lvl+0x1d7/0x970
[i915]
May 22 11:20:33 elxaf7qtt32 kernel:  gen8_alloc_va_range+0x273/0x440 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  i915_vma_bind+0x85/0x210 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  __i915_vma_do_pin+0x397/0x600 [i915]
May 22 11:20:33 elxaf7qtt32 kernel: 
i915_gem_execbuffer_reserve_vma.isra.30+0xc8/0x1f0 [i915]
May 22 11:20:33 elxaf7qtt32 kernel: 
i915_gem_execbuffer_reserve.isra.31+0x449/0x480 [i915]
May 22 11:20:33 elxaf7qtt32 kernel: 
i915_gem_do_execbuffer.isra.39+0x526/0x15c0 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  ? refcount_dec_and_test+0x11/0x20
May 22 11:20:33 elxaf7qtt32 kernel:  ? i915_gem_pwrite_ioctl+0xbe/0x720 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  i915_gem_execbuffer2+0xa8/0x220 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  drm_ioctl+0x1fc/0x450 [drm]
May 22 11:20:33 elxaf7qtt32 kernel:  ? i915_gem_execbuffer+0x300/0x300 [i915]
May 22 11:20:33 elxaf7qtt32 kernel:  ? __dentry_kill+0x11d/0x170
May 22 11:20:33 elxaf7qtt32 kernel:  ? mntput_no_expire+0x2c/0x1c0
May 22 11:20:33 elxaf7qtt32 kernel:  do_vfs_ioctl+0xa1/0x5d0
May 22 11:20:33 elxaf7qtt32 kernel:  ? __fget+0x77/0xb0
May 22 11:20:33 elxaf7qtt32 kernel:  SyS_ioctl+0x79/0x90
May 22 11:20:33 elxaf7qtt32 kernel:  entry_SYSCALL_64_fastpath+0x1e/0xad
May 22 11:20:33 elxaf7qtt32 kernel: RIP: 0033:0x7f3d48da2357
May 22 11:20:33 elxaf7qtt32 kernel: RSP: 002b:00007ffc33b19248 EFLAGS: 00000246
ORIG_RAX: 0000000000000010
May 22 11:20:33 elxaf7qtt32 kernel: RAX: ffffffffffffffda RBX: 00000000023a33e0
RCX: 00007f3d48da2357
May 22 11:20:33 elxaf7qtt32 kernel: RDX: 00007ffc33b192a0 RSI: 0000000040406469
RDI: 0000000000000008
May 22 11:20:33 elxaf7qtt32 kernel: RBP: 00000000020c5ee0 R08: 0000000000000008
R09: 0000000000000001
May 22 11:20:33 elxaf7qtt32 kernel: R10: 0000000000000000 R11: 0000000000000246
R12: 00000000023fed88
May 22 11:20:33 elxaf7qtt32 kernel: R13: 00007ffc33b194c0 R14: 00007f3d4a3b1100
R15: 00007ffc33b19498
May 22 11:20:33 elxaf7qtt32 kernel: Mem-Info:
May 22 11:20:33 elxaf7qtt32 kernel: active_anon:1158734 inactive_anon:339188
isolated_anon:0
                                     active_file:182984 inactive_file:116538
isolated_file:64
                                     unevictable:16 dirty:265 writeback:0
unstable:0
                                     slab_reclaimable:24977
slab_unreclaimable:26928
                                     mapped:294138 shmem:351802
pagetables:29023 bounce:0
                                     free:25050 free_pcp:1066 free_cma:0
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 active_anon:4634936kB
inactive_anon:1356752kB active_file:731936kB inactive_file:466152kB
unevictable:64kB isolated(anon):0kB isolated(file):2
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 DMA free:15832kB min:136kB low:168kB
high:200kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB
unevictable:0kB writependi
May 22 11:20:33 elxaf7qtt32 kernel: lowmem_reserve[]: 0 3027 7488 7488
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 DMA32 free:44708kB min:27268kB
low:34084kB high:40900kB active_anon:2005440kB inactive_anon:394852kB
active_file:299736kB inactive_file:318068
May 22 11:20:33 elxaf7qtt32 kernel: lowmem_reserve[]: 0 0 4460 4460
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 Normal free:39660kB min:40172kB
low:50212kB high:60252kB active_anon:2628924kB inactive_anon:961708kB
active_file:433156kB inactive_file:14716
May 22 11:20:33 elxaf7qtt32 kernel: lowmem_reserve[]: 0 0 0 0
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 DMA: 0*4kB 1*8kB (U) 1*16kB (U)
0*32kB 1*64kB (U) 1*128kB (U) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M)
3*4096kB (M) = 15832kB
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 DMA32: 465*4kB (UME) 350*8kB (UM)
228*16kB (UM) 462*32kB (UM) 184*64kB (UM) 48*128kB (UM) 4*256kB (ME) 2*512kB
(ME) 2*1024kB (E) 0*2048kB 0*40
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 Normal: 4705*4kB (UMH) 2148*8kB
(UMEH) 190*16kB (MEH) 9*32kB (H) 8*64kB (H) 2*128kB (H) 0*256kB 0*512kB
0*1024kB 0*2048kB 0*4096kB = 40100kB
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 hugepages_total=0 hugepages_free=0
hugepages_surp=0 hugepages_size=1048576kB
May 22 11:20:33 elxaf7qtt32 kernel: Node 0 hugepages_total=0 hugepages_free=0
hugepages_surp=0 hugepages_size=2048kB
May 22 11:20:33 elxaf7qtt32 kernel: 658209 total pagecache pages
May 22 11:20:33 elxaf7qtt32 kernel: 6762 pages in swap cache
May 22 11:20:33 elxaf7qtt32 kernel: Swap cache stats: add 187215, delete
180458, find 205823/212955
May 22 11:20:33 elxaf7qtt32 kernel: Free swap  = 7555980kB
May 22 11:20:33 elxaf7qtt32 kernel: Total swap = 7925756kB
May 22 11:20:33 elxaf7qtt32 kernel: 1982055 pages RAM
May 22 11:20:33 elxaf7qtt32 kernel: 0 pages HighMem/MovableOnly
May 22 11:20:33 elxaf7qtt32 kernel: 51817 pages reserved
May 22 11:20:33 elxaf7qtt32 kernel: 0 pages cma reserved

I just noticed the kernel log after checking w/ journalctl.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20170522/4059c11d/attachment.html>


More information about the intel-gfx-bugs mailing list