Bug 107339 - [CI][BAT] kernel BUG at drivers/gpu/drm/i915/i915_gem_object.h:444! , invalid opcode: 0000
Summary: [CI][BAT] kernel BUG at drivers/gpu/drm/i915/i915_gem_object.h:444! , invalid...
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/Intel (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Intel GFX Bugs mailing list
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard: ReadyForDev
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-23 13:44 UTC by Martin Peres
Modified: 2018-08-07 07:58 UTC (History)
1 user (show)

See Also:
i915 platform: CNL, ICL
i915 features: GEM/Other


Attachments

Description Martin Peres 2018-07-23 13:44:10 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_4527/fi-icl-u/igt@drv_selftest@live_objects.html

[  594.788499] ------------[ cut here ]------------
[  594.788501] kernel BUG at drivers/gpu/drm/i915/i915_gem_object.h:444!
[  594.788523] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[  594.788530] CPU: 2 PID: 9189 Comm: drv_selftest Tainted: G     U  W         4.18.0-rc6-CI-CI_DRM_4527+ #1
[  594.788540] Hardware name: Intel Corporation Ice Lake Client Platform/IceLake U DDR4 SODIMM PD RVP, BIOS ICLSFWR1.R00.2222.A01.1805300339 05/30/2018
[  594.788607] RIP: 0010:check_partial_mapping+0x721/0x760 [i915]
[  594.788613] Code: 8e c8 c7 e0 48 8b 35 e6 3f 1c 00 49 c7 c0 43 af 58 a0 b9 bc 01 00 00 48 c7 c2 50 14 57 a0 48 c7 c7 1c dd 47 a0 e8 4f 59 ce e0 <0f> 0b 41 89 c6 89 c6 48 c7 c7 70 3a 5a a0 e8 55 c8 c7 e0 44 89 74 
[  594.788676] RSP: 0018:ffffc900003f3a28 EFLAGS: 00010282
[  594.788683] RAX: 0000000000000009 RBX: 00000000000003fb RCX: 0000000000000000
[  594.788690] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8804ae660aa8
[  594.788697] RBP: 0000000000000000 R08: 00000000001f313f R09: ffff8804adc4d000
[  594.788704] R10: ffff880463d8a000 R11: ffff8804ae660aa8 R12: 0000000000000000
[  594.788711] R13: 0000000000000000 R14: 00000000000000fb R15: ffff880461354b40
[  594.788719] FS:  00007f5d14330980(0000) GS:ffff8804c0880000(0000) knlGS:0000000000000000
[  594.788727] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  594.788733] CR2: 00007f5d03151780 CR3: 000000044b7c0005 CR4: 0000000000760ee0
[  594.788741] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  594.788748] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  594.788755] PKRU: 55555554
[  594.788759] Call Trace:
[  594.788809]  igt_partial_tiling+0x110/0x570 [i915]
[  594.788818]  ? __trace_bprintk+0x57/0x80
[  594.788873]  __i915_subtests+0x5e/0xf0 [i915]
[  594.788923]  __run_selftests+0x10b/0x190 [i915]
[  594.788968]  i915_live_selftests+0x2c/0x60 [i915]
[  594.789012]  i915_pci_probe+0x50/0xa0 [i915]
[  594.789020]  pci_device_probe+0xa1/0x130
[  594.789028]  driver_probe_device+0x306/0x480
[  594.789034]  __driver_attach+0xdb/0x100
[  594.789040]  ? driver_probe_device+0x480/0x480
[  594.789046]  ? driver_probe_device+0x480/0x480
[  594.789054]  bus_for_each_dev+0x74/0xc0
[  594.789061]  bus_add_driver+0x15f/0x250
[  594.789067]  ? 0xffffffffa06aa000
[  594.789072]  driver_register+0x56/0xe0
[  594.789078]  ? 0xffffffffa06aa000
[  594.789084]  do_one_initcall+0x58/0x370
[  594.789091]  ? do_init_module+0x1d/0x1ea
[  594.789098]  ? rcu_read_lock_sched_held+0x6f/0x80
[  594.789105]  ? kmem_cache_alloc_trace+0x282/0x2e0
[  594.789112]  do_init_module+0x56/0x1ea
[  594.789123]  load_module+0x2435/0x2b20
[  594.789134]  ? __se_sys_finit_module+0xd3/0xf0
[  594.789141]  __se_sys_finit_module+0xd3/0xf0
[  594.789150]  do_syscall_64+0x55/0x190
[  594.789157]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[  594.789164] RIP: 0033:0x7f5d13bfb839
[  594.789168] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f6 2c 00 f7 d8 64 89 01 48 
[  594.789233] RSP: 002b:00007fff7b7163f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  594.789243] RAX: ffffffffffffffda RBX: 000056064e072c50 RCX: 00007f5d13bfb839
[  594.789250] RDX: 0000000000000000 RSI: 000056064e073900 RDI: 0000000000000004
[  594.789258] RBP: 000056064e073900 R08: 0000000000000004 R09: 0000000000000000
[  594.789266] R10: 00007fff7b716570 R11: 0000000000000246 R12: 0000000000000000
[  594.789274] R13: 000056064e06c6b0 R14: 0000000000000020 R15: 000000000000003b
[  594.789284] Modules linked in: i915(+) vgem snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic ax88179_178a usbnet mii x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul snd_hda_codec ghash_clmulni_intel snd_hwdep snd_hda_core e1000e snd_pcm prime_numbers [last unloaded: i915]
[  594.789327] Dumping ftrace buffer:
[  594.789333] ---------------------------------
[  595.092068] RIP: 0010:check_partial_mapping+0x721/0x760 [i915]
[  595.092238] Code: 8e c8 c7 e0 48 8b 35 e6 3f 1c 00 49 c7 c0 43 af 58 a0 b9 bc 01 00 00 48 c7 c2 50 14 57 a0 48 c7 c7 1c dd 47 a0 e8 4f 59 ce e0 <0f> 0b 41 89 c6 89 c6 48 c7 c7 70 3a 5a a0 e8 55 c8 c7 e0 44 89 74 
[  595.092784] RSP: 0018:ffffc900003f3a28 EFLAGS: 00010282
[  595.092795] RAX: 0000000000000009 RBX: 00000000000003fb RCX: 0000000000000000
[  595.092806] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff8804ae660aa8
[  595.092924] RBP: 0000000000000000 R08: 00000000001f313f R09: ffff8804adc4d000
[  595.092938] R10: ffff880463d8a000 R11: ffff8804ae660aa8 R12: 0000000000000000
[  595.093048] R13: 0000000000000000 R14: 00000000000000fb R15: ffff880461354b40
[  595.093060] FS:  00007f5d14330980(0000) GS:ffff8804c08c0000(0000) knlGS:0000000000000000
[  595.093170] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  595.093183] CR2: 00007f877afbb000 CR3: 000000044b7c0004 CR4: 0000000000760ee0
[  595.093195] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  595.093302] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  595.093314] PKRU: 55555554
Comment 1 Chris Wilson 2018-07-23 14:06:20 UTC
Afaict, it's a GEM_BUG_ON(!tiling) after i915_gem_object_is_tiled(). Doesn't make much sense.
Comment 2 Martin Peres 2018-07-27 13:23:50 UTC
Also seen on CNL: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_4540/fi-cnl-psr/igt@drv_selftest@live_objects.html

