Skip to contentSkip to conversation

Boot error: gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132 generic_reg_update_ex+0x108/0x150 [amdgpu] dce110_stream_encoder_update_hdmi_info_packets+0x20e/0x3a0 [amdgpu]

Bug 106544 [email protected] 1 participant 13 messages May 16, 2018 – Nov 19, 2019

lore
Share & tools
lore
#0 lore raw

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

            Bug ID: 106544
           Summary: Boot error:
                    gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132
                    generic_reg_update_ex+0x108/0x150 [amdgpu]
                    dce110_stream_encoder_update_hdmi_info_packets+0x20e/0
                    x3a0 [amdgpu]
           Product: DRI
           Version: XOrg git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 139594
--> https://bugs.freedesktop.org/attachment.cgi?id=139594&action=edit
dmesg.log

Every time I boot I receive below error, especially this happens also if I attach HDMI cable during runtime as well (high speed or not always same):

WARNING: CPU: 8 PID: 284 at
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132
generic_reg_update_ex+0x108/0x150 [amdgpu]
[    7.603663] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) chash gpu_sched
drm_kms_helper hid_logitech_hidpp(+) ttm drm igb ptp crc32c_intel nvme pps_core
hid_logitech_dj nvme_core hid_microsoft dca i2c_algo_bit
[    7.603668] CPU: 8 PID: 284 Comm: kworker/8:1 Tainted: G        W        
4.17.0-rc5-1-burak+ #4
[    7.603668] Hardware name: System manufacturer System Product Name/PRIME
X399-A, BIOS 0601 03/27/2018
[    7.603670] Workqueue: events work_for_cpu_fn
[    7.603695] RIP: 0010:generic_reg_update_ex+0x108/0x150 [amdgpu]
[    7.603696] RSP: 0018:ffffacbdc75b3760 EFLAGS: 00010246
[    7.603697] RAX: ffffacbdc75b3780 RBX: ffff9a8e5fba7bc0 RCX:
0000000000000000
[    7.603697] RDX: 0000000000012390 RSI: 0000000000000000 RDI:
ffff9a8e61526600
[    7.603697] RBP: ffffacbdc75b37d0 R08: 0000000000000000 R09:
0000000000000000
[    7.603698] R10: ffffacbdc75b37e8 R11: 0000000000000001 R12:
0000000000000001
[    7.603698] R13: 0000000000000000 R14: ffff9a8e5fb75800 R15:
ffff9a8e60367400
[    7.603699] FS:  0000000000000000(0000) GS:ffff9a8e7f400000(0000)
knlGS:0000000000000000
[    7.603699] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    7.603700] CR2: 00007f05c8b2665e CR3: 000000041b2a8000 CR4:
00000000003406e0
[    7.603700] Call Trace:
[    7.603731]  dce110_stream_encoder_update_hdmi_info_packets+0x20e/0x3a0

[amdgpu]

full dmesg attached.

gpu: R9 Fury X (UEFI rom)
(https://support.amd.com/en-us/download/gpu-firmware-download)

Kernel: 4.17-rc4

OS: Fedora 27

driver:

burak@[~/dev/git/linux]$lsmod | grep amdgpu
amdgpu               3096576  17
chash                  16384  1 amdgpu
gpu_sched              28672  1 amdgpu
drm_kms_helper        196608  1 amdgpu
ttm                   126976  1 amdgpu
drm                   458752  11 gpu_sched,drm_kms_helper,amdgpu,ttm
i2c_algo_bit           16384  2 igb,amdgpu
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

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

Leonid Maksymchuk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Leonid Maksymchuk <[email protected]> --- Created attachment 139904
--> https://bugs.freedesktop.org/attachment.cgi?id=139904&action=edit
Full dmesg log.

I have similar issue :

[    1.179416] WARNING: CPU: 14 PID: 396 at
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132
generic_reg_update_ex+0x13a/0x160 [amdgpu]
[    1.179417] Modules linked in: amdkfd amd_iommu_v2 amdgpu(+) chash
i2c_algo_bit gpu_sched drm_kms_helper syscopyarea sysfillrect sysimgblt
fb_sys_fops crc32c_intel ttm ahci drm libahci r8169 mii libata bcache
[    1.179425] CPU: 14 PID: 396 Comm: systemd-udevd Not tainted
4.16.13-1.el7.x86_64 #1
[    1.179425] Hardware name: System manufacturer System Product Name/PRIME
B350-PLUS, BIOS 3401 12/04/2017
[    1.179453] RIP: 0010:generic_reg_update_ex+0x13a/0x160 [amdgpu]
[    1.179453] RSP: 0018:ffffc900023e30a0 EFLAGS: 00010246
[    1.179454] RAX: ffffc900023e30c0 RBX: ffff880402ba99c0 RCX:
0000000000000001
[    1.179455] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
ffff880402f26200
[    1.179455] RBP: ffffc900023e3110 R08: 0000000000000000 R09:
0000000000000000
[    1.179456] R10: 0000000000000000 R11: 0000000000000001 R12:
0000000000000001
[    1.179456] R13: 0000000000000000 R14: 0000000000000000 R15:
ffff8804058f6c00
[    1.179457] FS:  00007f7fb6a5a8c0(0000) GS:ffff88041ef80000(0000)
knlGS:0000000000000000
[    1.179458] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    1.179458] CR2: 00007f7fb6a65e02 CR3: 0000000404e0e000 CR4:
00000000003406e0
[    1.179459] Call Trace:
[    1.179491]  dce110_stream_encoder_update_hdmi_info_packets+0x406/0x640

