Bug 110610 - kernel BUG at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5611
Summary: kernel BUG at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5611
Status: RESOLVED MOVED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-04 16:07 UTC by Ernst Sjöstrand
Modified: 2019-11-19 09:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Ernst Sjöstrand 2019-05-04 16:07:28 UTC
Hi,

I was playing with the experimental fractional scaling for X11 in Gnome in Ubuntu Disco. When I logged out I got this error.

xserver-xorg-video-amdgpu                  19.0.1+git1903191844.bd4ffd4
linux-image-5.0.0-14-generic               5.0.0-14.15
libgl1-mesa-dri:amd64                      19.0.2-1ubuntu1
libdrm-amdgpu1:amd64                       2.4.97-1ubuntu1

------------[ cut here ]------------
kernel BUG at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:5611!
invalid opcode: 0000 [#1] SMP NOPTI
CPU: 10 PID: 4211 Comm: Xorg Not tainted 5.0.0-14-generic #15-Ubuntu
Hardware name: System manufacturer System Product Name/PRIME X370-PRO, BIOS 4008 04/13/2018
RIP: 0010:dm_update_crtcs_state+0x60d/0x670 [amdgpu]
Code: bc fc ff ff 48 85 db 0f 84 7e fd ff ff 48 c7 45 a0 00 00 00 00 48 c7 45 c0 00 00 00 00 48 c7 45 b8 00 00 00 00 e9 65 fe ff ff <0f> 0b b8 ea ff ff ff 48 8b 7d b8 48 85 ff 0f 84 4b fc ff ff 89 45
RSP: 0018:ffff9c71c9763ab0 EFLAGS: 00010246
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000002ad8
RDX: 0000000000002ad7 RSI: ffff8df77eca7160 RDI: ffff8df77e406e80
RBP: ffff9c71c9763b20 R08: 0000000000027160 R09: ffffffffc0882796
R10: fffffb221fd26a00 R11: 00000000f0000080 R12: ffff8df7749ad800
R13: ffff8df774076800 R14: 0000000000000000 R15: ffff8df71c768c80
FS:  00007f009b637a80(0000) GS:ffff8df77ec80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f009ba3d5c8 CR3: 000000060440e000 CR4: 00000000003406e0
Call Trace:
 amdgpu_dm_atomic_check+0x1c3/0x460 [amdgpu]
 drm_atomic_check_only+0x59e/0x7c0 [drm]
 drm_atomic_commit+0x18/0x50 [drm]
 restore_fbdev_mode_atomic+0x1bf/0x1d0 [drm_kms_helper]
 restore_fbdev_mode+0x51/0x160 [drm_kms_helper]
 ? _cond_resched+0x19/0x30
 drm_fb_helper_restore_fbdev_mode_unlocked+0x4e/0xa0 [drm_kms_helper]
 drm_fb_helper_set_par+0x2d/0x50 [drm_kms_helper]
 drm_fb_helper_hotplug_event.part.38+0x97/0xc0 [drm_kms_helper]
 drm_fb_helper_restore_fbdev_mode_unlocked+0x7a/0xa0 [drm_kms_helper]
 drm_fb_helper_lastclose+0x15/0x20 [drm_kms_helper]
 amdgpu_driver_lastclose_kms+0xe/0x20 [amdgpu]
 drm_lastclose+0x35/0x100 [drm]
 drm_release+0xe8/0x120 [drm]
 __fput+0xbc/0x230
 ____fput+0xe/0x10
 task_work_run+0x9d/0xc0
 do_exit+0x2da/0xb30
 ? handle_mm_fault+0xe1/0x210
 do_group_exit+0x43/0xb0
 __x64_sys_exit_group+0x18/0x20
 do_syscall_64+0x5a/0x110
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f009bb4a926
Code: Bad RIP value.
RSP: 002b:00007ffff209d968 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f009bc4f6d0 RCX: 00007f009bb4a926
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 0000000000000000 R08: 00000000000000e7 R09: fffffffffffffc78
R10: 0000000000000042 R11: 0000000000000246 R12: 00007f009bc4f6d0
R13: 0000000000000603 R14: 00007f009bc53108 R15: 0000000000000000
Modules linked in: aufs overlay edac_mce_amd kvm irqbypass nls_iso8859_1 snd_hda_codec_realtek snd_hda_codec_generic ledtrig_audio amdgpu snd_hda_codec_hdmi input_leds joydev snd_hda_intel snd_hda_codec crct10dif_pclmul snd_hda_core crc32_pclmul snd_hwdep ghash_clmulni_intel snd_pcm chash snd_seq_midi amd_iommu_v2 snd_seq_midi_event aesni_intel gpu_sched snd_rawmidi ttm aes_x86_64 drm_kms_helper crypto_simd cryptd eeepc_wmi snd_seq glue_helper asus_wmi drm sparse_keymap video snd_seq_device mxm_wmi k10temp wmi_bmof snd_timer fb_sys_fops syscopyarea sysfillrect sysimgblt ccp snd soundcore mac_hid sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 hid_generic usbhid hid igb i2c_piix4 i2c_algo_bit nvme ahci dca libahci nvme_core gpio_amdpt wmi gpio_generic
---[ end trace 721f50ce38f2bef8 ]---
Comment 1 Ernst Sjöstrand 2019-05-04 16:08:53 UTC
Kernel looks like it's based on v5.0.6
Comment 2 Danil Pleshakov 2019-09-18 15:46:25 UTC
Same problem here.
uname -a
> Linux gentoo 5.2.13-gentoo #3 SMP Sat Sep 14 15:24:37 MSK 2019 x86_64 Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz GenuineIntel GNU/Linux

============================================================================

[    2.587904] amdgpu 0000:01:00.0: 000000003ae4f723 pin failed
[    2.587963] WARNING: CPU: 2 PID: 570 at drivers/gpu/drm/amd/amdgpu/amdgpu_object.c:925 amdgpu_bo_unpin+0xc3/0xf0 [amdgpu]
[    2.587964] Modules linked in: amdgpu(+) mfd_core gpu_sched ttm
[    2.587967] CPU: 2 PID: 570 Comm: systemd-udevd Not tainted 5.2.13-gentoo #3
[    2.587967] Hardware name: Gigabyte Technology Co., Ltd. H110N/H110N-CF, BIOS F22 11/07/2017
[    2.588003] RIP: 0010:amdgpu_bo_unpin+0xc3/0xf0 [amdgpu]
[    2.588004] Code: ff 48 83 c0 0c 48 39 d0 75 ea 48 8d 73 30 48 8d 7b 50 48 8d 54 24 08 e8 ab c3 fb ff 85 c0 74 a1 e9 22 4f 1a 00 e8 1d a3 ff c8 <0f> 0b 48 8b bd a0 bf ff ff 48 89 da 48 c7 c6 94 a7 4a c0 e8 66 63
[    2.588005] RSP: 0018:ffffa513c27d7858 EFLAGS: 00010246
[    2.588006] RAX: 0000000000000000 RBX: ffff97fb69443800 RCX: ffff97fb697f4270
[    2.588006] RDX: ffff97fb694438f8 RSI: ffff97fb697f4060 RDI: ffff97fb69443800
[    2.588007] RBP: ffff97fb697f4060 R08: ffff97fb697f4270 R09: ffff97fb697f4270
[    2.588007] R10: 0000000000000000 R11: 0000000000000001 R12: ffff97fb69443850
[    2.588008] R13: ffff97fb697f4060 R14: ffff97fb69443ad0 R15: 00000000fffffff4
[    2.588008] FS:  00007fb089b2f340(0000) GS:ffff97fb6eb00000(0000) knlGS:0000000000000000
[    2.588009] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    2.588009] CR2: 00005649fb91d688 CR3: 000000042baa4001 CR4: 00000000003606e0
[    2.588010] Call Trace:
[    2.588050]  ? amdgpu_vram_mgr_new+0x313/0x3a0 [amdgpu]
[    2.588085]  amdgpufb_destroy_pinned_object+0x58/0xc0 [amdgpu]
[    2.588120]  amdgpufb_create+0x21f/0x440 [amdgpu]
[    2.588123]  __drm_fb_helper_initial_config_and_unlock+0x277/0x4a0
[    2.588158]  amdgpu_fbdev_init+0xbf/0xf0 [amdgpu]
[    2.588208]  amdgpu_device_init.cold.37+0xe00/0x10e0 [amdgpu]
[    2.588211]  ? kmalloc_order+0xf/0x30
[    2.588245]  amdgpu_driver_load_kms+0x73/0x190 [amdgpu]
[    2.588248]  drm_dev_register+0x108/0x140
[    2.588281]  amdgpu_pci_probe+0xc6/0x130 [amdgpu]
[    2.588283]  local_pci_probe+0x3d/0x70
[    2.588284]  ? pci_assign_irq+0x22/0xd0
[    2.588285]  pci_device_probe+0xc9/0x160
[    2.588288]  really_probe+0xcd/0x240
[    2.588289]  driver_probe_device+0x47/0xb0
[    2.588291]  device_driver_attach+0x4a/0x50
[    2.588292]  __driver_attach+0x46/0xb0
[    2.588293]  ? device_driver_attach+0x50/0x50
[    2.588294]  bus_for_each_dev+0x72/0xb0
[    2.588296]  bus_add_driver+0x1a1/0x1c0
[    2.588297]  ? 0xffffffffc05a6000
[    2.588298]  driver_register+0x66/0xb0
[    2.588299]  ? 0xffffffffc05a6000
[    2.588300]  do_one_initcall+0x41/0x1df
[    2.588302]  ? _cond_resched+0x10/0x20
[    2.588303]  ? kmem_cache_alloc_trace+0x33/0x150
[    2.588305]  do_init_module+0x55/0x200
[    2.588307]  load_module+0x231a/0x2470
[    2.588309]  ? __do_sys_finit_module+0xba/0xe0
[    2.588310]  __do_sys_finit_module+0xba/0xe0
[    2.588311]  do_syscall_64+0x43/0x110
[    2.588313]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    2.588314] RIP: 0033:0x7fb08a2d2e09
[    2.588315] Code: 00 00 00 75 05 48 83 c4 18 c3 e8 12 8d 01 00 66 90 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 57 90 0c 00 f7 d8 64 89 01 48
[    2.588316] RSP: 002b:00007ffdd7f41a98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    2.588317] RAX: ffffffffffffffda RBX: 00005649fb90b450 RCX: 00007fb08a2d2e09
[    2.588317] RDX: 0000000000000000 RSI: 00007fb08a43791d RDI: 000000000000000c
[    2.588318] RBP: 00007fb08a43791d R08: 0000000000000000 R09: 00005649fb9040d0
[    2.588318] R10: 000000000000000c R11: 0000000000000246 R12: 0000000000000000
[    2.588319] R13: 00005649fb90ac00 R14: 0000000000020000 R15: 00005649fb90b450
[    2.588320] ---[ end trace ddf323dd8a4d2f04 ]---
[    2.588324] amdgpu 0000:01:00.0: 000000003ae4f723 unpin not necessary
[    2.588360] [drm:amdgpufb_create [amdgpu]] *ERROR* failed to create fbcon object -12

