Chris Wilson
717c8ae7aa
lib/prime_numbers: Suppress warn on kmalloc failure
The allocation for the bitmap may become very large, larger than
MAX_ORDER, for large requests. We fail gracefully by falling back to
trail-division, so disable the warning from kmalloc:
521.961092] WARNING: CPU: 0 PID: 30637 at mm/page_alloc.c:3548 __alloc_pages_slowpath+0x237/0x9a0
[ 521.961105] Modules linked in: i915(+) drm_kms_helper intel_gtt prime_numbers [last unloaded: drm_kms_helper]
[ 521.961126] CPU: 0 PID: 30637 Comm: drv_selftest Tainted: G U W 4.10.0-rc3+ #321
[ 521.961137] Hardware name: / , BIOS PYBSWCEL.86A.0027.2015.0507.1758 05/07/2015
[ 521.961148] Call Trace:
[ 521.961161] dump_stack+0x4d/0x6f
[ 521.961172] __warn+0xc1/0xe0
[ 521.961181] warn_slowpath_null+0x18/0x20
[ 521.961189] __alloc_pages_slowpath+0x237/0x9a0
[ 521.961200] ? sg_init_table+0x1a/0x40
[ 521.961208] ? get_page_from_freelist+0x3fa/0x910
[ 521.961275] ? i915_gem_object_get_sg+0x272/0x2b0 [i915]
[ 521.961285] __alloc_pages_nodemask+0x1ea/0x220
[ 521.961295] kmalloc_order+0x1c/0x50
[ 521.961304] __kmalloc+0x115/0x170
[ 521.961314] expand_to_next_prime+0x43/0x180 [prime_numbers]
[ 521.961324] next_prime_number+0x47/0xc0 [prime_numbers]
[ 521.961377] igt_vma_rotate+0x386/0x590 [i915]
[ 521.961429] i915_subtests+0x37/0xc0 [i915]
[ 521.961481] i915_vma_mock_selftests+0x3d/0x70 [i915]
[ 521.961532] run_selftests+0x16e/0x1f0 [i915]
[ 521.961541] ? 0xffffffffa02a4000
[ 521.961592] i915_mock_selftests+0x29/0x40 [i915]
[ 521.961638] i915_init+0xa/0x5e [i915]
[ 521.961646] ? 0xffffffffa02a4000
[ 521.961655] do_one_initcall+0x3e/0x160
[ 521.961664] ? __vunmap+0x7c/0xc0
[ 521.961672] ? vfree+0x29/0x70
[ 521.961680] ? kmem_cache_alloc+0xcf/0x120
[ 521.961690] do_init_module+0x55/0x1c4
[ 521.961699] load_module+0x1f3f/0x25b0
[ 521.961707] ? __symbol_put+0x40/0x40
[ 521.961716] ? kernel_read_file+0x100/0x190
[ 521.961725] SYSC_finit_module+0xbc/0xf0
[ 521.961734] SyS_finit_module+0x9/0x10
[ 521.961744] entry_SYSCALL_64_fastpath+0x17/0x98
[ 521.961752] RIP: 0033:0x7f111aca4119
[ 521.961760] RSP: 002b:00007ffd8be6cbe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[ 521.961773] RAX: ffffffffffffffda RBX: 0000000000000006 RCX: 00007f111aca4119
[ 521.961781] RDX: 0000000000000000 RSI: 000055dfc18bc8e0 RDI: 0000000000000006
[ 521.961789] RBP: 00007ffd8be6bbe0 R08: 0000000000000000 R09: 0000000000000000
[ 521.961796] R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000005
[ 521.961805] R13: 000055dfc18bd3a0 R14: 00007ffd8be6bbc0 R15: 0000000000000005
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170113235119.22528-1-chris@chris-wilson.co.uk
2017-01-23 09:17:12 +01:00
..
2016-03-17 21:38:27 -07:00
2014-10-09 11:35:48 +03:00
2016-04-13 09:22:49 -07:00
2014-09-28 11:08:01 +02:00
2016-11-25 12:57:50 +11:00
2016-11-07 15:08:20 -08:00
2014-06-04 16:54:18 -07:00
2015-09-10 13:29:01 -07:00
2014-08-06 18:01:24 -07:00
2012-10-08 13:50:18 +10:30
2013-04-29 18:28:19 -07:00
2016-05-17 09:33:39 -07:00
2016-04-06 14:06:48 +01:00
2016-10-07 18:46:30 -07:00
locking/atomic: Implement atomic{,64,_long}_fetch_{add,sub,and,andnot,or,xor}{,_relaxed,_acquire,_release}()
2016-06-16 10:48:32 +02:00
2014-12-13 12:42:51 -08:00
2012-09-10 11:13:16 -07:00
2016-10-11 15:06:30 -07:00
2014-12-22 16:43:06 +00:00
2015-11-23 09:44:58 +01:00
2016-03-17 15:09:34 -07:00
2013-06-19 17:54:06 +02:00
2013-03-22 16:41:20 -07:00
2016-07-03 00:57:23 -04:00
2016-03-13 23:55:13 -04:00
2014-04-03 16:21:12 -07:00
2014-10-03 18:40:58 +01:00
2014-03-20 10:11:35 -04:00
2015-05-27 15:22:15 +02:00
2016-02-29 09:35:20 +01:00
2014-05-16 14:26:52 -04:00
2016-08-02 19:35:08 -04:00
2012-03-23 16:58:38 -07:00
2015-05-26 15:26:43 +02:00
2015-05-30 22:42:24 -07:00
2015-06-11 15:08:32 +02:00
2013-06-26 12:10:56 +02:00
2016-12-13 12:59:57 -08:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-09-10 13:29:01 -07:00
2015-07-17 16:39:54 -07:00
2016-02-07 23:17:59 -08:00
2016-05-31 16:42:00 +08:00
2015-11-16 14:42:12 -05:00
2016-10-06 17:13:54 -07:00
2016-08-04 08:50:07 -04:00
2016-02-05 18:10:40 -08:00
2016-08-04 08:50:07 -04:00
2015-02-12 18:54:15 -08:00
2016-06-08 11:04:19 +02:00
2016-12-24 11:46:01 -08:00
2015-10-23 17:55:10 +09:00
2014-04-30 19:49:37 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2012-07-23 13:54:52 +01:00
2015-04-17 09:03:54 -04:00
2014-01-21 23:17:20 -08:00
2016-02-15 11:18:23 +01:00
2016-05-20 17:58:30 -07:00
2015-02-13 21:21:35 -08:00
2016-10-27 18:43:43 -07:00
2014-08-06 18:01:25 -07:00
2015-11-06 17:50:42 -08:00
2015-11-06 17:50:42 -08:00
2016-06-08 15:01:02 +02:00
2016-12-12 18:55:09 -08:00
2013-04-29 18:28:19 -07:00
2014-05-05 09:09:14 +02:00
2015-02-12 18:54:15 -08:00
2016-01-20 17:09:18 -08:00
2014-04-07 16:36:11 -07:00
2015-11-05 16:34:48 -08:00
2016-08-02 19:35:07 -04:00
2015-04-14 16:49:04 -07:00
2016-12-22 23:00:22 -05:00
2016-10-15 10:03:15 -07:00
2015-11-06 17:50:42 -08:00
2012-05-02 00:04:06 -07:00
2016-01-16 11:17:27 -08:00
2016-12-27 12:30:56 +01:00
2016-12-25 10:47:43 +01:00
2016-07-28 16:07:41 -07:00
2016-05-23 17:04:14 -07:00
2016-12-14 16:04:08 -08:00
2014-08-08 15:57:25 -07:00
2016-02-07 22:18:47 -08:00
2016-10-28 02:42:10 -04:00
2016-02-09 17:36:34 -08:00
2016-12-24 11:46:01 -08:00
2015-03-31 09:45:50 -06:00
2016-01-22 11:58:43 -08:00
2016-10-31 13:01:58 -07:00
2015-06-16 14:12:35 -04:00
2015-11-06 17:50:42 -08:00
2016-11-25 07:12:19 +01:00
2016-11-16 10:15:10 +01:00
2015-11-25 09:22:02 -07:00
2017-01-09 09:55:57 +10:00
2015-02-12 18:54:15 -08:00
2012-07-30 17:25:22 -07:00
2012-07-30 17:25:16 -07:00
2014-06-25 17:45:43 -07:00
2015-12-03 11:49:23 -05:00
2016-11-19 22:11:25 -05:00
2016-10-07 18:46:30 -07:00
2016-05-19 19:12:14 -07:00
2013-04-09 14:13:05 -04:00
2012-07-30 17:25:22 -07:00
2012-12-14 10:32:52 +11:00
2013-05-05 14:38:00 -07:00
2015-10-08 05:26:36 -07:00
2016-12-06 10:17:03 +02:00
2015-09-08 14:35:59 -07:00
2016-11-09 23:45:26 +01:00
2015-11-06 17:50:42 -08:00
2013-11-13 12:09:11 +09:00
2016-08-11 13:52:23 -04:00
2015-02-12 18:54:16 -08:00
2012-07-30 17:25:22 -07:00
2017-01-23 09:17:12 +01:00
2017-01-07 18:22:40 -08:00
2016-10-15 10:03:15 -07:00
2016-08-02 19:35:06 -04:00
2012-05-17 15:18:37 +02:00
2014-01-23 16:37:03 -08:00
2016-12-12 18:55:09 -08:00
2014-01-21 23:17:20 -08:00
2016-09-20 04:43:36 -04:00
2016-09-19 08:19:40 -06:00
2016-02-08 10:15:17 -08:00
2015-12-23 14:27:20 -05:00
2016-04-15 16:53:14 -04:00
2015-08-24 14:28:01 -06:00
2015-03-23 22:12:08 -04:00
2015-09-08 15:35:28 -07:00
2014-04-07 16:36:14 -07:00
2015-06-25 17:00:40 -07:00
2016-11-11 08:12:37 -08:00
2015-02-12 18:54:16 -08:00
2016-04-21 10:47:26 +10:00
2016-03-17 15:09:34 -07:00
2016-10-11 15:06:30 -07:00
2016-08-08 13:02:01 -07:00
2017-01-06 13:00:01 -05:00
2016-09-16 09:18:53 +02:00
2016-02-19 22:54:09 -05:00
2016-10-20 14:39:06 -04:00
2016-01-07 13:44:22 -07:00
2016-09-01 17:52:01 -07:00
2016-01-20 17:09:18 -08:00
2016-11-30 16:32:52 -08:00
2014-01-23 16:36:57 -08:00
2016-03-15 16:55:16 -07:00
2016-08-08 12:52:42 -07:00
2015-08-03 11:51:12 +02:00
2016-02-09 10:27:29 +01:00
2014-01-23 16:36:57 -08:00
2016-05-30 15:26:57 -07:00
2015-09-10 13:29:01 -07:00
2016-02-03 08:28:43 -08:00
2014-10-14 02:18:14 +02:00
2016-12-25 17:21:22 +01:00
2016-08-02 17:31:41 -04:00
2016-01-20 17:09:18 -08:00
2016-09-09 16:08:46 +01:00
2016-05-30 15:26:57 -07:00
2016-05-20 17:58:30 -07:00
2016-09-21 00:22:59 -04:00