Bug 105354 - RIP: dm_update_crtcs_state+0x36b/0x3f0 [amdgpu]
Summary: RIP: dm_update_crtcs_state+0x36b/0x3f0 [amdgpu]
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: XOrg git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-06 04:00 UTC by mikhail.v.gavrilov
Modified: 2018-06-27 14:54 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
dmesg (175.58 KB, text/plain)
2018-03-06 04:10 UTC, mikhail.v.gavrilov
no flags Details

Description mikhail.v.gavrilov 2018-03-06 04:00:14 UTC
kernel: 4.16.0-rc1-git63e5921e856b
mesa: 18.1.0-0.4.git56dc9f9
llvm: 7.0.0-0.1.r326462

[ 5483.411841] ------------[ cut here ]------------
[ 5483.411844] kernel BUG at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4666!
[ 5483.411939] invalid opcode: 0000 [#1] SMP PTI
[ 5483.411942] Modules linked in: nls_utf8 isofs rfcomm fuse nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_raw ip6table_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables bnep sunrpc xfs vfat fat libcrc32c intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul iTCO_wdt ppdev iTCO_vendor_support ghash_clmulni_intel intel_cstate snd_hda_codec_realtek intel_uncore snd_hda_codec_generic snd_hda_codec_hdmi snd_usb_audio intel_rapl_perf
[ 5483.412017]  snd_hda_intel snd_hda_codec snd_usbmidi_lib btusb snd_rawmidi btrtl btbcm snd_hda_core btintel bluetooth snd_hwdep snd_seq huawei_cdc_ncm gspca_zc3xx snd_seq_device gspca_main cdc_wdm snd_pcm v4l2_common option cdc_ncm usb_wwan videodev ecdh_generic mei_me cdc_ether snd_timer joydev media rfkill usbnet snd pcspkr soundcore i2c_i801 shpchp lpc_ich mei parport_pc parport video binfmt_misc hid_logitech_hidpp hid_logitech_dj amdgpu uas usb_storage chash i2c_algo_bit gpu_sched drm_kms_helper ttm drm crc32c_intel r8169 mii
[ 5483.412080] CPU: 6 PID: 2564 Comm: gnome-shell Tainted: G        W        4.16.0-rc1-amd-vega+ #2
[ 5483.412083] Hardware name: Gigabyte Technology Co., Ltd. Z87M-D3H/Z87M-D3H, BIOS F11 08/12/2014
[ 5483.412132] RIP: 0010:dm_update_crtcs_state+0x36b/0x3f0 [amdgpu]
[ 5483.412135] RSP: 0018:ffffb97e49477ad0 EFLAGS: 00010246
[ 5483.412138] RAX: 0000000000000020 RBX: ffff9b76a0058000 RCX: 00000000000e4719
[ 5483.412141] RDX: 00000000000e4718 RSI: ffff9b76be3e7160 RDI: 00000000001e7160
[ 5483.412144] RBP: ffff9b76a1317000 R08: 0000000000000001 R09: 0000000000000000
[ 5483.412146] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000
[ 5483.412149] R13: ffff9b7502ed4000 R14: ffff9b70cd9aa800 R15: ffff9b7501b7d300
[ 5483.412152] FS:  00007fc04ba63ac0(0000) GS:ffff9b76be200000(0000) knlGS:0000000000000000
[ 5483.412154] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 5483.412157] CR2: 00007fc024109d80 CR3: 00000007a798e001 CR4: 00000000001606e0
[ 5483.412159] Call Trace:
[ 5483.412197]  amdgpu_dm_atomic_check+0x1b5/0x420 [amdgpu]
[ 5483.412216]  drm_atomic_check_only+0x370/0x570 [drm]
[ 5483.412221]  ? refcount_inc+0x5/0x30
[ 5483.412232]  ? drm_property_blob_get+0xe/0x20 [drm]
[ 5483.412243]  drm_atomic_commit+0x13/0x50 [drm]
[ 5483.412252]  drm_atomic_helper_legacy_gamma_set+0x112/0x160 [drm_kms_helper]
[ 5483.412263]  drm_mode_gamma_set_ioctl+0x183/0x1f0 [drm]
[ 5483.412278]  ? drm_mode_crtc_set_gamma_size+0xa0/0xa0 [drm]
[ 5483.412287]  drm_ioctl_kernel+0x5b/0xb0 [drm]
[ 5483.412297]  drm_ioctl+0x2e2/0x380 [drm]
[ 5483.412308]  ? drm_mode_crtc_set_gamma_size+0xa0/0xa0 [drm]
[ 5483.412314]  ? __pm_runtime_resume+0x54/0x90
[ 5483.412319]  ? trace_hardirqs_on_caller+0xed/0x180
[ 5483.412344]  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
[ 5483.412350]  do_vfs_ioctl+0xa5/0x6e0
[ 5483.412356]  SyS_ioctl+0x74/0x80
[ 5483.412361]  do_syscall_64+0x7a/0x220
[ 5483.412366]  entry_SYSCALL_64_after_hwframe+0x26/0x9b
[ 5483.412370] RIP: 0033:0x7fc048b13b87
[ 5483.412372] RSP: 002b:00007ffdf4ae48a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[ 5483.412376] RAX: ffffffffffffffda RBX: 000055c00eba4080 RCX: 00007fc048b13b87
[ 5483.412378] RDX: 00007ffdf4ae48e0 RSI: 00000000c02064a5 RDI: 0000000000000008
[ 5483.412381] RBP: 00007ffdf4ae48e0 R08: 00007fc0240a5ca0 R09: 00007fc024109d60
[ 5483.412384] R10: 000055c00eba4080 R11: 0000000000000246 R12: 00000000c02064a5
[ 5483.412386] R13: 0000000000000008 R14: 00007fc024308380 R15: 00007fc0243094f0
[ 5483.412394] Code: 44 24 18 c6 00 01 0f 84 cd fd ff ff e9 bf fd ff ff 41 0f b6 45 0a a8 0e 0f 84 36 fd ff ff 48 c7 04 24 00 00 00 00 e9 ee fd ff ff <0f> 0b 48 83 bb e0 14 00 00 00 0f 84 01 ff ff ff 48 83 3c 24 00 
[ 5483.412496] RIP: dm_update_crtcs_state+0x36b/0x3f0 [amdgpu] RSP: ffffb97e49477ad0
[ 5483.412514] ---[ end trace 9b840e1ed652b6a1 ]---
Comment 1 mikhail.v.gavrilov 2018-03-06 04:10:25 UTC
Created attachment 137811 [details]
dmesg
Comment 2 Harry Wentland 2018-03-27 18:34:34 UTC
Is this still an issue for you?

What do you do when this happens?
Comment 3 mikhail.v.gavrilov 2018-03-31 13:44:51 UTC
I couldn't try drm-next-4.17-wip because RX Vega 56 hangs immediately after start gdm with this kernel: https://bugs.freedesktop.org/show_bug.cgi?id=105833

But I checked this issue on mainline kernel: https://git.kernel.org/torvalds/t/linux-4.16-rc7.tar.gz and don't saw that it happens on 4.16-rc7


But I see that on mainline kernel still happens another issue:
[43261.036201] amdgpu 0000:07:00.0: swiotlb buffer is full (sz: 2097152 bytes)
[43261.036205] amdgpu 0000:07:00.0: swiotlb: coherent allocation failed, size=2097152

https://bugs.freedesktop.org/show_bug.cgi?id=104082
Comment 4 Harry Wentland 2018-06-27 14:54:23 UTC
Marking fixed as per last comment.

For different issues please open a new bug report.


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.