[amdgpu]
...

Full dmesg log attached.

This crash happens during boot, also similar crashes ocured on desktop - mostly after display sleep (DPMS).
After crash display can become blank for couple of seconds.

My video card is ASUS Fury Strix 4GB.

Crashes appeared after I updated kernel to 4.16.13. Later I'll re-test with 4.16.12 and report.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
In reply to [email protected]

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

--- Comment #3 from Leonid Maksymchuk <[email protected]> --- Tested same kernel on Radeon RX 570 - no errors in dmesg, seems to affect R9 Fury video cards only.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

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

--- Comment #4 from Leonid Maksymchuk <[email protected]> --- With my Radeon R9 Fury, I tested kernels down to 4.16.3 (latest version that does not crash) and found this commit to be a reason for errors:

https://patchwork.kernel.org/patch/10354647/

I built kernel 4.16.13 with this commit reverted, and it works nicely without errors in dmesg.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

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

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |[email protected],
                   |                            |[email protected]

--- Comment #5 from Michel Dänzer <[email protected]> --- Charlene/Harry, any ideas?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

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

--- Comment #6 from Leonid Maksymchuk <[email protected]> --- Forgot to mention that I too use HDMI cable to connect my display.

And after reverting this commit display outs from sleep (DPMS) normally w/o blanking.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

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

--- Comment #7 from Andrei Slavoiu <[email protected]> --- I've encountered this with an RX 480 connected via DisplayPort as well:

[55207.637429] WARNING: CPU: 3 PID: 2125 at
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132
generic_reg_update_ex+0x102/0x148
[55207.637431] Modules linked in: sr_mod cdrom
[55207.637437] CPU: 3 PID: 2125 Comm: X Tainted: G        W        
4.17.2-gentoo #2
[55207.637438] Hardware name: To Be Filled By O.E.M. To Be Filled By
O.E.M./FM2A88X Extreme6+, BIOS P4.20 01/13/2016
[55207.637440] RIP: 0010:generic_reg_update_ex+0x102/0x148
[55207.637440] RSP: 0018:ffffc90002ba3890 EFLAGS: 00010246
[55207.637442] RAX: ffffc90002ba38b0 RBX: ffff88043c4a8040 RCX:
0000000000000000
[55207.637442] RDX: 0000000000000000 RSI: 0000000000000000 RDI:
ffff88043ca5a880
[55207.637443] RBP: ffffc90002ba3900 R08: 0000000000000000 R09:
0000000000000000
[55207.637444] R10: ffffc90002ba3918 R11: 0000000000000001 R12:
0000000000000001
[55207.637444] R13: 0000000000000000 R14: ffff88043caec000 R15:
ffff88010b0f4188
[55207.637445] FS:  00007fc777d7b900(0000) GS:ffff88044ed80000(0000)
knlGS:0000000000000000
[55207.637446] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[55207.637447] CR2: 00007fbdd0660a10 CR3: 0000000427b0c000 CR4:
00000000000406e0
[55207.637448] Call Trace:
[55207.637453]  dce110_stream_encoder_update_hdmi_info_packets+0x36f/0x590
[55207.637456]  dce110_apply_ctx_to_hw+0x76e/0x8f8
[55207.637458]  ? dc_commit_state+0x32d/0x5c8
[55207.637460]  ? set_freesync_on_streams.part.6+0x48/0x240
[55207.637461]  ? mod_freesync_set_user_enable+0x119/0x150
[55207.637464]  ? amdgpu_dm_atomic_commit_tail+0x34b/0xce0
[55207.637467]  ? _cond_resched+0x10/0x38
[55207.637468]  ? wait_for_completion_timeout+0x35/0x180
[55207.637469]  ? wait_for_completion_interruptible+0x30/0x1a0
[55207.637472]  ? commit_tail+0x38/0x68
[55207.637473]  ? drm_atomic_helper_commit+0xf7/0x100
[55207.637474]  ? drm_atomic_helper_set_config+0x72/0x80
[55207.637477]  ? __drm_mode_set_config_internal+0x62/0x110
[55207.637478]  ? drm_mode_setcrtc+0x3ee/0x578
[55207.637480]  ? drm_crtc_check_viewport+0xa8/0xa8
[55207.637481]  ? drm_ioctl_kernel+0x56/0xa8
[55207.637483]  ? drm_ioctl+0x2a0/0x340
[55207.637484]  ? drm_crtc_check_viewport+0xa8/0xa8
[55207.637486]  ? amdgpu_drm_ioctl+0x44/0x78
[55207.637489]  ? do_vfs_ioctl+0x9f/0x610
[55207.637492]  ? __sys_recvmsg+0x7e/0x98
[55207.637493]  ? ksys_ioctl+0x35/0x60
[55207.637495]  ? __x64_sys_ioctl+0x11/0x18
[55207.637497]  ? do_syscall_64+0x50/0x150
[55207.637500]  ? entry_SYSCALL_64_after_hwframe+0x44/0xa9
[55207.637500] Code: 48 8b 40 08 e8 a0 1f 71 00 48 8b 75 a8 65 48 33 34 25 28
00 00 00 89 d8 75 18 48 83 c4 50 5b 41 5a 41 5c 41 5d 5d c3 0f 0b eb b4 <0f> 0b
e9 43 ff ff ff e8 9a 0f 9c ff 41 ba 01 00 00 00 44 89 c0
[55207.637521] ---[ end trace b2eb025a41b6045f ]---
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

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

