[Bug 106115] Changing display's orientation hits [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 1us * 10 tries - optc1_lock line:553

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 18 06:15:48 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=106115

            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 at lists.freedesktop.org
          Reporter: jian-hong at endlessm.com

Created attachment 138894
  --> https://bugs.freedesktop.org/attachment.cgi?id=138894&action=edit
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 display
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 amdgpu
chash serio_raw i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect
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/X505ZA,
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 
[   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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180418/ca69c992/attachment-0001.html>


More information about the dri-devel mailing list