Bug 100599 - Display server crash due to intel_do_flush_locked failed: Cannot allocate memory
Summary: Display server crash due to intel_do_flush_locked failed: Cannot allocate memory
Status: NEEDINFO
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/i965 (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Intel 3D Bugs Mailing List
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-05 23:53 UTC by Andreas Galauner
Modified: 2017-08-21 20:30 UTC (History)
6 users (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesgwitherrror (9.05 KB, text/plain)
2017-05-14 11:31 UTC, darlor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Galauner 2017-04-05 23:53:44 UTC
I ran into the following issue two times today.
I am running a current intel-drm-nightly (39a0f48c8bc7c528cc705016dafa08a9dedfd36b) on my Lenovo T460p.

The crash happened randomly when using an X11 application. The result is a complete crash of the display server including all programs running in it. When the crash happened a second time I couldn't even log in using GDM anymore until I rebooted.
I see no reason why the page allocation should have failed. The system wasn't particularly loaded.


dmesg output:

Apr 06 00:48:00 geekbook org.gnome.Shell.desktop[26712]: intel_do_flush_locked failed: Cannot allocate memory
Apr 06 00:48:00 geekbook kernel: Xwayland: page allocation failure: order:0, mode:0x1000(__GFP_NORETRY), nodemask=(null)
Apr 06 00:48:00 geekbook kernel: Xwayland cpuset=/ mems_allowed=0
Apr 06 00:48:00 geekbook kernel: CPU: 3 PID: 26730 Comm: Xwayland Not tainted 4.11.0-rc5-ARCH+ #2
Apr 06 00:48:00 geekbook kernel: Hardware name: LENOVO 20FXS05500/20FXS05500, BIOS R07ET73W (2.13 ) 12/20/2016
Apr 06 00:48:00 geekbook kernel: Call Trace:
Apr 06 00:48:00 geekbook kernel:  dump_stack+0x63/0x83
Apr 06 00:48:00 geekbook kernel:  warn_alloc+0x114/0x1b0
Apr 06 00:48:00 geekbook kernel:  __alloc_pages_nodemask+0x111f/0x1130
Apr 06 00:48:00 geekbook kernel:  ? pick_next_task_fair+0x4a0/0x550
Apr 06 00:48:00 geekbook kernel:  ? __schedule+0x2db/0x8a0
Apr 06 00:48:00 geekbook kernel:  alloc_pages_vma+0xaa/0x270
Apr 06 00:48:00 geekbook kernel:  shmem_alloc_page+0x70/0xa0
Apr 06 00:48:00 geekbook kernel:  ? _raw_spin_unlock_irqrestore+0x2a/0x30
Apr 06 00:48:00 geekbook kernel:  ? prepare_to_wait_event+0x71/0x100
Apr 06 00:48:00 geekbook kernel:  ? __vm_enough_memory+0x29/0x130
Apr 06 00:48:00 geekbook kernel:  shmem_alloc_and_acct_page+0x72/0x1b0
Apr 06 00:48:00 geekbook kernel:  shmem_getpage_gfp+0x1a5/0xca0
Apr 06 00:48:00 geekbook kernel:  shmem_read_mapping_page_gfp+0x44/0x80
Apr 06 00:48:00 geekbook kernel:  i915_gem_object_get_pages_gtt+0x224/0x660 [i915]
Apr 06 00:48:00 geekbook kernel:  ____i915_gem_object_get_pages+0x20/0x60 [i915]
Apr 06 00:48:00 geekbook kernel:  __i915_gem_object_get_pages+0x5c/0x70 [i915]
Apr 06 00:48:00 geekbook kernel:  __i915_vma_do_pin+0x1e9/0x3c0 [i915]
Apr 06 00:48:00 geekbook kernel:  i915_gem_execbuffer_reserve_vma.isra.9+0x14d/0x1b0 [i915]
Apr 06 00:48:00 geekbook kernel:  i915_gem_execbuffer_reserve.isra.10+0x3c5/0x3f0 [i915]
Apr 06 00:48:00 geekbook kernel:  i915_gem_do_execbuffer.isra.16+0x5c0/0x17e0 [i915]
Apr 06 00:48:00 geekbook kernel:  ? __wake_up_sync_key+0x50/0x60
Apr 06 00:48:00 geekbook kernel:  ? i915_gem_execbuffer2+0x162/0x210 [i915]
Apr 06 00:48:00 geekbook kernel:  i915_gem_execbuffer2+0xb7/0x210 [i915]
Apr 06 00:48:00 geekbook kernel:  drm_ioctl+0x218/0x4b0 [drm]
Apr 06 00:48:00 geekbook kernel:  ? i915_gem_execbuffer+0x310/0x310 [i915]
Apr 06 00:48:00 geekbook kernel:  ? __fget+0x77/0xb0
Apr 06 00:48:00 geekbook kernel:  do_vfs_ioctl+0xa3/0x5f0
Apr 06 00:48:00 geekbook kernel:  ? __sys_sendmsg+0x54/0x90
Apr 06 00:48:00 geekbook kernel:  ? __fget+0x77/0xb0
Apr 06 00:48:00 geekbook kernel:  SyS_ioctl+0x79/0x90
Apr 06 00:48:00 geekbook kernel:  entry_SYSCALL_64_fastpath+0x1a/0xa9
Apr 06 00:48:00 geekbook kernel: RIP: 0033:0x7f223b55f0d7
Apr 06 00:48:00 geekbook kernel: RSP: 002b:00007ffe940a72d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Apr 06 00:48:00 geekbook kernel: RAX: ffffffffffffffda RBX: 00000000031ce350 RCX: 00007f223b55f0d7
Apr 06 00:48:00 geekbook kernel: RDX: 00007ffe940a7320 RSI: 00000000c0406469 RDI: 0000000000000009
Apr 06 00:48:00 geekbook kernel: RBP: 0000000000000de1 R08: 0000000000000000 R09: 0000000000000000
Apr 06 00:48:00 geekbook kernel: R10: 0000000000002fe0 R11: 0000000000000246 R12: 00007f222c3ce000
Apr 06 00:48:00 geekbook kernel: R13: 00000000029357b0 R14: 0000000000006000 R15: 00007f223dbc1040
Apr 06 00:48:00 geekbook kernel: Mem-Info:
Apr 06 00:48:00 geekbook kernel: active_anon:1367198 inactive_anon:918076 isolated_anon:0
                                  active_file:1095352 inactive_file:400438 isolated_file:0
                                  unevictable:12 dirty:55 writeback:97 unstable:0
                                  slab_reclaimable:159652 slab_unreclaimable:34624
                                  mapped:520164 shmem:811274 pagetables:24122 bounce:0
                                  free:33796 free_pcp:1666 free_cma:0
Apr 06 00:48:00 geekbook kernel: Node 0 active_anon:5468792kB inactive_anon:3672304kB active_file:4381408kB inactive_file:1601752kB unevictable:48kB isolated(anon):0kB isolated(file):0kB mapped:2080656kB dirty:220kB writeback:388kB shmem:0kB shmem_thp: 0kB shmem_pmdmapped: 2127872kB anon_thp: 3245096kB writeback_tmp:0kB unstable:0kB pages_scanned:74 all_unreclaimable? no
Apr 06 00:48:00 geekbook kernel: Node 0 DMA free:15836kB min:64kB low:80kB high:96kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15912kB managed:15868kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:32kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
Apr 06 00:48:00 geekbook kernel: lowmem_reserve[]: 0 2801 15879 15879 15879
Apr 06 00:48:00 geekbook kernel: Node 0 DMA32 free:63820kB min:11908kB low:14884kB high:17860kB active_anon:1284844kB inactive_anon:287780kB active_file:807952kB inactive_file:371868kB unevictable:0kB writepending:20kB present:2966880kB managed:2890676kB mlocked:0kB slab_reclaimable:45904kB slab_unreclaimable:11500kB kernel_stack:1424kB pagetables:7492kB bounce:0kB free_pcp:3152kB local_pcp:252kB free_cma:0kB
Apr 06 00:48:00 geekbook kernel: lowmem_reserve[]: 0 0 13078 13078 13078
Apr 06 00:48:00 geekbook kernel: Node 0 Normal free:55528kB min:55608kB low:69508kB high:83408kB active_anon:4184256kB inactive_anon:3384804kB active_file:3574940kB inactive_file:1229420kB unevictable:48kB writepending:0kB present:13656064kB managed:13392248kB mlocked:48kB slab_reclaimable:592704kB slab_unreclaimable:126964kB kernel_stack:21824kB pagetables:88996kB bounce:0kB free_pcp:3512kB local_pcp:356kB free_cma:0kB
Apr 06 00:48:00 geekbook kernel: lowmem_reserve[]: 0 0 0 0 0
Apr 06 00:48:00 geekbook kernel: Node 0 DMA: 1*4kB (U) 1*8kB (U) 3*16kB (U) 1*32kB (U) 2*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15836kB
Apr 06 00:48:00 geekbook kernel: Node 0 DMA32: 825*4kB (UM) 717*8kB (UME) 137*16kB (UM) 219*32kB (UME) 298*64kB (UME) 92*128kB (UME) 57*256kB (ME) 1*512kB (M) 0*1024kB 0*2048kB 0*4096kB = 64188kB
Apr 06 00:48:00 geekbook kernel: Node 0 Normal: 4355*4kB (UMH) 478*8kB (UMH) 889*16kB (UMEH) 618*32kB (UME) 13*64kB (MEH) 3*128kB (MH) 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 56460kB
Apr 06 00:48:00 geekbook kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=1048576kB
Apr 06 00:48:00 geekbook kernel: Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
Apr 06 00:48:00 geekbook kernel: 2308498 total pagecache pages
Apr 06 00:48:00 geekbook kernel: 1576 pages in swap cache
Apr 06 00:48:00 geekbook kernel: Swap cache stats: add 11557, delete 9981, find 8/14
Apr 06 00:48:00 geekbook kernel: Free swap  = 4147196kB
Apr 06 00:48:00 geekbook kernel: Total swap = 4194300kB
Apr 06 00:48:00 geekbook kernel: 4159714 pages RAM
Apr 06 00:48:00 geekbook kernel: 0 pages HighMem/MovableOnly
Apr 06 00:48:00 geekbook kernel: 85016 pages reserved
Apr 06 00:48:00 geekbook kernel: 0 pages hwpoisoned
Comment 1 Chris Wilson 2017-04-06 07:38:29 UTC
There's two problems here, the biggest is that mesa is not handling a legitimate error. Kenneth's libdrm rework should be making it more robust.
Comment 2 Kenneth Graunke 2017-04-07 01:04:43 UTC
Chris, what exactly are we not handling?
Comment 3 Chris Wilson 2017-04-07 09:20:51 UTC
We failed to allocate a page for one of buffers instantiated by the execbuf call; treat it as a deferred malloc fail. In your series, you remove the exit after drmIoctl, I would like to see it set a GL error instead.
Comment 4 Andrew Dowsey 2017-04-24 03:30:59 UTC
I am also seeing this on drm-tip (which I obliged to use due to Bug 99295). It happens every time the machine runs out of memory and try to use swap.

Apr 24 11:25:08 awd-laptop kernel: [ 8965.553247] Xwayland: page allocation failure: order:0, mode:0x14210d2(GFP_HIGHUSER|__GFP_NORETRY|__GFP_RECLAIMABLE), nodemask=(null)
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553251] Xwayland cpuset=/ mems_allowed=0
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553254] CPU: 7 PID: 13804 Comm: Xwayland Tainted: G           OE   4.11.0-994-generic #201704202316
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553255] Hardware name: Dell Inc. Precision 5520/06X96V, BIOS 1.0.2 12/28/2016
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553256] Call Trace:
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553261]  dump_stack+0x63/0x81
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553263]  warn_alloc+0x114/0x1c0
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553265]  __alloc_pages_slowpath+0xe51/0xe80
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553267]  __alloc_pages_nodemask+0x228/0x240
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553269]  alloc_pages_vma+0xab/0x250
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553271]  shmem_alloc_page+0x70/0xc0
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553274]  ? sg_free_table+0x5c/0x70
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553295]  ? i915_gem_object_put_pages_gtt+0x18f/0x1f0 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553297]  ? __vm_enough_memory+0x29/0x130
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553299]  shmem_alloc_and_acct_page+0x72/0x1b0
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553300]  shmem_getpage_gfp+0x1a5/0xc70
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553302]  shmem_read_mapping_page_gfp+0x44/0x80
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553325]  i915_gem_object_get_pages_gtt+0x223/0x640 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553327]  ? add_wait_queue+0x44/0x50
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553342]  ____i915_gem_object_get_pages+0x20/0x60 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553356]  __i915_gem_object_get_pages+0x5c/0x70 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553373]  __i915_vma_do_pin+0x1ec/0x3b0 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553387]  i915_gem_execbuffer_reserve_vma.isra.30+0x14d/0x1b0 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553401]  i915_gem_execbuffer_reserve.isra.31+0x3c5/0x3f0 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553414]  i915_gem_do_execbuffer.isra.37+0x593/0x17b0 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553417]  ? poll_select_copy_remaining+0x150/0x150
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553419]  ? unix_stream_recvmsg+0x54/0x70
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553420]  ? unix_state_double_lock+0x70/0x70
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553433]  i915_gem_execbuffer2+0x96/0x1b0 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553443]  drm_ioctl+0x218/0x4b0 [drm]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553456]  ? i915_gem_execbuffer+0x310/0x310 [i915]
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553458]  ? __remove_hrtimer+0x3c/0x70
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553459]  do_vfs_ioctl+0xa3/0x600
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553461]  ? do_setitimer+0xe0/0x240
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553462]  ? ktime_get_ts64+0x4f/0x100
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553463]  SyS_ioctl+0x79/0x90
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553464]  entry_SYSCALL_64_fastpath+0x1e/0xad
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553466] RIP: 0033:0x7fc6ea4f6987
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553467] RSP: 002b:00007ffcc7e9f068 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553468] RAX: ffffffffffffffda RBX: 00007fc6ecfc5040 RCX: 00007fc6ea4f6987
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553468] RDX: 00007ffcc7e9f0b0 RSI: 00000000c0406469 RDI: 0000000000000009
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553469] RBP: 00007fc6ecfeb450 R08: 0000000000000000 R09: 0000000000000000
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553469] R10: 0000000000000880 R11: 0000000000000246 R12: 00007fc6e67de558
Apr 24 11:25:08 awd-laptop kernel: [ 8965.553470] R13: 000000000c550000 R14: 0000000001e04809 R15: 00007fc6ecfeb600
Apr 24 11:25:08 awd-laptop org.gnome.Shell.desktop[13799]: intel_do_flush_locked failed: Cannot allocate memory
Comment 5 Konstantin 2017-04-25 05:26:53 UTC
Same here on intel-nightly: when system run out of memory on 4.9.x kernel it's simple OOM-killer kill apps that consume more memory, on intel-nightly kernel  (from 4.11-rc1 to rc8)  have killing apps that use gpu (plasmashell, kwin and after them killing X)...

