Created attachment 131392 [details] dmesg.log Hi, the following subtest failing on APL with latest configuration Testlits ====================================== igt@drv_selftest@mock_evict igt@drv_selftest@mock_vma igt@drv_selftest@mock_gtt igt@drv_selftest@mock_objects igt@drv_selftest@mock_dmabuf output: ====================================== IGT-Version: 1.18-g93215b0 (x86_64) (Linux: 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ x86_64) (drv_selftest:1401) igt-kmod-DEBUG: Could not remove module drm_kms_helper (No such file or directory) (drv_selftest:1401) igt-kmod-DEBUG: Could not remove module drm (No such file or directory) (drv_selftest:1401) igt-kmod-DEBUG: Test requirement passed: err == 0 || err == -ENOENT (drv_selftest:1401) igt-kmod-DEBUG: Test requirement passed: igt_kselftest_begin(&tst) == 0 (drv_selftest:1401) igt-core-DEBUG: Starting subtest: mock_evict (drv_selftest:1401) igt-kmod-WARNING: Performing mock selftests with st_random_seed=0xcc6a1791 st_timeout=1000 (drv_selftest:1401) igt-kmod-WARNING: Allocating domain for mock failed (drv_selftest:1401) igt-kmod-WARNING: -22 (drv_selftest:1401) igt-kmod-WARNING: CPU: 3 PID: 1401 at drivers/gpu/drm/i915/intel_runtime_pm.c:2877 intel_runtime_pm_get_if_in_use+0x61/0xb0 [i915] (drv_selftest:1401) igt-kmod-WARNING: i915(+) x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec_hdmi lpc_ich snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm mei_me mei mmc_block sdhci_pci r8169 sdhci mmc_core mii prime_numbers [last unloaded: i915] (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G U 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: ffff88046a74a6c0 task.stack: ffffc90000844000 (drv_selftest:1401) igt-kmod-WARNING: 0010:intel_runtime_pm_get_if_in_use+0x61/0xb0 [i915] (drv_selftest:1401) igt-kmod-WARNING: 0018:ffffc90000847968 EFLAGS: 00010296 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000026 RBX: ffff880467b408f8 RCX: 0000000000000001 (drv_selftest:1401) igt-kmod-WARNING: 0000000080000001 RSI: ffffffff81c8c312 RDI: 00000000ffffffff (drv_selftest:1401) igt-kmod-WARNING: ffffc90000847970 R08: 0000000000000000 R09: 0000000000000001 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 R11: 0000000000000000 R12: ffff880467b46648 (drv_selftest:1401) igt-kmod-WARNING: ffff88044dd18fa8 R14: 0000000000000001 R15: ffff880464810040 (drv_selftest:1401) igt-kmod-WARNING: 00007f1a0426c5c0(0000) GS:ffff88047fd80000(0000) knlGS:0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f407f8 CR3: 00000004649d0000 CR4: 00000000003406e0 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 00 b8 01 00 00 00 85 d2 74 48 5b 5d c3 80 3d fb f9 13 00 00 75 17 89 c6 48 c7 c7 20 d2 41 a0 c6 05 e9 f9 13 00 01 e8 77 a3 e6 e0 <0f> ff 31 c0 5b 5d c3 80 3d f1 f9 13 00 00 75 c0 48 c7 c7 58 cf (drv_selftest:1401) igt-kmod-WARNING: igt_evict_something failed with error -12 (drv_selftest:1401) igt-kmod-WARNING: possible recursive locking detected (drv_selftest:1401) igt-kmod-WARNING: G U W (drv_selftest:1401) igt-kmod-WARNING: [<ffffffff811dfbd9>] get_partial_node.isra.24+0x59/0x4e0 (drv_selftest:1401) igt-kmod-WARNING: [<ffffffff811e3164>] __kmem_cache_shutdown+0x64/0x3f0 (drv_selftest:1401) igt-kmod-WARNING: x0a (drv_selftest:1401) igt-kmod-WARNING: (cpu_hotplug.dep_map){++++++}, at: [<ffffffff8107e7a9>] get_online_cpus+0x29/0x70 (drv_selftest:1401) igt-kmod-WARNING: (slab_mutex){+.+.+.}, at: [<ffffffff811aa01c>] kmem_cache_destroy+0x2c/0x240 (drv_selftest:1401) igt-kmod-WARNING: (&(&n->list_lock)->rlock){-.-...}, at: [<ffffffff811e3164>] __kmem_cache_shutdown+0x64/0x3f0 (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G U W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: G U W ): Objects remaining in i915_vma on __kmem_cache_shutdown() (drv_selftest:1401) igt-kmod-WARNING: Slab 0xffffea0011920600 objects=17 used=1 fp=0xffff88046481bc40 flags=0x8000000000008100 (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: Object 0xffff880464818040 @offset=64 (drv_selftest:1401) igt-kmod-WARNING: Allocated in i915_vma_instance+0xfe/0x560 [i915] age=29 cpu=3 pid=1401 (drv_selftest:1401) igt-kmod-WARNING: Slab cache still has objects (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: G BU W ): Objects remaining in mock_object on __kmem_cache_shutdown() (drv_selftest:1401) igt-kmod-WARNING: Slab 0xffffea0011920400 objects=21 used=1 fp=0xffff880464817840 flags=0x8000000000008100 (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: Object 0xffff880464810040 @offset=64 (drv_selftest:1401) igt-kmod-WARNING: Allocated in i915_gem_object_alloc+0x15/0x20 [i915] age=33 cpu=3 pid=1401 (drv_selftest:1401) igt-kmod-WARNING: Slab cache still has objects (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-CRITICAL: Test assertion failure function igt_kselftest_execute, file igt_kmod.c:477: (drv_selftest:1401) igt-kmod-CRITICAL: Failed assertion: err == 0 (drv_selftest:1401) igt-kmod-CRITICAL: kselftest "i915 igt__21__mock_evict=1 mock_selftests=-1" failed: Cannot allocate memory [12] Stack trace: #0 [__igt_fail_assert+0x101] #1 [igt_kselftest_execute+0x28a] #2 [igt_kselftests+0x295] #3 [main+0x44] #4 [__libc_start_main+0xf1] #5 [_start+0x29] #6 [<unknown>+0x29] Subtest mock_evict failed. **** DEBUG **** (drv_selftest:1401) igt-kmod-WARNING: Performing mock selftests with st_random_seed=0xcc6a1791 st_timeout=1000 (drv_selftest:1401) igt-kmod-WARNING: Allocating domain for mock failed (drv_selftest:1401) igt-kmod-WARNING: -22 (drv_selftest:1401) igt-kmod-WARNING: CPU: 3 PID: 1401 at drivers/gpu/drm/i915/intel_runtime_pm.c:2877 intel_runtime_pm_get_if_in_use+0x61/0xb0 [i915] (drv_selftest:1401) igt-kmod-WARNING: i915(+) x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_codec_hdmi lpc_ich snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core snd_pcm mei_me mei mmc_block sdhci_pci r8169 sdhci mmc_core mii prime_numbers [last unloaded: i915] (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G U 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: ffff88046a74a6c0 task.stack: ffffc90000844000 (drv_selftest:1401) igt-kmod-WARNING: 0010:intel_runtime_pm_get_if_in_use+0x61/0xb0 [i915] (drv_selftest:1401) igt-kmod-WARNING: 0018:ffffc90000847968 EFLAGS: 00010296 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000026 RBX: ffff880467b408f8 RCX: 0000000000000001 (drv_selftest:1401) igt-kmod-WARNING: 0000000080000001 RSI: ffffffff81c8c312 RDI: 00000000ffffffff (drv_selftest:1401) igt-kmod-WARNING: ffffc90000847970 R08: 0000000000000000 R09: 0000000000000001 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 R11: 0000000000000000 R12: ffff880467b46648 (drv_selftest:1401) igt-kmod-WARNING: ffff88044dd18fa8 R14: 0000000000000001 R15: ffff880464810040 (drv_selftest:1401) igt-kmod-WARNING: 00007f1a0426c5c0(0000) GS:ffff88047fd80000(0000) knlGS:0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f407f8 CR3: 00000004649d0000 CR4: 00000000003406e0 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 00 b8 01 00 00 00 85 d2 74 48 5b 5d c3 80 3d fb f9 13 00 00 75 17 89 c6 48 c7 c7 20 d2 41 a0 c6 05 e9 f9 13 00 01 e8 77 a3 e6 e0 <0f> ff 31 c0 5b 5d c3 80 3d f1 f9 13 00 00 75 c0 48 c7 c7 58 cf (drv_selftest:1401) igt-kmod-WARNING: igt_evict_something failed with error -12 (drv_selftest:1401) igt-kmod-WARNING: possible recursive locking detected (drv_selftest:1401) igt-kmod-WARNING: G U W (drv_selftest:1401) igt-kmod-WARNING: [<ffffffff811dfbd9>] get_partial_node.isra.24+0x59/0x4e0 (drv_selftest:1401) igt-kmod-WARNING: [<ffffffff811e3164>] __kmem_cache_shutdown+0x64/0x3f0 (drv_selftest:1401) igt-kmod-WARNING: x0a (drv_selftest:1401) igt-kmod-WARNING: (cpu_hotplug.dep_map){++++++}, at: [<ffffffff8107e7a9>] get_online_cpus+0x29/0x70 (drv_selftest:1401) igt-kmod-WARNING: (slab_mutex){+.+.+.}, at: [<ffffffff811aa01c>] kmem_cache_destroy+0x2c/0x240 (drv_selftest:1401) igt-kmod-WARNING: (&(&n->list_lock)->rlock){-.-...}, at: [<ffffffff811e3164>] __kmem_cache_shutdown+0x64/0x3f0 (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G U W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: G U W ): Objects remaining in i915_vma on __kmem_cache_shutdown() (drv_selftest:1401) igt-kmod-WARNING: Slab 0xffffea0011920600 objects=17 used=1 fp=0xffff88046481bc40 flags=0x8000000000008100 (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: Object 0xffff880464818040 @offset=64 (drv_selftest:1401) igt-kmod-WARNING: Allocated in i915_vma_instance+0xfe/0x560 [i915] age=29 cpu=3 pid=1401 (drv_selftest:1401) igt-kmod-WARNING: Slab cache still has objects (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: G BU W ): Objects remaining in mock_object on __kmem_cache_shutdown() (drv_selftest:1401) igt-kmod-WARNING: Slab 0xffffea0011920400 objects=21 used=1 fp=0xffff880464817840 flags=0x8000000000008100 (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: Object 0xffff880464810040 @offset=64 (drv_selftest:1401) igt-kmod-WARNING: Allocated in i915_gem_object_alloc+0x15/0x20 [i915] age=33 cpu=3 pid=1401 (drv_selftest:1401) igt-kmod-WARNING: Slab cache still has objects (drv_selftest:1401) igt-kmod-WARNING: 3 PID: 1401 Comm: drv_selftest Tainted: G BU W 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ #1 (drv_selftest:1401) igt-kmod-WARNING: Intel corporation NUC6CAYS/NUC6CAYB, BIOS AYAPLCEL.86A.0038.2017.0310.1633 03/10/2017 (drv_selftest:1401) igt-kmod-WARNING: 0033:0x7f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 002b:00007ffe97f43218 EFLAGS: 00000206 ORIG_RAX: 0000000000000139 (drv_selftest:1401) igt-kmod-WARNING: ffffffffffffffda RBX: 0000000000000005 RCX: 00007f1a02a93d29 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000000 RSI: 0000000000732340 RDI: 0000000000000005 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42220 R08: 0000000000000000 R09: 0000000000000000 (drv_selftest:1401) igt-kmod-WARNING: 0000000000000005 R11: 0000000000000206 R12: 00000000007333f0 (drv_selftest:1401) igt-kmod-WARNING: 00007ffe97f42200 R14: 0000000000000005 R15: 0000000000000000 (drv_selftest:1401) igt-kmod-CRITICAL: Test assertion failure function igt_kselftest_execute, file igt_kmod.c:477: (drv_selftest:1401) igt-kmod-CRITICAL: Failed assertion: err == 0 (drv_selftest:1401) igt-kmod-CRITICAL: kselftest "i915 igt__21__mock_evict=1 mock_selftests=-1" failed: Cannot allocate memory [12] **** END **** Subtest mock_evict: FAIL (0.101s) (drv_selftest:1401) igt-kmod-DEBUG: Test requirement passed: !igt_list_empty(&tests) (drv_selftest:1401) igt-kmod-DEBUG: Could not remove module drm_kms_helper (No such file or directory) (drv_selftest:1401) igt-kmod-DEBUG: Could not remove module drm (No such file or directory) (drv_selftest:1401) igt-kmod-DEBUG: Test requirement passed: err == 0 || err == -ENOENT (drv_selftest:1401) igt-kmod-DEBUG: Test requirement passed: igt_kselftest_begin(&tst) == 0 (drv_selftest:1401) igt-kmod-DEBUG: Test requirement passed: !igt_list_empty(&tests) (drv_selftest:1401) igt-core-DEBUG: Exiting with status code 99 ====================================== Software ====================================== kernel version : 4.12.0-rc1-drm-tip-ww20-commit-713f8ec+ architecture : x86_64 os version : Ubuntu 16.10 os codename : yakkety kernel driver : i915 bios revision : 5.6 bios release date : 03/10/2017 ksc : 16.0 ====================================== Graphic drivers ====================================== Component: drm tag: libdrm-2.4.80-11-ga2fa2e0 commit: a2fa2e08692483cf9f4d06caa6e0f0add59e3343 Component: cairo tag: 1.15.4-21-g9d44136 commit: 9d44136ef8e2a1ad2c6631beb4bbdaeed7a2dad8 Component: intel-gpu-tools tag: intel-gpu-tools-1.18-173-g93215b0 commit: 93215b00db06ba568c34a6cad194f4749bbfbc9d Component: piglit tag: piglit-v1 commit: 7352f4a98a23eae1201bfc4a0121d9c3a969d23f ====================================== Hardware ====================================== motherboard model : NUC6CAYS motherboard id : NUC6CAYB form factor : Desktop manufacturer : Intelcorporation cpu family : Celeron cpu family id : 6 cpu information : Intel(R) Celeron(R) CPU J3455 @ 1.50GHz gpu card : Intel Corporation Device 5a85 (rev 0b) (prog-if 00 [VGA controller]) memory ram : 15.54 GB cpu thread : 4 cpu core : 4 cpu model : 92 cpu stepping : 9 signature : Type 0, Family 6, Model 92, Stepping 9 current cd clock frequency : 384000 kHz maximum cd clock frequency : 624000 kHz displays connected : DP-1 DP-2 ====================================== Firmware ====================================== dmc fw loaded : yes dmc version : 1.7 guc fw loaded : NONE guc version wanted : 0.0 guc version found : 0.0 Add Comment
Same issue on SKL with latest configuration Test cases ====================================== igt@drv_selftest@mock_evict igt@drv_selftest@mock_dmabuf igt@drv_selftest@mock_vma igt@drv_selftest@mock_gtt igt@drv_selftest@mock_objects ====================================== Graphic drivers ====================================== Component: drm tag: libdrm-2.4.80-11-ga2fa2e0 commit: a2fa2e08692483cf9f4d06caa6e0f0add59e3343 Component: cairo tag: 1.15.4-21-g9d44136 commit: 9d44136ef8e2a1ad2c6631beb4bbdaeed7a2dad8 Component: intel-gpu-tools tag: intel-gpu-tools-1.18-173-g93215b0 commit: 93215b00db06ba568c34a6cad194f4749bbfbc9d Component: piglit tag: piglit-v1 commit: 7352f4a98a23eae1201bfc4a0121d9c3a969d23f
Same issue on BDW with latest configuration igt@drv_selftest@mock_evict igt@drv_selftest@mock_vma igt@drv_selftest@mock_gtt igt@drv_selftest@mock_objects igt@drv_selftest@mock_dmabuf Component: drm tag: libdrm-2.4.80-18-gce9e3ba commit: ce9e3ba6e2cc65e1e9e6e05a5f326c4dd25ab2c4 Component: cairo tag: 1.15.4-22-g0fd0fd0 commit: 0fd0fd0ae9ad8cfb177bb844091de98c0235917e Component: intel-gpu-tools tag: intel-gpu-tools-1.18-211-g00ce341 commit: 00ce341b95c718611689ded8ccec45086186c5b7 Component: piglit tag: piglit-v1 commit: ebbb9c5dcc6a637884d54e06eb430a8c14993413 Kernel version ========================================= commit 75397b60fe84eb5125a78a5ee304def86b761994 Author: Chris Wilson <chris@chris-wilson.co.uk> AuthorDate: Tue May 30 12:56:32 2017 +0100 Commit: Chris Wilson <chris@chris-wilson.co.uk> CommitDate: Tue May 30 12:56:32 2017 +0100 drm-tip: 2017y-05m-30d-11h-55m-42s UTC integration manifest
Adding tag into "Whiteboard" field - ReadyForDev *Status is correct *Platform is included *Feature is included *Priority and Severity correctly set *Logs included
Created attachment 134227 [details] SKL test ouputs Still the same with SKL and latest configuration: ====================================== Software ====================================== kernel version : 4.13.0-drm-tip-ww37-commit-ebee17e+ hostname : SKL-2-NUC6i5SYB architecture : x86_64 os version : Ubuntu 16.10 os codename : yakkety bios revision : 5.6 bios release date : 05/27/2016 hardware acceleration : disabled swap partition : enabled on (/dev/sda3) ====================================== Graphic drivers ====================================== grep: /opt/X11R7/var/log/Xorg.0.log: No such file or directory libdrm : 2.4.83 cairo : 1.15.9 intel-gpu-tools (tag) : intel-gpu-tools-1.19-289-gc718ba8 intel-gpu-tools (commit) : c718ba8 ====================================== Hardware ====================================== platform : Skylake-Nuc motherboard id : NUC6i5SYB form factor : Desktop cpu family : Core i5 cpu family id : 6 cpu information : Intel(R) Core(TM) i5-6260U CPU @ 1.80GHz gpu card : Intel Corporation Iris Graphics 540 (rev 0a) (prog-if 00 [VGA controller]) memory ram : 15.58 GB max memory ram : 32 GB cpu thread : 4 cpu core : 2 cpu model : 78 cpu stepping : 3 socket : None signature : Type 0, Family 6, Model 78, Stepping 3 hard drive : 223GiB (240GB) ====================================== Firmware ====================================== huc fw loaded : yes ====================================== kernel parameters ====================================== quiet drm.debug=0x1e i915.enable_guc_loading=2 i915.enable_guc_submission=2 auto panic=1 nmi_watchdog=panic intel_iommu=igfx_off resume=/dev/sda3 fastboot
diff --git a/drivers/gpu/drm/i915/selftests/mock_gem_device.c b/drivers/gpu/drm/i915/selftests/mock_gem_device.c index 678723430d78..38ed006be5be 100644 --- a/drivers/gpu/drm/i915/selftests/mock_gem_device.c +++ b/drivers/gpu/drm/i915/selftests/mock_gem_device.c @@ -146,6 +146,9 @@ struct drm_i915_private *mock_gem_device(void) dev_set_name(&pdev->dev, "mock"); dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32)); + /* hack to disable iommu for the fake device; force identity mapping */ + pdev->dev.archdata.iommu = (void *)-1; + dev_pm_domain_set(&pdev->dev, &pm_domain); pm_runtime_enable(&pdev->dev); pm_runtime_dont_use_autosuspend(&pdev->dev);
With patch applied test are SUCCESS: $ : time sudo -E ./drv_selftest --r mock_evict IGT-Version: 1.19-gc718ba8 (x86_64) (Linux: 4.13.0kernel-seltests-9adc9e9+ x86_64) Subtest mock_evict: SUCCESS (0.428s) $ : time sudo -E ./drv_selftest --r mock_dmabuf IGT-Version: 1.19-gc718ba8 (x86_64) (Linux: 4.13.0kernel-seltests-9adc9e9+ x86_64) Subtest mock_dmabuf: SUCCESS (0.168s) $ : time sudo -E ./drv_selftest --r mock_vma IGT-Version: 1.19-gc718ba8 (x86_64) (Linux: 4.13.0kernel-seltests-9adc9e9+ x86_64) Subtest mock_vma: SUCCESS (2.430s) $ : time sudo -E ./drv_selftest --r mock_gtt IGT-Version: 1.19-gc718ba8 (x86_64) (Linux: 4.13.0kernel-seltests-9adc9e9+ x86_64) Subtest mock_gtt: SUCCESS (5.442s) $ : time sudo -E ./drv_selftest --r mock_objects IGT-Version: 1.19-gc718ba8 (x86_64) (Linux: 4.13.0kernel-seltests-9adc9e9+ x86_64) Subtest mock_objects: SUCCESS (0.200s)
commit b5891fb520f742ce48b097c6b8a0b2db1e2bb979 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu Sep 14 17:22:40 2017 +0100 drm/i915/selftests: Disable iommu for the mock device On some machines, the iommu cannot allocate a domain for the mock device causing the dma_map_sg() to fail, and the selftest to fail with -ENOMEM. For the mock selftests, we are using a fake device and do not care about iommu; so convince intel_iommu to treat us as a dummy device with an identity mapping (and no iommu domain). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101080 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20170914162240.18310-1-chris@chris-wilson.co.uk Tested-by: Elizabeth De La Torre Mena <elizabethx.de.la.torre.mena@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Verified on SKL, APL and BDW. Closing. $ : time sudo -E ./intel-graphics/intel-gpu-tools/tests/drv_selftest --r mock_* IGT-Version: 1.19-g26d0da4 (x86_64) (Linux: 4.14.0-rc3-drm-tip-ww40-commit-d8f7188+ x86_64) Subtest mock_sanitycheck: SUCCESS (0.063s) Subtest mock_fence: SUCCESS (0.076s) Subtest mock_scatterlist: SUCCESS (2.048s) Subtest mock_syncmap: SUCCESS (3.488s) Subtest mock_uncore: SUCCESS (0.053s) Subtest mock_breadcrumbs: SUCCESS (1.765s) Subtest mock_timelines: SUCCESS (1.698s) Subtest mock_requests: SUCCESS (1.109s) Subtest mock_objects: SUCCESS (0.116s) Subtest mock_dmabuf: SUCCESS (0.104s) Subtest mock_vma: SUCCESS (2.184s) Subtest mock_evict: SUCCESS (0.260s) Subtest mock_gtt: SUCCESS (5.079s)
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.