[ 6116.592933] warn_alloc: 7 callbacks suppressed [ 6116.592936] gem_ctx_thrash: page allocation failure: order:7, mode:0x14040c0(GFP_KERNEL|__GFP_COMP), nodemask=(null) [ 6116.592947] CPU: 1 PID: 6658 Comm: gem_ctx_thrash Tainted: G U 4.13.0-drm-tip-ww37-commit-9adc9e9+ #1 [ 6116.592948] Hardware name: Intel Corp. Geminilake/GLK RVP1 DDR4 (05), BIOS GELKRVPA.X64.0060.B34.1708091025 08/09/2017 [ 6116.592949] Call Trace: [ 6116.592958] dump_stack+0x63/0x8b [ 6116.592962] warn_alloc+0x114/0x1b0 [ 6116.592964] ? __alloc_pages_direct_compact+0x50/0x110 [ 6116.592966] __alloc_pages_slowpath+0xdf7/0xe00 [ 6116.592968] __alloc_pages_nodemask+0x260/0x280 [ 6116.592971] alloc_pages_current+0x6a/0xd0 [ 6116.592974] kmalloc_order+0x18/0x40 [ 6116.592975] kmalloc_order_trace+0x24/0xa0 [ 6116.592977] ? __kmalloc_track_caller+0x1e5/0x200 [ 6116.592979] __kmalloc_track_caller+0x1e5/0x200 [ 6116.592980] ? set_page_dirty+0x58/0xb0 [ 6116.592982] krealloc+0xa7/0xc0 [ 6116.592986] reservation_object_get_fences_rcu+0x192/0x1c0 [ 6116.593028] i915_gem_object_wait_reservation+0x153/0x240 [i915] [ 6116.593055] i915_gem_set_domain_ioctl+0xbd/0x250 [i915] [ 6116.593080] ? i915_gem_obj_prepare_shmem_write+0x160/0x160 [i915] [ 6116.593098] drm_ioctl_kernel+0x69/0xb0 [drm] [ 6116.593109] drm_ioctl+0x340/0x450 [drm] [ 6116.593134] ? i915_gem_obj_prepare_shmem_write+0x160/0x160 [i915] [ 6116.593137] ? dput+0x1e0/0x1f0 [ 6116.593139] do_vfs_ioctl+0xa1/0x5e0 [ 6116.593142] ? ____fput+0xe/0x10 [ 6116.593145] ? task_work_run+0x83/0xa0 [ 6116.593147] SyS_ioctl+0x79/0x90 [ 6116.593149] entry_SYSCALL_64_fastpath+0x1e/0xa9 [ 6116.593151] RIP: 0033:0x7fe3d06318b7 [ 6116.593152] RSP: 002b:00007fff6b357fa8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 [ 6116.593153] RAX: ffffffffffffffda RBX: 000000000000eb3e RCX: 00007fe3d06318b7 [ 6116.593154] RDX: 00007fff6b357fe0 RSI: 00000000400c645f RDI: 0000000000000003 [ 6116.593155] RBP: 00007fff6b357ff0 R08: 0000000000000040 R09: 0000000000000000 [ 6116.593155] R10: 00007fe3d2070010 R11: 0000000000000246 R12: 00000000c010645b [ 6116.593156] R13: 0000000000000003 R14: 000000000000eb3e R15: 0000000000000002 [ 6116.593158] Mem-Info: [ 6116.593162] active_anon:55664 inactive_anon:976144 isolated_anon:32 active_file:15328 inactive_file:9181 isolated_file:0 unevictable:0 dirty:8 writeback:19287 unstable:0 slab_reclaimable:25900 slab_unreclaimable:386327 mapped:11539 shmem:942538 pagetables:1784 bounce:0 free:36212 free_pcp:0 free_cma:0 [ 6116.593165] Node 0 active_anon:222656kB inactive_anon:3904576kB active_file:61312kB inactive_file:36724kB unevictable:0kB isolated(anon):128kB isolated(file):0kB mapped:46156kB dirty:32kB writeback:77148kB shmem:3770152kB shmem_thp: 0kB shmem_pmdmapped: 0kB anon_thp: 40960kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no [ 6116.593166] Node 0 DMA free:15888kB min:132kB low:164kB high:196kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15980kB managed:15888kB mlocked:0kB kernel_stack:0kB pagetables:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB [ 6116.593169] lowmem_reserve[]: 0 1747 7762 7762 7762 [ 6116.593171] Node 0 DMA32 free:39496kB min:15184kB low:18980kB high:22776kB active_anon:4120kB inactive_anon:1377176kB active_file:104kB inactive_file:16kB unevictable:0kB writepending:4kB present:1913052kB managed:1831708kB mlocked:0kB kernel_stack:0kB pagetables:8kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB [ 6116.593174] lowmem_reserve[]: 0 0 6014 6014 6014 [ 6116.593177] Node 0 Normal free:89464kB min:52260kB low:65324kB high:78388kB active_anon:218536kB inactive_anon:2527400kB active_file:61208kB inactive_file:36708kB unevictable:0kB writepending:77176kB present:6291456kB managed:6159280kB mlocked:0kB kernel_stack:2752kB pagetables:7128kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB [ 6116.593180] lowmem_reserve[]: 0 0 0 0 0 [ 6116.593183] Node 0 DMA: 0*4kB 2*8kB (U) 2*16kB (U) 3*32kB (U) 2*64kB (U) 2*128kB (U) 0*256kB 0*512kB 1*1024kB (U) 1*2048kB (M) 3*4096kB (M) = 15888kB [ 6116.593192] Node 0 DMA32: 94*4kB (UME) 116*8kB (UE) 143*16kB (UME) 108*32kB (UME) 507*64kB (UME) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 39496kB [ 6116.593201] Node 0 Normal: 1418*4kB (UME) 306*8kB (UME) 404*16kB (UME) 548*32kB (UME) 896*64kB (UME) 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 89464kB [ 6116.593212] 987203 total pagecache pages [ 6116.593217] 20156 pages in swap cache [ 6116.593218] Swap cache stats: add 3760085, delete 3739811, find 836206/1056590 [ 6116.593219] Free swap = 14773244kB [ 6116.593219] Total swap = 16642044kB [ 6116.593220] 2055122 pages RAM [ 6116.593220] 0 pages HighMem/MovableOnly [ 6116.593221] 53403 pages reserved [ 6116.593221] 0 pages cma reserved [ 6116.593222] 0 pages hwpoisoned