plasmashell: page allocation failure: order:0, mode:0x14210d2(GFP_HIGHUSER|__GFP_NORETRY|__GFP_RECLAIMABLE), nodemask=(null)
[   57.882725] plasmashell cpuset=/ mems_allowed=0
[   57.882733] CPU: 0 PID: 6280 Comm: plasmashell Tainted: G           O    4.11.0-rc8 #1
[   57.882735] Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A11 12/08/2016
[   57.882736] Call Trace:
[   57.882743]  dump_stack+0x4d/0x72
[   57.882746]  warn_alloc+0xdb/0x170
[   57.882748]  __alloc_pages_slowpath+0xb44/0xc10
[   57.882752]  ? kmem_cache_alloc+0x99/0xc0
[   57.882754]  __alloc_pages_nodemask+0x127/0x150
[   57.882756]  alloc_pages_vma+0x9d/0x260
[   57.882760]  __read_swap_cache_async+0x159/0x1f0
[   57.882762]  ? pagevec_lru_move_fn+0xc0/0xe0
[   57.882764]  read_swap_cache_async+0x12/0x30
[   57.882766]  swapin_readahead+0xf5/0x1b0
[   57.882767]  shmem_swapin+0x59/0x90
[   57.882768]  ? shmem_swapin+0x59/0x90
[   57.882771]  ? radix_tree_lookup_slot+0x13/0x30
[   57.882775]  ? find_get_entry+0x93/0x100
[   57.882777]  ? pagecache_get_page+0x27/0x250
[   57.882778]  shmem_getpage_gfp.isra.48+0x736/0xa80
[   57.882780]  shmem_read_mapping_page_gfp+0x2e/0x50
[   57.882784]  ? i915_gem_object_get_pages_gtt+0x1ce/0x5b0
[   57.882786]  i915_gem_object_get_pages_gtt+0x200/0x5b0
[   57.882788]  ____i915_gem_object_get_pages+0x1b/0x60
[   57.882790]  __i915_gem_object_get_pages+0x57/0x70
[   57.882793]  __i915_vma_do_pin+0x1e0/0x3c0
[   57.882795]  i915_gem_execbuffer_reserve_vma.isra.32+0x148/0x1b0
[   57.882797]  i915_gem_execbuffer_reserve.isra.33+0x373/0x3d0
[   57.882798]  i915_gem_do_execbuffer.isra.39+0x5e9/0x1730
[   57.882800]  ? i915_gem_object_wait_reservation+0xeb/0x230
[   57.882802]  ? i915_gem_object_get_page+0x11/0x40
[   57.882805]  ? refcount_dec_and_test+0x11/0x20
[   57.882806]  ? i915_gem_pwrite_ioctl+0xa1/0x5f0
[   57.882808]  i915_gem_execbuffer2+0x98/0x1f0
[   57.882810]  drm_ioctl+0x1e8/0x430
[   57.882812]  ? i915_gem_execbuffer+0x2e0/0x2e0
[   57.882815]  ? selinux_file_ioctl+0x111/0x1b0
[   57.882818]  do_vfs_ioctl+0x8d/0x5a0
[   57.882820]  ? __fget+0x72/0xa0
[   57.882822]  ? security_file_ioctl+0x3e/0x60
[   57.882824]  SyS_ioctl+0x74/0x80
[   57.882827]  entry_SYSCALL_64_fastpath+0x13/0x94
[   57.882829] RIP: 0033:0x3a470dfb67
[   57.882830] RSP: 002b:00007ffcbbefe798 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   57.882832] RAX: ffffffffffffffda RBX: 000000000187d750 RCX: 0000003a470dfb67
[   57.882833] RDX: 00007ffcbbefe7f0 RSI: 00000000c0406469 RDI: 000000000000000f
[   57.882834] RBP: 00000000018a39f8 R08: 0000000000000000 R09: 0000000000000000
[   57.882835] R10: 0000000000004448 R11: 0000000000000246 R12: 00000000bd518018
[   57.882836] R13: 00007f041e400598 R14: 0080020605e4480b R15: 00000000018a3d10
[   57.882842] Mem-Info:
[   57.882847] active_anon:5402 inactive_anon:5909 isolated_anon:80
                active_file:12247 inactive_file:8010 isolated_file:32
                unevictable:1835016 dirty:42 writeback:0 unstable:0
                slab_reclaimable:5423 slab_unreclaimable:7343
                mapped:14651 shmem:5770 pagetables:12519 bounce:0
                free:73998 free_pcp:56 free_cma:0