[  621.782060] i915_gem_tile_height:444 GEM_BUG_ON(!tiling)
[  621.782092] ------------[ cut here ]------------
[  621.782094] kernel BUG at drivers/gpu/drm/i915/i915_gem_object.h:444!
[  621.782114] invalid opcode: 0000 [#1] PREEMPT SMP PTI
[  621.782122] CPU: 2 PID: 9039 Comm: drv_selftest Tainted: G     U            4.18.0-rc6-CI-CI_DRM_4540+ #1
[  621.782131] Hardware name: Intel Corporation CannonLake Client Platform/CannonLake Y LPDDR4 RVP, BIOS CNLSFWR1.R00.X114.B11.1712190231 12/19/2017
[  621.782192] RIP: 0010:check_partial_mapping+0x721/0x760 [i915]
[  621.782198] Code: 9e 38 c6 e0 48 8b 35 46 3f 1c 00 49 c7 c0 83 3f 5a a0 b9 bc 01 00 00 48 c7 c2 50 a4 58 a0 48 c7 c7 0c 6d 49 a0 e8 5f c9 cc e0 <0f> 0b 41 89 c6 89 c6 48 c7 c7 88 ca 5b a0 e8 65 38 c6 e0 44 89 74 
[  621.782255] RSP: 0018:ffffc9000057ba28 EFLAGS: 00010282
[  621.782261] RAX: 0000000000000009 RBX: 00000000000666ef RCX: 0000000000000000
[  621.782268] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
[  621.782275] RBP: 0000000000000000 R08: ffffffffa05a3f83 R09: 0000000000000000
[  621.782282] R10: ffff88019ddb5000 R11: 0000000000000000 R12: 0000000000000000
[  621.782289] R13: 0000000000000000 R14: 00000000000000ef R15: ffff88019fe88b80
[  621.782296] FS:  00007f0077435980(0000) GS:ffff880271100000(0000) knlGS:0000000000000000
[  621.782304] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  621.782310] CR2: 00007ffd090c6ff8 CR3: 00000001ca128001 CR4: 0000000000760ee0
[  621.782316] PKRU: 55555554
[  621.782320] Call Trace:
[  621.782365]  igt_partial_tiling+0x110/0x570 [i915]
[  621.782374]  ? __trace_bprintk+0x57/0x80
[  621.782422]  __i915_subtests+0x5e/0xf0 [i915]
[  621.782469]  __run_selftests+0x10b/0x190 [i915]
[  621.782515]  i915_live_selftests+0x2c/0x60 [i915]
[  621.782552]  i915_pci_probe+0x50/0xa0 [i915]
[  621.782559]  pci_device_probe+0xa1/0x130
[  621.782566]  driver_probe_device+0x306/0x480
[  621.782572]  __driver_attach+0xdb/0x100
[  621.782577]  ? driver_probe_device+0x480/0x480
[  621.782583]  ? driver_probe_device+0x480/0x480
[  621.782589]  bus_for_each_dev+0x74/0xc0
[  621.782596]  bus_add_driver+0x15f/0x250
[  621.782601]  ? 0xffffffffa06c3000
[  621.782606]  driver_register+0x56/0xe0
[  621.782611]  ? 0xffffffffa06c3000
[  621.782616]  do_one_initcall+0x58/0x370
[  621.782623]  ? do_init_module+0x1d/0x1ea
[  621.782629]  ? rcu_read_lock_sched_held+0x6f/0x80
[  621.782636]  ? kmem_cache_alloc_trace+0x282/0x2e0
[  621.782643]  do_init_module+0x56/0x1ea
[  621.782649]  load_module+0x2435/0x2b20
[  621.782659]  ? __se_sys_finit_module+0xd3/0xf0
[  621.782665]  __se_sys_finit_module+0xd3/0xf0
[  621.782673]  do_syscall_64+0x55/0x190
[  621.782680]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[  621.782686] RIP: 0033:0x7f0076d02839
[  621.782690] Code: 00 f3 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 1f f6 2c 00 f7 d8 64 89 01 48 
[  621.782748] RSP: 002b:00007ffee5115768 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[  621.782756] RAX: ffffffffffffffda RBX: 0000555c309aeb30 RCX: 00007f0076d02839
[  621.782763] RDX: 0000000000000000 RSI: 0000555c309af7e0 RDI: 0000000000000004
[  621.782770] RBP: 0000555c309af7e0 R08: 0000000000000004 R09: 0000000000000000
[  621.782776] R10: 00007ffee51158e0 R11: 0000000000000246 R12: 0000000000000000
[  621.782783] R13: 0000555c309a5c20 R14: 0000000000000020 R15: 000000000000003b
[  621.782792] Modules linked in: i915(+) vgem snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_codec snd_hwdep snd_hda_core x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul e1000e ghash_clmulni_intel snd_pcm mei_me mei prime_numbers [last unloaded: i915]
[  621.782829] Dumping ftrace buffer:
[  621.782835]    (ftrace buffer empty)
[  621.782851] ---[ end trace 6b77e728eeb06f37 ]---
[  622.059412] RIP: 0010:check_partial_mapping+0x721/0x760 [i915]
[  622.059520] Code: 9e 38 c6 e0 48 8b 35 46 3f 1c 00 49 c7 c0 83 3f 5a a0 b9 bc 01 00 00 48 c7 c2 50 a4 58 a0 48 c7 c7 0c 6d 49 a0 e8 5f c9 cc e0 <0f> 0b 41 89 c6 89 c6 48 c7 c7 88 ca 5b a0 e8 65 38 c6 e0 44 89 74 
[  622.059759] RSP: 0018:ffffc9000057ba28 EFLAGS: 00010282
[  622.059765] RAX: 0000000000000009 RBX: 00000000000666ef RCX: 0000000000000000
[  622.059773] RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
[  622.059780] RBP: 0000000000000000 R08: ffffffffa05a3f83 R09: 0000000000000000
[  622.059876] R10: ffff88019ddb5000 R11: 0000000000000000 R12: 0000000000000000
[  622.059884] R13: 0000000000000000 R14: 00000000000000ef R15: ffff88019fe88b80
[  622.059891] FS:  00007f0077435980(0000) GS:ffff880271180000(0000) knlGS:0000000000000000
[  622.059989] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  622.059995] CR2: 00007fb39370e000 CR3: 00000001ca128001 CR4: 0000000000760ee0
[  622.060002] PKRU: 55555554
Comment 3 Chris Wilson 2018-07-27 13:28:01 UTC
commit 406bc5633c6b1c7e7a86230db312ee34e785a8f1
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Thu Jul 26 11:47:59 2018 +0100

    drm/i915: Avoid computing tile_row_size() for untiled objects
    
    i915_gem_tile_height() asserts that the object is tiled, but inside the
    error printer for the selftest we computed the row size regardless of
    tiling, tripping over the assert.
    
    Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
    Reviewed-by: Matthew Auld <matthew.auld@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20180726104759.8684-1-ch
ris@chris-wilson.co.uk
Comment 4 Francesco Balestrieri 2018-08-04 09:19:19 UTC
Martin, OK to close?
Comment 5 Francesco Balestrieri 2018-08-07 07:58:13 UTC
Occurred daily, then not anymore for 11 days - closing.


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.