--- Comment #8 from Harald Judt <[email protected]> ---
I have experienced no bad symptoms caused by this error so far on my R9 390, but I also get these after hibernate/resume and will try if reverting the patch mentioned in Comment #4 gets rid of them.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

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

--- Comment #9 from Przemek <[email protected]> ---
I am not sure if my problem is related, but on every boot I get WARNING message:

[ 2791.454011] WARNING: CPU: 0 PID: 313 at
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132
generic_reg_update_ex+0xe4/0x120
[ 2791.454015] Modules linked in: rfcomm overlay squashfs loop

nf_conntrack_ipv6 nf_defrag_ipv6 ip6t_REJECT nf_reject_ipv6 xt_conntrack bnep ip_set nfnetlink ebtable_broute bridge stp llc ebtable_nat ebtable_filter ebtables ip6table_filter ip6_tables ipv6 uvcvideo ath3k videobuf2_vmalloc btusb videobuf2_memops videobuf2_v4l2 btintel videobuf2_common bluetooth videodev rtsx_usb_ms media ecdh_generic memstick rtsx_usb_sdmmc rtsx_usb kvm_amd kvm irqbypass ath9k crc32_pclmul ath9k_common ath9k_hw ghash_clmulni_intel serio_raw mac80211 sdhci_pci ath cqhci sdhci mmc_core cfg80211 xhci_pci xhci_hcd ehci_pci sp5100_tco ehci_hcd

