Bug 196789 - WARNING: generic_reg_update_ex+0x112/0x180 [amdgpu on Vega 10]
Summary: WARNING: generic_reg_update_ex+0x112/0x180 [amdgpu on Vega 10]
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 high
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-27 13:28 UTC by Vedran Miletić
Modified: 2017-09-01 07:41 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.13.0-rc5+ agd5f's branch amd-staging-drm-next
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Vedran Miletić 2017-08-27 13:28:28 UTC
I'm running https://cgit.freedesktop.org/~agd5f/linux/ branches amd-staging-4.12 and amd-staging-drm-next on Vega 10. I have 3 AOC DisplayPort 1080p monitors connected to Vega's 3 DisplayPorts, regular cables, nothing funky.

Upon boot, after amdgpu module loads, I get the following repeated a few times:

[  356.814324] ------------[ cut here ]------------
[  356.814346] WARNING: CPU: 0 PID: 1779 at drivers/gpu/drm/amd/amdgpu/../display/dc/dm_services.h:170 generic_reg_update_ex+0x112/0x180 [amdgpu]
[  356.814347] Modules linked in: bnep fuse xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 tun 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 libcrc32c iptable_mangle iptable_raw iptable_security ebtable_filter ebtables ip6table_filter ip6_tables sunrpc vfat fat intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel snd_hda_codec_realtek snd_hda_codec_generic kvm snd_hda_codec_hdmi snd_hda_intel snd_hda_codec irqbypass crct10dif_pclmul snd_hda_core crc32_pclmul ghash_clmulni_intel intel_cstate
[  356.814359]  snd_hwdep iTCO_wdt snd_seq iTCO_vendor_support intel_uncore ppdev mxm_wmi intel_rapl_perf snd_seq_device snd_pcm joydev hci_uart snd_timer mei_me snd pcspkr btbcm mei soundcore btqca btintel intel_pch_thermal i2c_i801 shpchp tpm_tis bluetooth tpm_tis_core tpm parport_pc ecdh_generic pinctrl_sunrisepoint wmi parport acpi_als rfkill pinctrl_intel video kfifo_buf intel_lpss_acpi industrialio intel_lpss acpi_pad binfmt_misc amdgpu i2c_algo_bit drm_kms_helper ttm drm crc32c_intel r8169 serio_raw mii i2c_hid hid_holtek_mouse
[  356.814372] CPU: 0 PID: 1779 Comm: gnome-shell Tainted: G        W       4.13.0-rc5+ #1
[  356.814372] Hardware name: MSI MS-7971/Z170-A PRO (MS-7971), BIOS 1.I0 05/02/2017
[  356.814372] task: ffff8e9fc7d84d80 task.stack: ffffab9784ca4000
[  356.814393] RIP: 0010:generic_reg_update_ex+0x112/0x180 [amdgpu]
[  356.814394] RSP: 0018:ffffab9784ca73d0 EFLAGS: 00010246
[  356.814394] RAX: 0000000000000030 RBX: 0000000000000000 RCX: 0000000000000000
[  356.814395] RDX: 0000000000000001 RSI: 0000000000003b1d RDI: ffff8e9fb6c6ad00
[  356.814395] RBP: ffffab9784ca7448 R08: 0000000000000001 R09: ffffab9784ca73f0
[  356.814396] R10: 0000000000000000 R11: 0000000000000002 R12: ffffab9784ca7478
[  356.814396] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
[  356.814397] FS:  00007fb66dfd6ac0(0000) GS:ffff8e9feec00000(0000) knlGS:0000000000000000
[  356.814397] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  356.814398] CR2: 0000005fad735608 CR3: 000000083fba5000 CR4: 00000000003406f0
[  356.814398] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[  356.814398] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[  356.814399] Call Trace:
[  356.814422]  dce110_opp_power_on_regamma_lut+0x9e/0x130 [amdgpu]
[  356.814444]  dce110_set_output_transfer_func+0x41/0x810 [amdgpu]
[  356.814457]  ? amdgpu_mm_rreg+0xad/0x110 [amdgpu]
[  356.814480]  ? dce_ipp_set_degamma+0x63/0x70 [amdgpu]
[  356.814501]  dc_update_planes_and_stream+0x73f/0xbc0 [amdgpu]
[  356.814522]  dc_commit_planes_to_stream+0x303/0x350 [amdgpu]
[  356.814546]  amdgpu_dm_atomic_commit_tail+0x684/0xa40 [amdgpu]
[  356.814547]  ? ww_mutex_unlock+0x26/0x30
[  356.814569]  ? dm_plane_helper_prepare_fb+0xd2/0x210 [amdgpu]
[  356.814573]  ? drm_atomic_helper_wait_for_dependencies+0x68/0x160 [drm_kms_helper]
[  356.814575]  commit_tail+0x3f/0x60 [drm_kms_helper]
[  356.814577]  drm_atomic_helper_commit+0x106/0x110 [drm_kms_helper]
[  356.814599]  amdgpu_dm_atomic_commit+0x90/0xa0 [amdgpu]
[  356.814606]  drm_atomic_commit+0x4b/0x50 [drm]
[  356.814609]  drm_atomic_helper_set_config+0x68/0x90 [drm_kms_helper]
[  356.814615]  __drm_mode_set_config_internal+0x65/0x110 [drm]
[  356.814619]  drm_mode_setcrtc+0x479/0x630 [drm]
[  356.814624]  ? drm_mode_getcrtc+0x180/0x180 [drm]
[  356.814628]  drm_ioctl_kernel+0x5d/0xb0 [drm]
[  356.814632]  drm_ioctl+0x31b/0x3d0 [drm]
[  356.814635]  ? drm_mode_getcrtc+0x180/0x180 [drm]
[  356.814648]  amdgpu_drm_ioctl+0x4f/0x90 [amdgpu]
[  356.814657]  do_vfs_ioctl+0xa5/0x600
[  356.814658]  SyS_ioctl+0x79/0x90
[  356.814660]  entry_SYSCALL_64_fastpath+0x1a/0xa5
[  356.814660] RIP: 0033:0x7fb66b0da317
[  356.814661] RSP: 002b:00007ffe01629138 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
[  356.814661] RAX: ffffffffffffffda RBX: 0000005fa93c5810 RCX: 00007fb66b0da317
[  356.814662] RDX: 00007ffe01629170 RSI: 00000000c06864a2 RDI: 0000000000000008
[  356.814662] RBP: 0000005fa9483400 R08: 0000000000000000 R09: 0000005fac585160
[  356.814663] R10: 0000005faa95d990 R11: 0000000000000246 R12: 0000005facb5cc50
[  356.814663] R13: 0000005fa9229cc0 R14: 0000005fa9229cc0 R15: 0000005fa9483400
[  356.814664] Code: 8b 7f 18 89 da 48 8b 07 ff 50 38 48 8b 75 a0 65 48 33 34 25 28 00 00 00 89 d8 75 31 48 83 c4 50 5b 41 5a 41 5c 41 5d 41 5e 5d c3 <0f> ff eb ae 0f ff e9 36 ff ff ff 48 c7 c2 c0 96 50 c0 48 c7 c7 
[  356.814693] ---[ end trace 05f260ee1dfd7523 ]--
Comment 1 Alex Deucher 2017-08-28 02:26:14 UTC
Fixed by this patch I think:
https://patchwork.freedesktop.org/patch/172798/
Comment 2 Vedran Miletić 2017-08-28 09:33:51 UTC
Unfortunately, doesn't seem to be the case here.
Comment 3 Vedran Miletić 2017-09-01 07:41:33 UTC
Fixed in current amd-staging-drm-next.

Note You need to log in before you can comment on or make changes to this bug.