Bug 105786 - System freeze, amdgpu 4.17-WIP, 4.16.0-rc1-576e538e5fe6
Summary: System freeze, amdgpu 4.17-WIP, 4.16.0-rc1-576e538e5fe6
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/AMDgpu (show other bugs)
Version: DRI git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-28 15:12 UTC by cd
Modified: 2018-05-08 13:00 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description cd 2018-03-28 15:12:57 UTC
Hi,

I'm using drm-next-4.17-wip (4.16.0-rc1-576e538e5fe6) on a HP Envy x360 15-bq101ng. 
The system freezes with the following in journalctl -b -1:

[    0.000000] Linux version 4.16.0-rc1-576e538e5fe6 (chris@bb8) (gcc version 7.3.1 20180312 (GCC)) 
--snip
Mar 28 14:54:48 bb8 kernel: [drm] amdgpu kernel modesetting enabled.
Mar 28 14:54:48 bb8 kernel: fb: switching to amdgpudrmfb from EFI VGA
Mar 28 14:54:48 bb8 kernel: amdgpu 0000:04:00.0: enabling device (0006 -> 0007)
Mar 28 14:54:48 bb8 kernel: amdgpu 0000:04:00.0: VRAM: 256M 0x000000F400000000 - 0x000000F40FFFFFFF (256M used)
Mar 28 14:54:48 bb8 kernel: amdgpu 0000:04:00.0: GTT: 1024M 0x000000F500000000 - 0x000000F53FFFFFFF
Mar 28 14:54:48 bb8 kernel: [drm] amdgpu: 256M of VRAM memory ready
Mar 28 14:54:48 bb8 kernel: [drm] amdgpu: 3072M of GTT memory ready.
Mar 28 14:54:49 bb8 kernel: amdgpu: [powerplay] dpm has been enabled
Mar 28 14:54:49 bb8 kernel: [drm:construct [amdgpu]] *ERROR* construct: Invalid Connector ObjectID from Adapter Service for connector index:2! type 0 expected 3
Mar 28 14:54:49 bb8 kernel: fbcon: amdgpudrmfb (fb0) is primary device
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: fb0: amdgpudrmfb frame buffer device
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 0(gfx) uses VM inv eng 4 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 1(comp_1.0.0) uses VM inv eng 5 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 2(comp_1.1.0) uses VM inv eng 6 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 3(comp_1.2.0) uses VM inv eng 7 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 4(comp_1.3.0) uses VM inv eng 8 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 5(comp_1.0.1) uses VM inv eng 9 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 6(comp_1.1.1) uses VM inv eng 10 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 7(comp_1.2.1) uses VM inv eng 11 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 8(comp_1.3.1) uses VM inv eng 12 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 9(kiq_2.1.0) uses VM inv eng 13 on hub 0
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 10(sdma0) uses VM inv eng 4 on hub 1
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 11(vcn_dec) uses VM inv eng 5 on hub 1
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 12(vcn_enc0) uses VM inv eng 6 on hub 1
Mar 28 14:54:49 bb8 kernel: amdgpu 0000:04:00.0: ring 13(vcn_enc1) uses VM inv eng 7 on hub 1
Mar 28 14:54:49 bb8 kernel: [drm] Initialized amdgpu 3.25.0 20150101 for 0000:04:00.0 on minor 0
---snip
Mar 28 15:01:01 bb8 CROND[1427]: (root) CMD (run-parts /etc/cron.hourly)
Mar 28 15:10:26 bb8 systemd[1]: Starting Cleanup of Temporary Directories...
Mar 28 15:10:26 bb8 systemd[1]: Started Cleanup of Temporary Directories.
Mar 28 15:10:50 bb8 kernel: [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 10 tries - optc1_lock line:628
Mar 28 15:10:50 bb8 kernel: WARNING: CPU: 0 PID: 697 at drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:195 generic_reg_wait+0xdb/0x150 [amdgpu]
Mar 28 15:10:50 bb8 kernel: Modules linked in: ctr ccm joydev mousedev msr nls_iso8859_1 nls_cp437 vfat fat hid_sensor_accel_3d hid_sensor_gyro_3d hid_sensor_incl_3d hid_sensor_rot>
Mar 28 15:10:50 bb8 kernel:  aes_x86_64 drm snd_pcm crypto_simd evdev glue_helper cfg80211 input_leds cryptd syscopyarea sysfillrect psmouse mac_hid snd_timer sysimgblt pcspkr fb_s>
Mar 28 15:10:50 bb8 kernel: CPU: 0 PID: 697 Comm: gnome-shell Tainted: G         C       4.16.0-rc1-576e538e5fe6 #5
Mar 28 15:10:50 bb8 kernel: Hardware name: HP HP ENVY x360 Convertible 15-bq1xx/83C6, BIOS F.13 11/10/2017
Mar 28 15:10:50 bb8 kernel: RIP: 0010:generic_reg_wait+0xdb/0x150 [amdgpu]
Mar 28 15:10:50 bb8 kernel: RSP: 0018:ffffbf7ac22ef928 EFLAGS: 00010297
Mar 28 15:10:50 bb8 kernel: RAX: 0000000000000000 RBX: 000000000000000b RCX: 0000000000000000
Mar 28 15:10:50 bb8 kernel: RDX: 0000000000000000 RSI: ffff9ead0ea16418 RDI: ffff9ead0ea16418
Mar 28 15:10:50 bb8 kernel: RBP: 0000000000000001 R08: 00000000000003a4 R09: 0000000000000001
Mar 28 15:10:50 bb8 kernel: R10: 0000000000000002 R11: ffffffffaf55b42d R12: 0000000000000008
Mar 28 15:10:50 bb8 kernel: R13: ffff9ead083f1d80 R14: 0000000000000100 R15: 0000000000000001
Mar 28 15:10:50 bb8 kernel: FS:  00007f06506c5a00(0000) GS:ffff9ead0ea00000(0000) knlGS:0000000000000000
Mar 28 15:10:50 bb8 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 28 15:10:50 bb8 kernel: CR2: 00007f05fc175000 CR3: 00000003f33b2000 CR4: 00000000003406f0
Mar 28 15:10:50 bb8 kernel: Call Trace:
Mar 28 15:10:50 bb8 kernel:  optc1_lock+0x9e/0xb0 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  dcn10_pipe_control_lock.part.25+0x27/0x70 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  dcn10_apply_ctx_for_surface+0xf3/0x11f0 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? dma_fence_wait_timeout+0x33/0x100
Mar 28 15:10:50 bb8 kernel:  ? hubbub1_verify_allow_pstate_change_high+0xaa/0x1b0 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? dcn10_verify_allow_pstate_change_high+0x18/0x20 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? dcn10_set_bandwidth+0x275/0x2c0 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  dc_commit_state+0x28b/0x580 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? set_freesync_on_streams.part.6+0x92/0x260 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? mod_freesync_set_user_enable+0x14e/0x190 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  amdgpu_dm_atomic_commit_tail+0x361/0xce0 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? amdgpu_bo_pin_restricted+0x1c9/0x2d0 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  ? wait_for_completion_timeout+0x10f/0x130
Mar 28 15:10:50 bb8 kernel:  ? wait_for_completion_interruptible+0x11e/0x170
Mar 28 15:10:50 bb8 kernel:  ? dm_plane_helper_prepare_fb+0xdb/0x270 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  commit_tail+0x3a/0x70 [drm_kms_helper]
Mar 28 15:10:50 bb8 kernel:  drm_atomic_helper_commit+0xfc/0x110 [drm_kms_helper]
Mar 28 15:10:50 bb8 kernel:  drm_atomic_connector_commit_dpms+0xe4/0xf0 [drm]
Mar 28 15:10:50 bb8 kernel:  drm_mode_obj_set_property_ioctl+0x174/0x290 [drm]
Mar 28 15:10:50 bb8 kernel:  ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
Mar 28 15:10:50 bb8 kernel:  drm_ioctl_kernel+0x59/0xb0 [drm]
Mar 28 15:10:50 bb8 kernel:  drm_ioctl+0x29c/0x340 [drm]
Mar 28 15:10:50 bb8 kernel:  ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
Mar 28 15:10:50 bb8 kernel:  ? eventfd_read+0xc9/0x250
Mar 28 15:10:50 bb8 kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Mar 28 15:10:50 bb8 kernel:  do_vfs_ioctl+0xa1/0x610
Mar 28 15:10:50 bb8 kernel:  SyS_ioctl+0x74/0x80
Mar 28 15:10:50 bb8 kernel:  do_syscall_64+0x62/0x120
Mar 28 15:10:50 bb8 kernel:  entry_SYSCALL_64_after_hwframe+0x21/0x86
Mar 28 15:10:50 bb8 kernel: RIP: 0033:0x7f0650042d87
Mar 28 15:10:50 bb8 kernel: RSP: 002b:00007ffe4a78a568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Mar 28 15:10:50 bb8 kernel: RAX: ffffffffffffffda RBX: 0000561ca87d3230 RCX: 00007f0650042d87
Mar 28 15:10:50 bb8 kernel: RDX: 00007ffe4a78a5a0 RSI: 00000000c01864ba RDI: 000000000000000b
Mar 28 15:10:50 bb8 kernel: RBP: 00007ffe4a78a5a0 R08: 0000000000000000 R09: 0000000000000002
Mar 28 15:10:50 bb8 kernel: R10: 0000561ca87fbee8 R11: 0000000000000246 R12: 00000000c01864ba
Mar 28 15:10:50 bb8 kernel: R13: 000000000000000b R14: 00007ffe4a78a7a0 R15: 00007f064f51e930
Mar 28 15:10:50 bb8 kernel: Code: 44 24 58 48 8b 4c 24 50 89 ee 48 c7 c7 b0 35 34 c1 8b 54 24 48 44 89 4c 24 08 e8 b1 ae 5b ff 41 83 7d 20 01 44 8b 4c 24 08 74 02 <0f> ff 48 83 c4 >
Mar 28 15:10:50 bb8 kernel: ---[ end trace 73026ca0ecb74ff2 ]---
-- snip Networkmanager
Mar 28 15:14:50 bb8 gnome-shell[697]: Screen lock is locked down, not locking
Mar 28 15:14:50 bb8 kernel: ------------[ cut here ]------------
Mar 28 15:14:50 bb8 kernel: kernel BUG at drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4789!
Mar 28 15:14:50 bb8 kernel: invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
Mar 28 15:14:50 bb8 kernel: Modules linked in: ctr ccm joydev mousedev msr nls_iso8859_1 nls_cp437 vfat fat hid_sensor_accel_3d hid_sensor_gyro_3d hid_sensor_incl_3d hid_sensor_rot>
Mar 28 15:14:50 bb8 kernel:  aes_x86_64 drm snd_pcm crypto_simd evdev glue_helper cfg80211 input_leds cryptd syscopyarea sysfillrect psmouse mac_hid snd_timer sysimgblt pcspkr fb_s>
Mar 28 15:14:50 bb8 kernel: CPU: 2 PID: 697 Comm: gnome-shell Tainted: G        WC       4.16.0-rc1-576e538e5fe6 #5
Mar 28 15:14:50 bb8 kernel: Hardware name: HP HP ENVY x360 Convertible 15-bq1xx/83C6, BIOS F.13 11/10/2017
Mar 28 15:14:50 bb8 kernel: RIP: 0010:dm_update_crtcs_state+0x345/0x3b0 [amdgpu]
Mar 28 15:14:50 bb8 kernel: RSP: 0018:ffffbf7ac22efb50 EFLAGS: 00010246
Mar 28 15:14:50 bb8 kernel: RAX: 0000000000000000 RBX: ffff9ead0851a000 RCX: 000000000003d702
Mar 28 15:14:50 bb8 kernel: RDX: 000000000003d682 RSI: ffff9ead0eaa2d80 RDI: ffff9ead0e406e80
Mar 28 15:14:50 bb8 kernel: RBP: ffff9eacfa5d1800 R08: 0000000000022d80 R09: ffffffffc123b3db
Mar 28 15:14:50 bb8 kernel: R10: ffffe46a4f9e4600 R11: 0000000000000001 R12: 0000000000000000
Mar 28 15:14:50 bb8 kernel: R13: ffff9eace791ec00 R14: ffff9eace791dc00 R15: ffff9eacde9c1f80
Mar 28 15:14:50 bb8 kernel: FS:  00007f06506c5a00(0000) GS:ffff9ead0ea80000(0000) knlGS:0000000000000000
Mar 28 15:14:50 bb8 kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Mar 28 15:14:50 bb8 kernel: CR2: 000016a6f2d63218 CR3: 00000003f33b2000 CR4: 00000000003406e0
Mar 28 15:14:50 bb8 kernel: Call Trace:
Mar 28 15:14:50 bb8 kernel:  amdgpu_dm_atomic_check+0x29f/0x4d0 [amdgpu]
Mar 28 15:14:50 bb8 kernel:  drm_atomic_check_only+0x336/0x4e0 [drm]
Mar 28 15:14:50 bb8 kernel:  drm_atomic_commit+0x13/0x50 [drm]
Mar 28 15:14:50 bb8 kernel:  drm_atomic_connector_commit_dpms+0xe4/0xf0 [drm]
Mar 28 15:14:50 bb8 kernel:  drm_mode_obj_set_property_ioctl+0x174/0x290 [drm]
Mar 28 15:14:50 bb8 kernel:  ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
Mar 28 15:14:50 bb8 kernel:  drm_ioctl_kernel+0x59/0xb0 [drm]
Mar 28 15:14:50 bb8 kernel:  drm_ioctl+0x29c/0x340 [drm]
Mar 28 15:14:50 bb8 kernel:  ? drm_mode_obj_find_prop_id+0x40/0x40 [drm]
Mar 28 15:14:50 bb8 kernel:  ? eventfd_read+0xc9/0x250
Mar 28 15:14:50 bb8 kernel:  amdgpu_drm_ioctl+0x49/0x80 [amdgpu]
Mar 28 15:14:50 bb8 kernel:  do_vfs_ioctl+0xa1/0x610
Mar 28 15:14:50 bb8 kernel:  SyS_ioctl+0x74/0x80
Mar 28 15:14:50 bb8 kernel:  do_syscall_64+0x62/0x120
Mar 28 15:14:50 bb8 kernel:  entry_SYSCALL_64_after_hwframe+0x21/0x86
Mar 28 15:14:50 bb8 kernel: RIP: 0033:0x7f0650042d87
Mar 28 15:14:50 bb8 kernel: RSP: 002b:00007ffe4a78a568 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
Mar 28 15:14:50 bb8 kernel: RAX: ffffffffffffffda RBX: 0000561ca87d3230 RCX: 00007f0650042d87
Mar 28 15:14:50 bb8 kernel: RDX: 00007ffe4a78a5a0 RSI: 00000000c01864ba RDI: 000000000000000b
Mar 28 15:14:50 bb8 kernel: RBP: 00007ffe4a78a5a0 R08: 0000000000000003 R09: 0000000000000002
Mar 28 15:14:50 bb8 kernel: R10: 0000561ca87fbee8 R11: 0000000000000246 R12: 00000000c01864ba
Mar 28 15:14:50 bb8 kernel: R13: 000000000000000b R14: 00007ffe4a78a7a0 R15: 00007f064f51e930
Mar 28 15:14:50 bb8 kernel: Code: 18 c6 00 01 0f 84 f7 fd ff ff e9 e9 fd ff ff 45 0f b6 4d 0a 41 f6 c1 0e 0f 84 5d fd ff ff 48 c7 04 24 00 00 00 00 e9 16 fe ff ff <0f> 0b 48 83 bb >
Mar 28 15:14:50 bb8 kernel: RIP: dm_update_crtcs_state+0x345/0x3b0 [amdgpu] RSP: ffffbf7ac22efb50
Mar 28 15:14:50 bb8 kernel: ---[ end trace 73026ca0ecb74ff3 ]---
-- snip Networkmanager
Mar 28 15:14:50 bb8 kernel: PM: suspend entry (deep)
---end
Comment 1 Harry Wentland 2018-05-07 15:53:01 UTC
Is this still an issue?

What do you do when this happens? Boot-up? Resume? Hot-plug display? video playback? etc?

Does this happen consistently or is it random?
Comment 2 cd 2018-05-08 13:00:56 UTC
Not reproducible in 4.16.7


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.