[   57.882851] Node 0 active_anon:21608kB inactive_anon:23636kB active_file:48988kB inactive_file:32040kB unevictable:7340064kB isolated(anon):320kB isolated(file):128kB mapped:58604kB dirty:168kB writeback:0kB shmem:23080kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no
[   57.882852] Node 0 DMA free:15876kB min:512kB low:640kB high:768kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15988kB managed:15892kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[   57.882857] lowmem_reserve[]: 0 3398 7869 7869
[   57.882860] Node 0 DMA32 free:130876kB min:113032kB low:141288kB high:169544kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:3345176kB writepending:0kB present:3564636kB managed:3482628kB mlocked:3345176kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:6536kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[   57.882863] lowmem_reserve[]: 0 0 4470 4470
[   57.882866] Node 0 Normal free:149240kB min:148592kB low:185740kB high:222888kB active_anon:21264kB inactive_anon:23456kB active_file:48752kB inactive_file:31848kB unevictable:3994888kB writepending:168kB present:4710400kB managed:4578292kB mlocked:3994888kB slab_reclaimable:21692kB slab_unreclaimable:29356kB kernel_stack:4464kB pagetables:43540kB bounce:0kB free_pcp:308kB local_pcp:0kB free_cma:0kB
[   57.882870] lowmem_reserve[]: 0 0 0 0
[   57.882872] Node 0 DMA: 1*4kB (U) 2*8kB (U) 3*16kB (U) 0*32kB 3*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15876kB
[   57.882884] Node 0 DMA32: 5*4kB (UM) 3*8kB (UM) 3*16kB (U) 5*32kB (UM) 3*64kB (UM) 1*128kB (M) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 31*4096kB (M) = 130876kB
[   57.882895] Node 0 Normal: 999*4kB (UEH) 611*8kB (UMEH) 228*16kB (UME) 93*32kB (UME) 956*64kB (UME) 310*128kB (UME) 116*256kB (ME) 6*512kB (UME) 0*1024kB 0*2048kB 0*4096kB = 149140kB
[   57.882908] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[   57.882909] 28946 total pagecache pages
[   57.882914] 2837 pages in swap cache
[   57.882915] Swap cache stats: add 694667, delete 692345, find 236965/312237
[   57.882916] Free swap  = 16440572kB
[   57.882916] Total swap = 16777212kB
[   57.882917] 2072756 pages RAM
[   57.882918] 0 pages HighMem/MovableOnly
[   57.882918] 53553 pages reserved
[   57.884675] plasmashell: page allocation failure: order:0, mode:0x14210d2(GFP_HIGHUSER|__GFP_NORETRY|__GFP_RECLAIMABLE), nodemask=(null)
[   57.884683] plasmashell cpuset=/ mems_allowed=0
[   57.884691] CPU: 0 PID: 6280 Comm: plasmashell Tainted: G           O    4.11.0-rc8 #1
[   57.884692] Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A11 12/08/2016
[   57.884692] Call Trace:
[   57.884698]  dump_stack+0x4d/0x72
[   57.884701]  warn_alloc+0xdb/0x170
[   57.884703]  __alloc_pages_slowpath+0xb44/0xc10
[   57.884707]  ? kmem_cache_alloc+0x99/0xc0
[   57.884709]  __alloc_pages_nodemask+0x127/0x150
[   57.884711]  alloc_pages_vma+0x9d/0x260
[   57.884714]  __read_swap_cache_async+0x159/0x1f0
[   57.884716]  ? pagevec_lru_move_fn+0xc0/0xe0
[   57.884718]  read_swap_cache_async+0x12/0x30
[   57.884720]  swapin_readahead+0x143/0x1b0
[   57.884722]  shmem_swapin+0x59/0x90
[   57.884723]  ? shmem_swapin+0x59/0x90
[   57.884725]  ? radix_tree_lookup_slot+0x13/0x30
[   57.884727]  ? find_get_entry+0x93/0x100
[   57.884729]  ? pagecache_get_page+0x27/0x250
[   57.884731]  shmem_getpage_gfp.isra.48+0x736/0xa80
[   57.884733]  shmem_read_mapping_page_gfp+0x2e/0x50
[   57.884736]  ? i915_gem_object_get_pages_gtt+0x1ce/0x5b0
[   57.884738]  i915_gem_object_get_pages_gtt+0x200/0x5b0
[   57.884740]  ____i915_gem_object_get_pages+0x1b/0x60
[   57.884742]  __i915_gem_object_get_pages+0x57/0x70
[   57.884745]  __i915_vma_do_pin+0x1e0/0x3c0
[   57.884746]  i915_gem_execbuffer_reserve_vma.isra.32+0x148/0x1b0
[   57.884748]  i915_gem_execbuffer_reserve.isra.33+0x373/0x3d0
[   57.884750]  i915_gem_do_execbuffer.isra.39+0x5e9/0x1730
[   57.884752]  ? i915_gem_object_wait_reservation+0xeb/0x230
[   57.884753]  ? i915_gem_object_get_page+0x11/0x40
[   57.884756]  ? refcount_dec_and_test+0x11/0x20
[   57.884757]  ? i915_gem_pwrite_ioctl+0xa1/0x5f0
[   57.884758]  i915_gem_execbuffer2+0x98/0x1f0
[   57.884761]  drm_ioctl+0x1e8/0x430
[   57.884762]  ? i915_gem_execbuffer+0x2e0/0x2e0
[   57.884765]  ? selinux_file_ioctl+0x111/0x1b0
[   57.884768]  do_vfs_ioctl+0x8d/0x5a0
[   57.884770]  ? __fget+0x72/0xa0
[   57.884773]  ? security_file_ioctl+0x3e/0x60
[   57.884775]  SyS_ioctl+0x74/0x80
[   57.884778]  entry_SYSCALL_64_fastpath+0x13/0x94
[   57.884779] RIP: 0033:0x3a470dfb67
[   57.884781] RSP: 002b:00007ffcbbefe798 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   57.884782] RAX: ffffffffffffffda RBX: 000000000187d750 RCX: 0000003a470dfb67
[   57.884783] RDX: 00007ffcbbefe7f0 RSI: 00000000c0406469 RDI: 000000000000000f
[   57.884784] RBP: 00000000018a39f8 R08: 0000000000000000 R09: 0000000000000000
[   57.884785] R10: 0000000000004448 R11: 0000000000000246 R12: 00000000bd518018
[   57.884786] R13: 00007f041e400598 R14: 0080020605e4480b R15: 00000000018a3d10
[   58.815860] plasmashell (6280) used greatest stack depth: 11304 bytes left
[   75.005982] kwin_x11: page allocation failure: order:0, mode:0x14210d2(GFP_HIGHUSER|__GFP_NORETRY|__GFP_RECLAIMABLE), nodemask=(null)
[   75.005989] kwin_x11 cpuset=/ mems_allowed=0
[   75.005994] CPU: 1 PID: 6260 Comm: kwin_x11 Tainted: G           O    4.11.0-rc8 #1
[   75.005995] Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A11 12/08/2016
[   75.005996] Call Trace:
[   75.006001]  dump_stack+0x4d/0x72
[   75.006004]  warn_alloc+0xdb/0x170
[   75.006006]  __alloc_pages_slowpath+0xb44/0xc10
[   75.006009]  ? kmem_cache_alloc+0x99/0xc0
[   75.006011]  __alloc_pages_nodemask+0x127/0x150
[   75.006014]  alloc_pages_vma+0x9d/0x260
[   75.006016]  __read_swap_cache_async+0x159/0x1f0
[   75.006019]  ? pagevec_lru_move_fn+0xc0/0xe0
[   75.006021]  read_swap_cache_async+0x12/0x30
[   75.006023]  swapin_readahead+0x143/0x1b0
[   75.006025]  shmem_swapin+0x59/0x90
[   75.006026]  ? shmem_swapin+0x59/0x90
[   75.006028]  ? radix_tree_lookup_slot+0x13/0x30
[   75.006031]  ? find_get_entry+0x93/0x100
[   75.006033]  ? pagecache_get_page+0x27/0x250
[   75.006035]  shmem_getpage_gfp.isra.48+0x736/0xa80
[   75.006037]  shmem_read_mapping_page_gfp+0x2e/0x50
[   75.006040]  ? i915_gem_object_get_pages_gtt+0x1ce/0x5b0
[   75.006042]  i915_gem_object_get_pages_gtt+0x200/0x5b0
[   75.006045]  ____i915_gem_object_get_pages+0x1b/0x60
[   75.006047]  __i915_gem_object_get_pages+0x57/0x70
[   75.006049]  __i915_vma_do_pin+0x1e0/0x3c0
[   75.006051]  i915_gem_execbuffer_reserve_vma.isra.32+0x148/0x1b0
[   75.006053]  i915_gem_execbuffer_reserve.isra.33+0x373/0x3d0
[   75.006055]  i915_gem_do_execbuffer.isra.39+0x5e9/0x1730
[   75.006057]  ? ___slab_alloc+0x1da/0x4c0
[   75.006059]  i915_gem_execbuffer2+0x98/0x1f0
[   75.006061]  drm_ioctl+0x1e8/0x430
[   75.006063]  ? i915_gem_execbuffer+0x2e0/0x2e0
[   75.006066]  ? selinux_file_ioctl+0x111/0x1b0
[   75.006068]  do_vfs_ioctl+0x8d/0x5a0
[   75.006071]  ? security_file_ioctl+0x3e/0x60
[   75.006073]  SyS_ioctl+0x74/0x80
[   75.006076]  entry_SYSCALL_64_fastpath+0x13/0x94
[   75.006078] RIP: 0033:0x3a470dfb67
[   75.006079] RSP: 002b:00007ffc91453168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[   75.006081] RAX: ffffffffffffffda RBX: 000000000327fb10 RCX: 0000003a470dfb67
[   75.006082] RDX: 00007ffc914531c0 RSI: 00000000c0406469 RDI: 0000000000000010
[   75.006083] RBP: 0000000001b46000 R08: 0000000000000000 R09: 0000000000000000
[   75.006084] R10: 0000000000001ba0 R11: 0000000000000246 R12: 0000000000000000
[   75.006085] R13: 0000000000000000 R14: 00000000030f54e0 R15: 0000000000000000
[   75.006092] warn_alloc_show_mem: 1 callbacks suppressed
[   75.006093] Mem-Info:
[   75.006097] active_anon:8515 inactive_anon:8567 isolated_anon:80
                active_file:7870 inactive_file:5766 isolated_file:0
                unevictable:1835016 dirty:41 writeback:0 unstable:0
                slab_reclaimable:5096 slab_unreclaimable:7300
                mapped:13581 shmem:7249 pagetables:12836 bounce:0
                free:73709 free_pcp:204 free_cma:0
