Bug 112347

Summary: [CI][SHARDS]igt@kms_big_fb@yf-tiled-32bpp-rotate-90 - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI
Product: DRI Reporter: Lakshmi <lakshminarayana.vudum>
Component: DRM/IntelAssignee: Intel GFX Bugs mailing list <intel-gfx-bugs>
Status: RESOLVED DUPLICATE QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: major    
Priority: high CC: intel-gfx-bugs
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: SKL i915 features: GEM/Other

Description Lakshmi 2019-11-20 07:51:22 UTC
https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7376/shard-skl5/igt@kms_big_fb@yf-tiled-32bpp-rotate-90.html
4> [1750.648809] general protection fault: 0000 [#1] PREEMPT SMP PTI
<4> [1750.648842] CPU: 1 PID: 2695 Comm: kms_big_fb Tainted: G     U            5.4.0-rc8-CI-CI_DRM_7376+ #1
<4> [1750.648854] Hardware name: Google Caroline/Caroline, BIOS MrChromebox 08/27/2018
<4> [1750.648882] RIP: 0010:match_held_lock+0x18/0x160
<4> [1750.648895] Code: 82 48 c7 c7 f8 6b 08 82 e8 85 d6 f9 ff 0f 0b 31 c0 c3 48 39 77 10 b8 01 00 00 00 74 52 44 8b 47 24 45 85 c0 74 47 48 83 ec 08 <48> 8b 46 08 48 85 c0 74 7f 8b 15 51 e1 84 02 85 d2 74 34 48 2d 60
<4> [1750.648908] RSP: 0018:ffffc9000050f9f0 EFLAGS: 00010086
<4> [1750.648928] RAX: 0000000000000001 RBX: ffff88815532d8f8 RCX: 0000000000000001
<4> [1750.648941] RDX: 0000000000000000 RSI: 6b6b6b6b6b6b6d53 RDI: ffff88815532d8f8
<7> [1750.649371] [drm:skl_enable_dc6 [i915]] Enabling DC6
<4> [1750.649385] RBP: ffff88815532d040 R08: 0000000000000002 R09: 0000000000000001
<4> [1750.649396] R10: ffffc9000050fa50 R11: 0000000052d12450 R12: 6b6b6b6b6b6b6d53
<4> [1750.649408] R13: ffff88815532d8d0 R14: 0000000000000001 R15: 0000000000000246
<4> [1750.649421] FS:  00007f5babcf9e40(0000) GS:ffff88817aa80000(0000) knlGS:0000000000000000
<4> [1750.649433] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [1750.649444] CR2: 00007f5babc16000 CR3: 000000016b240001 CR4: 00000000003606e0
<4> [1750.649454] Call Trace:
<7> [1750.649886] [drm:gen9_set_dc_state [i915]] Setting DC state from 00 to 02
<4> [1750.649897]  lock_is_held_type+0x8b/0x100
<4> [1750.650277]  __i915_vma_unbind+0x3f/0x70 [i915]
<4> [1750.650635]  i915_vma_unbind+0x2d/0x50 [i915]
<4> [1750.650966]  i915_gem_object_set_cache_level+0x81/0x320 [i915]
<4> [1750.651275]  i915_gem_object_pin_to_display_plane+0x5d/0x160 [i915]
<4> [1750.651644]  intel_pin_and_fence_fb_obj+0x9e/0x200 [i915]
<4> [1750.651997]  intel_plane_pin_fb+0x3f/0xd0 [i915]
<4> [1750.652353]  intel_prepare_plane_fb+0x130/0x520 [i915]
<4> [1750.652380]  ? static_obj+0x34/0x50
<4> [1750.652412]  drm_atomic_helper_prepare_planes+0x85/0x110
<4> [1750.652745]  intel_atomic_commit+0xc6/0x350 [i915]
<4> [1750.652778]  drm_mode_atomic_ioctl+0x847/0x930
<4> [1750.652819]  ? drm_atomic_set_property+0x9b0/0x9b0
<4> [1750.652844]  drm_ioctl_kernel+0xa7/0xf0
<4> [1750.652869]  drm_ioctl+0x2e1/0x390
<4> [1750.652889]  ? drm_atomic_set_property+0x9b0/0x9b0
<4> [1750.652910]  ? __lock_acquire+0x460/0x15d0
<4> [1750.652938]  do_vfs_ioctl+0xa0/0x6f0
<4> [1750.652957]  ? find_held_lock+0x2d/0x90
<4> [1750.652979]  ? __task_pid_nr_ns+0xbc/0x1f0
<4> [1750.653003]  ksys_ioctl+0x35/0x60
<4> [1750.653024]  __x64_sys_ioctl+0x11/0x20
<4> [1750.653041]  do_syscall_64+0x4f/0x210
<4> [1750.653060]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [1750.653076] RIP: 0033:0x7f5baad545d7
<4> [1750.653093] Code: b3 66 90 48 8b 05 b1 48 2d 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 81 48 2d 00 f7 d8 64 89 01 48
<4> [1750.653107] RSP: 002b:00007ffe02805998 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
<4> [1750.653125] RAX: ffffffffffffffda RBX: 00005621f0d51280 RCX: 00007f5baad545d7
<4> [1750.653137] RDX: 00007ffe028059f0 RSI: 00000000c03864bc RDI: 0000000000000005
<4> [1750.653148] RBP: 00007ffe028059f0 R08: 00005621f0d900e0 R09: 000000000000001f
<4> [1750.653160] R10: 0000000000000000 R11: 0000000000000246 R12: 00000000c03864bc
<4> [1750.653171] R13: 0000000000000005 R14: 0000000000000000 R15: 0000000000000400
<4> [1750.653194] Modules linked in: vgem snd_hda_codec_hdmi x86_pkg_temp_thermal coretemp crct10dif_pclmul crc32_pclmul i915 snd_hda_intel snd_intel_dspcfg ghash_clmulni_intel snd_hda_codec snd_hwdep cdc_ether snd_hda_core btusb usbnet btrtl btbcm btintel r8152 snd_pcm mii bluetooth ecdh_generic ecc i2c_hid pinctrl_sunrisepoint pinctrl_intel prime_numbers intel_lpss_pci
<4> [1750.653340] ---[ end trace a4ae2c715de09674 ]---
<4> [1751.389109] RIP: 0010:match_held_lock+0x18/0x160
<4> [1751.389128] Code: 82 48 c7 c7 f8 6b 08 82 e8 85 d6 f9 ff 0f 0b 31 c0 c3 48 39 77 10 b8 01 00 00 00 74 52 44 8b 47 24 45 85 c0 74 47 48 83 ec 08 <48> 8b 46 08 48 85 c0 74 7f 8b 15 51 e1 84 02 85 d2 74 34 48 2d 60
<4> [1751.389139] RSP: 0018:ffffc9000050f9f0 EFLAGS: 00010086
<4> [1751.389150] RAX: 0000000000000001 RBX: ffff88815532d8f8 RCX: 0000000000000001
<4> [1751.389158] RDX: 0000000000000000 RSI: 6b6b6b6b6b6b6d53 RDI: ffff88815532d8f8
<4> [1751.389166] RBP: ffff88815532d040 R08: 0000000000000002 R09: 0000000000000001
<4> [1751.389173] R10: ffffc9000050fa50 R11: 0000000052d12450 R12: 6b6b6b6b6b6b6d53
<4> [1751.389180] R13: ffff88815532d8d0 R14: 0000000000000001 R15: 0000000000000246
<4> [1751.389190] FS:  00007f5babcf9e40(0000) GS:ffff88817aa80000(0000) knlGS:0000000000000000
<4> [1751.389199] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<4> [1751.389206] CR2: 00007f5babc16000 CR3: 000000016b240001 CR4: 00000000003606e0
<3> [1751.389217] BUG: sleeping function called from invalid context at ./include/linux/percpu-rwsem.h:38
<3> [1751.389227] in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 2695, name: kms_big_fb
<4> [1751.389233] INFO: lockdep is turned off.
<4> [1751.389240] irq event stamp: 2649463
<4> [1751.389253] hardirqs last  enabled at (2649463): [<ffffffff819ea214>] _raw_spin_unlock_irq+0x24/0x50
<4> [1751.389267] hardirqs last disabled at (2649462): [<ffffffff819e29d4>] __schedule+0xc4/0x810
<4> [1751.389281] softirqs last  enabled at (2649450): [<ffffffff81c00385>] __do_softirq+0x385/0x47f
<4> [1751.389294] softirqs last disabled at (2649427): [<ffffffff810b829a>] irq_exit+0xba/0xc0
<4> [1751.389307] CPU: 1 PID: 2695 Comm: kms_big_fb Tainted: G     UD           5.4.0-rc8-CI-CI_DRM_7376+ #1
<4> [1751.389314] Hardware name: Google Caroline/Caroline, BIOS MrChromebox 08/27/2018
<4> [1751.389320] Call Trace:
<4> [1751.389343]  dump_stack+0x71/0x9b
<4> [1751.389358]  ___might_sleep+0x178/0x260
<4> [1751.389372]  exit_signals+0x2b/0x350
<4> [1751.389384]  do_exit+0xa3/0xd70
<4> [1751.389401]  ? ksys_ioctl+0x35/0x60
<4> [1751.389418]  rewind_stack_do_exit+0x17/0x20
<6> [2111.868539] sysrq: Show State
<6> [2111.868560]   task                        PC stack   pid father
<6> [2111.868574] systemd         S12360     1      0 0x00000000
<4> [2111.868598] Call Trace:
<4> [2111.868631]  ? __schedule+0x2f1/0x810
<4> [2111.868658]  ? ep_poll+0x2c4/0x5a0
<4> [2111.868676]  schedule+0x34/0xc0
<4> [2111.868697]  schedule_hrtimeout_range_clock+0x10e/0x120
<4> [2111.868724]  ep_poll+0x2a4/0x5a0
<4> [2111.868755]  ? wake_up_q+0x70/0x70
<4> [2111.868780]  do_epoll_wait+0xd2/0xf0
<4> [2111.868801]  __x64_sys_epoll_wait+0x15/0x20
<4> [2111.868816]  do_syscall_64+0x4f/0x210
<4> [2111.868832]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
<4> [2111.868847] RIP: 0033:0x7fe3dbb0bbb7
<4> [2111.868872] Code: Bad RIP value.
<4> [2111.868883] RSP: 002b:00007fff4447c460 EFLAGS: 00000293 ORIG_RAX: 00000000000000e8
<4> [2111.868898] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fe3dbb0bbb7
<4> [2111.868909] RDX: 0000000000000038 RSI: 00007fff4447c4a0 RDI: 0000000000000004
<4> [2111.868919] RBP: 00007fff4447c4a0 R08: 0000000000000000 R09: 7465677261742e79
<4> [2111.868929] R10: 00000000ffffffff R11: 0000000000000293 R12: 0000000000000038
<4> [2111.868939] R13: 00000000ffffffff R14: 00007fff4447c4a0 R15: 0000000000000001
<6> [2111.868971] kthreadd        S14112     2      0 0x80004000
Comment 1 CI Bug Log 2019-11-20 07:52:18 UTC
The CI Bug Log issue associated to this bug has been updated.

### New filters associated

* SKL: igt@kms_big_fb@yf-tiled-32bpp-rotate-90 - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI
  - https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7376/shard-skl5/igt@kms_big_fb@yf-tiled-32bpp-rotate-90.html
Comment 2 Ville Syrjala 2019-11-20 10:51:47 UTC
  2a:*	48 8b 46 08          	mov    0x8(%rsi),%rax		<-- trapping instruction                                          
RSI: 6b6b6b6b6b6b6d53

So vma->vm was already freed I guess.
Comment 3 CI Bug Log 2019-11-21 07:41:31 UTC
A CI Bug Log filter associated to this bug has been updated:

{- SKL: igt@kms_big_fb@yf-tiled-32bpp-rotate-90 - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI -}
{+ SKL: igt@kms_big_fb@yf-tiled-32bpp-rotate-90 - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5296/shard-skl4/igt@kms_big_fb@x-tiled-16bpp-rotate-180.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_7381/shard-skl5/igt@kms_big_fb@y-tiled-32bpp-rotate-180.html
Comment 4 CI Bug Log 2019-11-26 10:00:48 UTC
A CI Bug Log filter associated to this bug has been updated:

{- SKL: igt@kms_big_fb@yf-tiled-32bpp-rotate-90 - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI -}
{+ SKL: igt@kms_* - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI +}


  No new failures caught with the new filter
Comment 6 CI Bug Log 2019-11-29 12:21:13 UTC
A CI Bug Log filter associated to this bug has been updated:

{- SKL: igt@kms_* - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI -}
{+ SKL: Random tests - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI +}


  No new failures caught with the new filter
Comment 7 CI Bug Log 2019-11-29 12:45:01 UTC
A CI Bug Log filter associated to this bug has been updated:

{- SKL: Random tests - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI -}
{+ SKL: Random tests - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5311/shard-skl2/igt@kms_draw_crc@draw-method-xrgb2101010-render-xtiled.html
Comment 8 CI Bug Log 2019-11-29 12:48:06 UTC
A CI Bug Log filter associated to this bug has been updated:

{- SKL: Random tests - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI -}
{+ SKL: Random tests - incomplete - general protection fault: 0000 [#1] PREEMPT SMP PTI +}

New failures caught by the filter:

  * https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5312/shard-skl10/igt@kms_draw_crc@draw-method-xrgb8888-render-xtiled.html
  * https://intel-gfx-ci.01.org/tree/drm-tip/IGT_5312/shard-skl4/igt@kms_ccs@pipe-a-crc-primary-rotation-180.html
Comment 9 Chris Wilson 2019-11-29 14:29:41 UTC

*** This bug has been marked as a duplicate of bug 112425 ***

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.