============================================================================

[    3.337687] ------------[ cut here ]------------
[    3.337695] WARNING: CPU: 0 PID: 624 at drivers/gpu/drm/drm_atomic_helper.c:3016 __drm_atomic_helper_set_config.cold.49+0xc/0x53
[    3.337695] Modules linked in: amdgpu mfd_core gpu_sched ttm
[    3.337698] CPU: 0 PID: 624 Comm: plymouthd Tainted: G        W         5.2.13-gentoo #3
[    3.337699] Hardware name: Gigabyte Technology Co., Ltd. H110N/H110N-CF, BIOS F22 11/07/2017
[    3.337701] RIP: 0010:__drm_atomic_helper_set_config.cold.49+0xc/0x53
[    3.337702] Code: 0b e9 23 ef ff ff 48 c7 c7 e0 fc 60 8a e8 78 8a bd ff 0f 0b b8 ea ff ff ff e9 85 f4 ff ff 48 c7 c7 e0 fc 60 8a e8 60 8a bd ff <0f> 0b e9 bb fa ff ff 48 c7 c7 e0 fc 60 8a e8 4d 8a bd ff 0f 0b e9
[    3.337703] RSP: 0018:ffffa513c2787d90 EFLAGS: 00010246
[    3.337703] RAX: 0000000000000024 RBX: ffff97fb6884b200 RCX: ffffffff8a847658
[    3.337704] RDX: 0000000000000000 RSI: 0000000000000096 RDI: ffffffff8aeef7ac
[    3.337704] RBP: ffff97fb67f94100 R08: 0000000000000377 R09: 0000000000000000
[    3.337705] R10: 0000000000000000 R11: 0000000000000001 R12: ffff97fb68a6f400
[    3.337705] R13: 000000006838ff00 R14: ffff97fb69565000 R15: ffff97fb6838ff00
[    3.337706] FS:  00007f4e4239a740(0000) GS:ffff97fb6ea00000(0000) knlGS:0000000000000000
[    3.337707] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.337707] CR2: 00005641fbc47b68 CR3: 000000042969a003 CR4: 00000000003606f0
[    3.337708] Call Trace:
[    3.337710]  restore_fbdev_mode_atomic+0x158/0x1d0
[    3.337712]  drm_fb_helper_restore_fbdev_mode_unlocked+0x40/0x90
[    3.337713]  drm_lastclose+0x2a/0x50
[    3.337715]  drm_release+0x72/0x74
[    3.337717]  __fput+0xb1/0x220
[    3.337718]  task_work_run+0x79/0xa0
[    3.337720]  exit_to_usermode_loop+0x9d/0xa0
[    3.337721]  do_syscall_64+0xe1/0x110
[    3.337724]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    3.337725] RIP: 0033:0x7f4e42636778
[    3.337726] Code: 00 00 48 83 ec 28 64 48 8b 04 25 28 00 00 00 48 89 44 24 18 31 c0 48 8d 05 65 8f 0d 00 8b 00 85 c0 75 27 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 50 48 8b 74 24 18 64 48 33 34 25 28 00 00 00
[    3.337726] RSP: 002b:00007fff7cefc8a0 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
[    3.337727] RAX: 0000000000000000 RBX: 00005641fbc44bc0 RCX: 00007f4e42636778
[    3.337728] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000009
[    3.337728] RBP: 0000000000000009 R08: 00005641fbc44bd0 R09: 00005641fbc44bc0
[    3.337728] R10: 00007f4e4270ac40 R11: 0000000000000246 R12: 000000000000e200
[    3.337729] R13: 00005641fbc40d50 R14: 0000000000000001 R15: 00005641fbc420a0
[    3.337730] ---[ end trace ddf323dd8a4d2f05 ]---
Comment 3 Martin Peres 2019-11-19 09:25:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/775.


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.