[   75.006101] Node 0 active_anon:34060kB inactive_anon:34268kB active_file:31480kB inactive_file:23064kB unevictable:7340064kB isolated(anon):320kB isolated(file):0kB mapped:54324kB dirty:164kB writeback:0kB shmem:28996kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no
[   75.006103] Node 0 DMA free:15876kB min:512kB low:640kB high:768kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15988kB managed:15892kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[   75.006107] lowmem_reserve[]: 0 3398 7869 7869
[   75.006110] Node 0 DMA32 free:130876kB min:113032kB low:141288kB high:169544kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:3345176kB writepending:0kB present:3564636kB managed:3482628kB mlocked:3345176kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:6536kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[   75.006114] lowmem_reserve[]: 0 0 4470 4470
[   75.006118] Node 0 Normal free:148084kB min:148592kB low:185740kB high:222888kB active_anon:34068kB inactive_anon:34432kB active_file:31312kB inactive_file:23060kB unevictable:3994888kB writepending:164kB present:4710400kB managed:4578292kB mlocked:3994888kB slab_reclaimable:20384kB slab_unreclaimable:29184kB kernel_stack:4512kB pagetables:44808kB bounce:0kB free_pcp:824kB local_pcp:0kB free_cma:0kB
[   75.006122] lowmem_reserve[]: 0 0 0 0
[   75.006124] Node 0 DMA: 1*4kB (U) 2*8kB (U) 3*16kB (U) 0*32kB 3*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15876kB
[   75.006137] Node 0 DMA32: 5*4kB (UM) 3*8kB (UM) 3*16kB (U) 5*32kB (UM) 3*64kB (UM) 1*128kB (M) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 31*4096kB (M) = 130876kB
[   75.006150] Node 0 Normal: 422*4kB (UME) 274*8kB (UME) 623*16kB (UME) 280*32kB (UME) 766*64kB (UME) 314*128kB (UMEH) 132*256kB (UME) 7*512kB (UME) 0*1024kB 0*2048kB 0*4096kB = 149400kB
[   75.006163] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[   75.006164] 23944 total pagecache pages
[   75.006167] 3028 pages in swap cache
[   75.006168] Swap cache stats: add 845275, delete 842838, find 264618/378858
[   75.006169] Free swap  = 16436476kB
[   75.006170] Total swap = 16777212kB
[   75.006170] 2072756 pages RAM
[   75.006171] 0 pages HighMem/MovableOnly
[   75.006172] 53553 pages reserved
[  127.757290] X: page allocation failure: order:0, mode:0x14210d2(GFP_HIGHUSER|__GFP_NORETRY|__GFP_RECLAIMABLE), nodemask=(null)
[  127.757297] X cpuset=/ mems_allowed=0
[  127.757303] CPU: 3 PID: 6104 Comm: X Tainted: G           O    4.11.0-rc8 #1
[  127.757304] Hardware name: Dell Inc. XPS 13 9343/0TM99H, BIOS A11 12/08/2016
[  127.757306] Call Trace:
[  127.757312]  dump_stack+0x4d/0x72
[  127.757315]  warn_alloc+0xdb/0x170
[  127.757318]  __alloc_pages_slowpath+0xb44/0xc10
[  127.757321]  ? ___slab_alloc+0x2f0/0x4c0
[  127.757324]  ? radix_tree_node_alloc.constprop.20+0x85/0xc0
[  127.757326]  __alloc_pages_nodemask+0x127/0x150
[  127.757328]  alloc_pages_vma+0x9d/0x260
[  127.757330]  shmem_alloc_page+0x5c/0x90
[  127.757333]  ? cred_has_capability+0x5c/0xf0
[  127.757335]  ? __radix_tree_create+0x183/0x1f0
[  127.757337]  ? __vm_enough_memory+0x24/0x140
[  127.757339]  ? security_vm_enough_memory_mm+0x4e/0x60
[  127.757341]  shmem_alloc_and_acct_page+0x6d/0x1a0
[  127.757343]  shmem_getpage_gfp.isra.48+0x133/0xa80
[  127.757345]  shmem_read_mapping_page_gfp+0x2e/0x50
[  127.757348]  ? i915_gem_object_get_pages_gtt+0x1ce/0x5b0
[  127.757350]  i915_gem_object_get_pages_gtt+0x200/0x5b0
[  127.757352]  ____i915_gem_object_get_pages+0x1b/0x60
[  127.757355]  __i915_gem_object_get_pages+0x57/0x70
[  127.757357]  __i915_vma_do_pin+0x1e0/0x3c0
[  127.757359]  i915_gem_execbuffer_reserve_vma.isra.32+0x148/0x1b0
[  127.757361]  i915_gem_execbuffer_reserve.isra.33+0x373/0x3d0
[  127.757363]  i915_gem_do_execbuffer.isra.39+0x5e9/0x1730
[  127.757365]  ? __radix_tree_delete+0x8d/0xb0
[  127.757367]  i915_gem_execbuffer2+0x98/0x1f0
[  127.757369]  drm_ioctl+0x1e8/0x430
[  127.757371]  ? i915_gem_execbuffer+0x2e0/0x2e0
[  127.757373]  ? selinux_file_ioctl+0x111/0x1b0
[  127.757376]  do_vfs_ioctl+0x8d/0x5a0
[  127.757378]  ? security_file_ioctl+0x3e/0x60
[  127.757380]  SyS_ioctl+0x74/0x80
[  127.757383]  entry_SYSCALL_64_fastpath+0x13/0x94
[  127.757385] RIP: 0033:0x3a470dfb67
[  127.757386] RSP: 002b:00007ffd9a1e87a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  127.757388] RAX: ffffffffffffffda RBX: 0000000002185480 RCX: 0000003a470dfb67
[  127.757389] RDX: 00007ffd9a1e8800 RSI: 00000000c0406469 RDI: 0000000000000016
[  127.757390] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
[  127.757392] R10: 0000000000000528 R11: 0000000000000246 R12: 00000000013b6c78
[  127.757392] R13: 00000000013b6b70 R14: 00000000014f6fe0 R15: 00007ffd9a1e89b4
[  127.757394] Mem-Info:
[  127.757399] active_anon:7497 inactive_anon:8038 isolated_anon:72
                active_file:8124 inactive_file:6540 isolated_file:0
                unevictable:1835016 dirty:76 writeback:0 unstable:0
                slab_reclaimable:4838 slab_unreclaimable:7310
                mapped:13675 shmem:6445 pagetables:12349 bounce:0
                free:73779 free_pcp:23 free_cma:0