[ 2791.454079] CPU: 0 PID: 313 Comm: kworker/0:1 Tainted: G        W        
4.17.8-gentoo #1
[ 2791.454081] Hardware name: LENOVO 80E3/Lancer 5B2, BIOS A2CN45WW(V2.13)
08/04/2016
[ 2791.454087] Workqueue: events dm_irq_work_func
[ 2791.454092] RIP: 0010:generic_reg_update_ex+0xe4/0x120
[ 2791.454094] RSP: 0018:ffffb25b80f27af8 EFLAGS: 00010246
[ 2791.454097] RAX: ffffb25b80f27b10 RBX: ffff950155d0fa80 RCX:
0000000000000000
[ 2791.454098] RDX: 0000000000006718 RSI: 0000000000000000 RDI:
ffff95015187f000
[ 2791.454100] RBP: ffffb25b80f27b60 R08: 0000000000000000 R09:
0000000000000000
[ 2791.454102] R10: ffffb25b80f27b78 R11: 0000000000000001 R12:
0000000000000001
[ 2791.454103] R13: 0000000000000000 R14: ffff950155c8b400 R15:
ffff9500ddd54408
[ 2791.454106] FS:  0000000000000000(0000) GS:ffff95015ec00000(0000)
knlGS:0000000000000000
[ 2791.454107] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2791.454109] CR2: 00007f0b7cff6018 CR3: 000000019b3d8000 CR4:
00000000000406f0
[ 2791.454110] Call Trace:
[ 2791.454121]  dce110_stream_encoder_update_hdmi_info_packets+0x36f/0x590
[ 2791.454127]  dce110_apply_ctx_to_hw+0x70c/0x898
[ 2791.454133]  dc_commit_state+0x319/0x5a0
[ 2791.454137]  ? set_freesync_on_streams.part.6+0x46/0x240
[ 2791.454141]  ? mod_freesync_set_user_enable+0x102/0x128
[ 2791.454146]  amdgpu_dm_atomic_commit_tail+0x358/0xd40
[ 2791.454151]  ? amdgpu_bo_pin_restricted+0x1af/0x278
[ 2791.454155]  ? preempt_count_add+0x63/0x90
[ 2791.454160]  ? _raw_spin_lock_irq+0xf/0x30
[ 2791.454163]  ? _raw_spin_unlock_irq+0xe/0x20
[ 2791.454166]  ? wait_for_completion_timeout+0xfa/0x110
[ 2791.454169]  ? _raw_spin_lock_irq+0xf/0x30
[ 2791.454172]  ? _raw_spin_unlock_irq+0xe/0x20
[ 2791.454175]  ? wait_for_completion_interruptible+0x109/0x140
[ 2791.454178]  ? dm_plane_helper_prepare_fb+0xd6/0x260
[ 2791.454184]  commit_tail+0x38/0x60
[ 2791.454188]  drm_atomic_helper_commit+0xf7/0x100
[ 2791.454192]  dm_restore_drm_connector_state+0xe0/0x130
[ 2791.454196]  handle_hpd_irq+0x65/0x90
[ 2791.454199]  dm_irq_work_func+0x49/0x60
[ 2791.454203]  process_one_work+0x1c6/0x3d8
[ 2791.454207]  worker_thread+0x26/0x3c0
[ 2791.454211]  ? trace_event_raw_event_workqueue_execute_start+0x80/0x80
[ 2791.454215]  kthread+0x10e/0x128
[ 2791.454218]  ? kthread_create_worker_on_cpu+0x48/0x48
[ 2791.454222]  ret_from_fork+0x22/0x40
[ 2791.454226] Code: a8 45 84 d2 75 4b 48 8b 7f 18 89 da 48 8b 07 48 8b 40 08
e8 ef 4a 5d 00 89 d8 48 83 c4 48 5b 41 5a 41 5c 41 5d 5d c3 0f 0b eb c3 <0f> 0b
e9 52 ff ff ff 41 8b 0c 24 41 89 c0 49 83 c4 08 45 8b 2c 
[ 2791.454281] ---[ end trace 9738d66b26317987 ]---

I am on 4.17.8. Machine is Lenovo g50-45 netbook with AMD a6310 APU and R4 Mullins.
Kernel was booted with amdgpu.dc=1 and amdgpu.dpm=1 kernel options.

I get this warning only with external monitor connected through HDMI. With single eDP screen dmesg is clean, but I haven't observed any other problems for now tough, only this warning mesage.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

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

--- Comment #10 from Przemek <[email protected]> --- I cannot reproduce this on stable 4.18 kernel any more.

It seems that WARNING message has been fixed for my hardware.

Thanks,
Przemek.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

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

--- Comment #11 from Dimonyga <[email protected]> --- Hardware AMD R9 380
Fedora 28 fresh install
kernel panic on kernel-4.17.2-200.fc28.x86_64

[   79.036493] WARNING: CPU: 0 PID: 1076 at
drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:132
generic_reg_update_ex+0x12c/0x160 [amdgpu]
[   79.036497] Modules linked in: fuse w83627ehf hwmon_vid snd_hda_codec_hdmi

snd_hda_intel snd_hda_codec snd_hda_core joydev coretemp snd_hwdep snd_seq snd_seq_device snd_pcm iTCO_wdt gpio_ich iTCO_vendor_support snd_timer snd soundcore lpc_ich asus_atk0110 shpchp amdkfd amd_iommu_v2 amdgpu chash gpu_sched i2c_algo_bit drm_kms_helper ttm drm serio_raw 8021q ata_generic garp mrp stp llc pata_acpi atl1c dm_multipath sunrpc

Booted on kernel-4.18.9-200.fc28.x86_64
but HDMI sound 'unconnected'

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw
In reply to [email protected]

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

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #12 from Martin Peres <[email protected]> --- -- 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/388.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel