From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 106115] Changing display's orientation hits [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 10 tries - optc1_lock line:553 Date: Wed, 18 Apr 2018 06:15:48 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1029811216==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id DE7DE6E110 for ; Wed, 18 Apr 2018 06:15:48 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1029811216== Content-Type: multipart/alternative; boundary="15240321480.dA12F.20062" Content-Transfer-Encoding: 7bit --15240321480.dA12F.20062 Date: Wed, 18 Apr 2018 06:15:48 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D106115 Bug ID: 106115 Summary: Changing display's orientation hits [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 10 tries - optc1_lock line:553 Product: DRI Version: unspecified Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: jian-hong@endlessm.com Created attachment 138894 --> https://bugs.freedesktop.org/attachment.cgi?id=3D138894&action=3Dedit the full dmesg I have an AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx laptop. After set and apply the orientation in display settings, the laptop's displ= ay rotates to the orientation and works. However, I can see the amdgpu module hits the error in dmesg during the rotation: "[drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 10 tries - optc1_lock line:553" and the warning message: "WARNING: CPU: 6 PID:= 684 at drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:195 generic_reg_wait+0xeb/0x160 [amdgpu]". [ 65.504852] [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us= * 10 tries - optc1_lock line:553 [ 65.504985] WARNING: CPU: 6 PID: 684 at drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:195 generic_reg_wait+0xeb/0x160 [amdgpu] [ 65.504986] Modules linked in: ccm rfcomm cmac bnep edac_mce_amd kvm_amd= ccp kvm btusb btrtl btbcm btintel snd_hda_codec_generic bluetooth snd_hda_codec_hdmi snd_hda_intel snd_hda_codec ecdh_generic uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 arc4 irqbypass videobuf2_common videodev crct10dif_pclmul media snd_hda_core asus_nb_wmi asus_wmi iwlmvm mac80211 wmi_bmof crc32_pclmul ghash_clmulni_intel sparse_keymap pcbc aesni_intel aes_x86_64 crypto_simd glue_helper input_leds iwlwifi r8169 cfg80211 mii cryptd video snd_hwdep snd_pcm snd_timer snd soundcore joydev mac_hid shpchp asus_wireless wmi zram i2c_piix4 ip_tables x_tables uas usb_storage hid_multitouch hid_generic amdkfd amd_iommu_v2 amd= gpu chash serio_raw i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillre= ct sysimgblt ahci [ 65.505032] fb_sys_fops libahci ttm drm i2c_hid hid [ 65.505039] CPU: 6 PID: 684 Comm: Xorg Not tainted 4.16.2 #7 [ 65.505040] Hardware name: ASUSTeK COMPUTER INC. VivoBook 15 X505ZA/X505= ZA, BIOS X505ZA.200.T08 02/03/2018 [ 65.505079] RIP: 0010:generic_reg_wait+0xeb/0x160 [amdgpu] [ 65.505080] RSP: 0018:ffffa63ec2c17840 EFLAGS: 00010297 [ 65.505082] RAX: 0000000000000229 RBX: 000000000000000b RCX: 0000000000000000 [ 65.505082] RDX: 0000000000000000 RSI: ffff9a37937964b8 RDI: ffff9a37937964b8 [ 65.505083] RBP: ffffa63ec2c17880 R08: 0000000000000001 R09: 00000000000003a6 [ 65.505084] R10: 0000000000000001 R11: 00000000000003a6 R12: 0000000000000001 [ 65.505085] R13: ffff9a378c260400 R14: 0000000000000100 R15: 0000000000000001 [ 65.505086] FS: 00007fd98feada40(0000) GS:ffff9a3793780000(0000) knlGS:0000000000000000 [ 65.505087] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 65.505088] CR2: 000055cb7874e850 CR3: 0000000310cec000 CR4: 00000000003406e0 [ 65.505090] Call Trace: [ 65.505136] optc1_lock+0xa2/0xb0 [amdgpu] [ 65.505176] dcn10_apply_ctx_for_surface+0xed/0x510 [amdgpu] [ 65.505215] ? amdgpu_cgs_read_register+0x14/0x20 [amdgpu] [ 65.505252] dc_commit_state+0x266/0x5d0 [amdgpu] [ 65.505287] ? set_freesync_on_streams.part.5+0xa6/0x2a0 [amdgpu] [ 65.505322] ? mod_freesync_set_user_enable+0x15f/0x1a0 [amdgpu] [ 65.505364] amdgpu_dm_atomic_commit_tail+0x348/0xf80 [amdgpu] [ 65.505393] ? amdgpu_bo_pin_restricted+0x1fe/0x2b0 [amdgpu] [ 65.505399] ? _cond_resched+0x1a/0x50 [ 65.505401] ? wait_for_completion_timeout+0x3a/0x140 [ 65.505402] ? _cond_resched+0x1a/0x50 [ 65.505403] ? wait_for_completion_interruptible+0x37/0x180 [ 65.505405] ? ww_mutex_unlock+0x26/0x30 [ 65.505415] commit_tail+0x42/0x70 [drm_kms_helper] [ 65.505421] drm_atomic_helper_commit+0x10c/0x120 [drm_kms_helper] [ 65.505461] amdgpu_dm_atomic_commit+0x87/0xa0 [amdgpu] [ 65.505483] drm_atomic_commit+0x51/0x60 [drm] [ 65.505490] drm_atomic_helper_set_config+0x6e/0x90 [drm_kms_helper] [ 65.505504] __drm_mode_set_config_internal+0x6b/0x120 [drm] [ 65.505515] drm_mode_setcrtc+0x4f1/0x680 [drm] [ 65.505526] ? drm_mode_getcrtc+0x190/0x190 [drm] [ 65.505534] drm_ioctl_kernel+0x6b/0xb0 [drm] [ 65.505543] drm_ioctl+0x33c/0x3f0 [drm] [ 65.505553] ? drm_mode_getcrtc+0x190/0x190 [drm] [ 65.505581] amdgpu_drm_ioctl+0x4f/0x90 [amdgpu] [ 65.505585] do_vfs_ioctl+0xa6/0x610 [ 65.505587] ? handle_mm_fault+0x102/0x200 [ 65.505589] SyS_ioctl+0x79/0x90 [ 65.505591] do_syscall_64+0x73/0x130 [ 65.505593] entry_SYSCALL_64_after_hwframe+0x3d/0xa2 [ 65.505594] RIP: 0033:0x7fd98d36cdd7 [ 65.505595] RSP: 002b:00007fff4fb64b18 EFLAGS: 00003246 ORIG_RAX: 0000000000000010 [ 65.505597] RAX: ffffffffffffffda RBX: 000000000000000e RCX: 00007fd98d36cdd7 [ 65.505598] RDX: 00007fff4fb64b50 RSI: 00000000c06864a2 RDI: 000000000000000e [ 65.505598] RBP: 00007fff4fb64b50 R08: 0000000000000000 R09: 000055cb795e0160 [ 65.505599] R10: 00007fff4fb64cf0 R11: 0000000000003246 R12: 00000000c06864a2 [ 65.505600] R13: 000000000000000e R14: 000055cb79031860 R15: 000055cb78efe380 [ 65.505601] Code: 44 8b 45 10 44 89 e1 48 c7 c2 00 d4 6b c0 48 c7 c7 b3 = 50 6c c0 44 89 55 d4 50 e8 91 8f d4 ff 41 83 7d 20 01 44 8b 55 d4 58 74 02 <0f= > 0b 48 8d 65 d8 44 89 d0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 41=20 [ 65.505628] ---[ end trace 8ba03b5199c4f7bc ]--- The kernel I used is 4.16.2. --=20 You are receiving this mail because: You are the assignee for the bug.= --15240321480.dA12F.20062 Date: Wed, 18 Apr 2018 06:15:48 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 106115
Summary Changing display's orientation hits [drm:generic_reg_wait [am= dgpu]] *ERROR* REG_WAIT timeout 1us * 10 tries - optc1_lock line:553
Product DRI
Version unspecified
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter jian-hong@endlessm.com

Created attachment 138894 [details]
the full dmesg

I have an AMD Ryzen 5 2500U with Radeon Vega Mobile Gfx laptop.

After set and apply the orientation in display settings, the laptop's displ=
ay
rotates to the orientation and works.
However, I can see the amdgpu module hits the error in dmesg during the
rotation: "[drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1u=
s * 10
tries - optc1_lock line:553" and the warning message: "WARNING: C=
PU: 6 PID: 684
at drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:195
generic_reg_wait+0xeb/0x160 [amdgpu]".

[   65.504852] [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us=
 *
10 tries - optc1_lock line:553
[   65.504985] WARNING: CPU: 6 PID: 684 at
drivers/gpu/drm/amd/amdgpu/../display/dc/dc_helper.c:195
generic_reg_wait+0xeb/0x160 [amdgpu]
[   65.504986] Modules linked in: ccm rfcomm cmac bnep edac_mce_amd kvm_amd=
 ccp
kvm btusb btrtl btbcm btintel snd_hda_codec_generic bluetooth
snd_hda_codec_hdmi snd_hda_intel snd_hda_codec ecdh_generic uvcvideo
videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 arc4 irqbypass
videobuf2_common videodev crct10dif_pclmul media snd_hda_core asus_nb_wmi
asus_wmi iwlmvm mac80211 wmi_bmof crc32_pclmul ghash_clmulni_intel
sparse_keymap pcbc aesni_intel aes_x86_64 crypto_simd glue_helper input_leds
iwlwifi r8169 cfg80211 mii cryptd video snd_hwdep snd_pcm snd_timer snd
soundcore joydev mac_hid shpchp asus_wireless wmi zram i2c_piix4 ip_tables
x_tables uas usb_storage hid_multitouch hid_generic amdkfd amd_iommu_v2 amd=
gpu
chash serio_raw i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillre=
ct
sysimgblt ahci
[   65.505032]  fb_sys_fops libahci ttm drm i2c_hid hid
[   65.505039] CPU: 6 PID: 684 Comm: Xorg Not tainted 4.16.2 #7
[   65.505040] Hardware name: ASUSTeK COMPUTER INC. VivoBook 15 X505ZA/X505=
ZA,
BIOS X505ZA.200.T08 02/03/2018
[   65.505079] RIP: 0010:generic_reg_wait+0xeb/0x160 [amdgpu]
[   65.505080] RSP: 0018:ffffa63ec2c17840 EFLAGS: 00010297
[   65.505082] RAX: 0000000000000229 RBX: 000000000000000b RCX:
0000000000000000
[   65.505082] RDX: 0000000000000000 RSI: ffff9a37937964b8 RDI:
ffff9a37937964b8
[   65.505083] RBP: ffffa63ec2c17880 R08: 0000000000000001 R09:
00000000000003a6
[   65.505084] R10: 0000000000000001 R11: 00000000000003a6 R12:
0000000000000001
[   65.505085] R13: ffff9a378c260400 R14: 0000000000000100 R15:
0000000000000001
[   65.505086] FS:  00007fd98feada40(0000) GS:ffff9a3793780000(0000)
knlGS:0000000000000000
[   65.505087] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   65.505088] CR2: 000055cb7874e850 CR3: 0000000310cec000 CR4:
00000000003406e0
[   65.505090] Call Trace:
[   65.505136]  optc1_lock+0xa2/0xb0 [amdgpu]
[   65.505176]  dcn10_apply_ctx_for_surface+0xed/0x510 [amdgpu]
[   65.505215]  ? amdgpu_cgs_read_register+0x14/0x20 [amdgpu]
[   65.505252]  dc_commit_state+0x266/0x5d0 [amdgpu]
[   65.505287]  ? set_freesync_on_streams.part.5+0xa6/0x2a0 [amdgpu]
[   65.505322]  ? mod_freesync_set_user_enable+0x15f/0x1a0 [amdgpu]
[   65.505364]  amdgpu_dm_atomic_commit_tail+0x348/0xf80 [amdgpu]
[   65.505393]  ? amdgpu_bo_pin_restricted+0x1fe/0x2b0 [amdgpu]
[   65.505399]  ? _cond_resched+0x1a/0x50
[   65.505401]  ? wait_for_completion_timeout+0x3a/0x140
[   65.505402]  ? _cond_resched+0x1a/0x50
[   65.505403]  ? wait_for_completion_interruptible+0x37/0x180
[   65.505405]  ? ww_mutex_unlock+0x26/0x30
[   65.505415]  commit_tail+0x42/0x70 [drm_kms_helper]
[   65.505421]  drm_atomic_helper_commit+0x10c/0x120 [drm_kms_helper]
[   65.505461]  amdgpu_dm_atomic_commit+0x87/0xa0 [amdgpu]
[   65.505483]  drm_atomic_commit+0x51/0x60 [drm]
[   65.505490]  drm_atomic_helper_set_config+0x6e/0x90 [drm_kms_helper]
[   65.505504]  __drm_mode_set_config_internal+0x6b/0x120 [drm]
[   65.505515]  drm_mode_setcrtc+0x4f1/0x680 [drm]
[   65.505526]  ? drm_mode_getcrtc+0x190/0x190 [drm]
[   65.505534]  drm_ioctl_kernel+0x6b/0xb0 [drm]
[   65.505543]  drm_ioctl+0x33c/0x3f0 [drm]
[   65.505553]  ? drm_mode_getcrtc+0x190/0x190 [drm]
[   65.505581]  amdgpu_drm_ioctl+0x4f/0x90 [amdgpu]
[   65.505585]  do_vfs_ioctl+0xa6/0x610
[   65.505587]  ? handle_mm_fault+0x102/0x200
[   65.505589]  SyS_ioctl+0x79/0x90
[   65.505591]  do_syscall_64+0x73/0x130
[   65.505593]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[   65.505594] RIP: 0033:0x7fd98d36cdd7
[   65.505595] RSP: 002b:00007fff4fb64b18 EFLAGS: 00003246 ORIG_RAX:
0000000000000010
[   65.505597] RAX: ffffffffffffffda RBX: 000000000000000e RCX:
00007fd98d36cdd7
[   65.505598] RDX: 00007fff4fb64b50 RSI: 00000000c06864a2 RDI:
000000000000000e
[   65.505598] RBP: 00007fff4fb64b50 R08: 0000000000000000 R09:
000055cb795e0160
[   65.505599] R10: 00007fff4fb64cf0 R11: 0000000000003246 R12:
00000000c06864a2
[   65.505600] R13: 000000000000000e R14: 000055cb79031860 R15:
000055cb78efe380
[   65.505601] Code: 44 8b 45 10 44 89 e1 48 c7 c2 00 d4 6b c0 48 c7 c7 b3 =
50
6c c0 44 89 55 d4 50 e8 91 8f d4 ff 41 83 7d 20 01 44 8b 55 d4 58 74 02 <=
;0f> 0b
48 8d 65 d8 44 89 d0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 41=20
[   65.505628] ---[ end trace 8ba03b5199c4f7bc ]---

The kernel I used is 4.16.2.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15240321480.dA12F.20062-- --===============1029811216== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1029811216==--