[  127.757403] Node 0 active_anon:29988kB inactive_anon:32152kB active_file:32496kB inactive_file:26160kB unevictable:7340064kB isolated(anon):288kB isolated(file):0kB mapped:54700kB dirty:304kB writeback:0kB shmem:25780kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 0kB writeback_tmp:0kB unstable:0kB pages_scanned:0 all_unreclaimable? no
[  127.757404] Node 0 DMA free:15876kB min:512kB low:640kB high:768kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15988kB managed:15892kB mlocked:0kB slab_reclaimable:0kB slab_unreclaimable:16kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[  127.757408] lowmem_reserve[]: 0 3398 7869 7869
[  127.757411] Node 0 DMA32 free:130876kB min:113032kB low:141288kB high:169544kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:3345176kB writepending:0kB present:3564636kB managed:3482628kB mlocked:3345176kB slab_reclaimable:0kB slab_unreclaimable:0kB kernel_stack:0kB pagetables:6536kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[  127.757415] lowmem_reserve[]: 0 0 4470 4470
[  127.757418] Node 0 Normal free:148364kB min:148592kB low:185740kB high:222888kB active_anon:29420kB inactive_anon:32636kB active_file:32496kB inactive_file:25816kB unevictable:3994888kB writepending:304kB present:4710400kB managed:4578292kB mlocked:3994888kB slab_reclaimable:19352kB slab_unreclaimable:29224kB kernel_stack:4560kB pagetables:42860kB bounce:0kB free_pcp:88kB local_pcp:0kB free_cma:0kB
[  127.757422] lowmem_reserve[]: 0 0 0 0
[  127.757425] Node 0 DMA: 1*4kB (U) 2*8kB (U) 3*16kB (U) 0*32kB 3*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15876kB
[  127.757438] Node 0 DMA32: 5*4kB (UM) 3*8kB (UM) 3*16kB (U) 5*32kB (UM) 3*64kB (UM) 1*128kB (M) 1*256kB (U) 0*512kB 1*1024kB (U) 1*2048kB (M) 31*4096kB (M) = 130876kB
[  127.757452] Node 0 Normal: 2010*4kB (ME) 1468*8kB (UME) 1016*16kB (MEH) 406*32kB (MEH) 486*64kB (UMEH) 310*128kB (UME) 107*256kB (ME) 2*512kB (ME) 1*1024kB (M) 0*2048kB 0*4096kB = 149256kB
[  127.757466] Node 0 hugepages_total=0 hugepages_free=0 hugepages_surp=0 hugepages_size=2048kB
[  127.757466] 23443 total pagecache pages
[  127.757471] 2254 pages in swap cache
[  127.757472] Swap cache stats: add 999827, delete 998253, find 294445/442989
[  127.757473] Free swap  = 16425468kB
[  127.757474] Total swap = 16777212kB
[  127.757474] 2072756 pages RAM
[  127.757475] 0 pages HighMem/MovableOnly
[  127.757475] 53553 pages reserved
[  129.836204] traps: ck-remove-direc[6803] trap int3 ip:3a4944ff41 sp:7ffebd67f610 error:0
Comment 6 darlor 2017-05-14 11:31:19 UTC
Created attachment 131349 [details]
dmesgwitherrror

I ran into same error on kernel 4.12-rc.1 using Xorg and i915. Dmesg cut is in the attachment.
Comment 7 Patrick Decat 2017-06-06 12:20:57 UTC
We may be in luck, looks like Linus was hit by the same issue yesterday: https://lists.freedesktop.org/archives/intel-gfx/2017-June/129678.html
Comment 8 Jani Nikula 2017-06-20 09:04:37 UTC
Please try current drm-tip or drm-intel-fixes.


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.