Bug 107209

Summary: DM_PPLIB causes a warning on Raven
Product: DRI Reporter: Mike Lothian <mike>
Component: DRM/AMDgpuAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium CC: mike, vono22
Version: DRI git   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Dmesg
none
dmesg none

Description Mike Lothian 2018-07-12 16:34:12 UTC
Created attachment 140610 [details]
Dmesg

Alex's drm-next-4.19-wip branch has been producing a warning with a stack trace - everything seems to be working though 

[    0.334920] amdgpu: [powerplay] dpm has been enabled
[    0.334981] [drm] DM_PPLIB: values for Invalid clock
[    0.334982] [drm] DM_PPLIB:   0 in kHz
[    0.334984] [drm] DM_PPLIB:   0 in kHz
[    0.334985] [drm] DM_PPLIB:   0 in kHz
[    0.334986] [drm] DM_PPLIB:   1067000 in kHz
[    0.334998] WARNING: CPU: 4 PID: 1 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1355 dcn_bw_update_from_pplib+0x166/0x270
[    0.335001] Modules linked in:
[    0.335005] CPU: 4 PID: 1 Comm: swapper/0 Tainted: G        W         4.18.0-rc3-agd5f+ #198
[    0.335007] Hardware name: System manufacturer System Product Name/ROG STRIX X470-I GAMING, BIOS 0601 04/19/2018
[    0.335011] RIP: 0010:dcn_bw_update_from_pplib+0x166/0x270
[    0.335012] Code: d8 ca d8 f1 d9 5a 50 8b 44 fc 14 49 8b 94 24 70 01 00 00 48 89 04 24 df 2c 24 d8 f1 db 42 78 de c9 de ca de f9 d9 5a 4c eb 02 <0f> 0b 48 89 da be 04 00 00 00 48 89 ef e8 98 89 fe ff 84 c0 0f 84
[    0.335034] RSP: 0018:ffffc900000379f8 EFLAGS: 00010246
[    0.335036] RAX: 0000000000000001 RBX: ffffc90000037a58 RCX: 0000000000000000
[    0.335038] RDX: 0000000000000000 RSI: 0000000000000004 RDI: 00000000ffffffff
[    0.335040] RBP: ffff88081b2e3bc0 R08: 0000000000000000 R09: 0000000000000296
[    0.335042] R10: ffff88081c091f00 R11: 0720072007200720 R12: ffff88081b2c2000
[    0.335044] R13: ffff88081b5f8800 R14: ffff88081b2c2000 R15: ffff88081b0e3030
[    0.335046] FS:  0000000000000000(0000) GS:ffff88083ed00000(0000) knlGS:0000000000000000
[    0.335048] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.335050] CR2: ffffc900002c0000 CR3: 000000000340a000 CR4: 00000000003406a0
[    0.335051] Call Trace:
[    0.335057]  ? construct+0x799/0x940
[    0.335059]  ? dal_aux_engine_dce110_create+0x2f/0x70
[    0.335062]  ? dal_i2caux_dce110_construct.part.1+0x5c/0x90
[    0.335064]  ? dcn10_create_resource_pool+0x31/0x50
[    0.335068]  ? dc_create_resource_pool+0x3d/0x180
[    0.335071]  ? __kmalloc+0x166/0x170
[    0.335073]  ? dc_create+0x205/0x610
[    0.335076]  ? kmem_cache_alloc+0x22/0x120
[    0.335078]  ? dm_hw_init+0xc3/0x130
[    0.335082]  ? amdgpu_device_init.cold.32+0xc9f/0xe05
[    0.335085]  ? __alloc_pages_nodemask+0xc1/0x1d0
[    0.335088]  ? amdgpu_driver_load_kms+0x5e/0x190
[    0.335091]  ? drm_dev_register+0x104/0x140
[    0.335093]  ? amdgpu_pci_probe+0x136/0x1ad
[    0.335096]  ? _raw_spin_unlock_irqrestore+0xf/0x30
[    0.335099]  ? pci_device_probe+0xd1/0x160
[    0.335102]  ? driver_probe_device+0x229/0x2f0
[    0.335104]  ? __driver_attach+0xaf/0xd0
[    0.335106]  ? driver_probe_device+0x2f0/0x2f0
[    0.335108]  ? bus_for_each_dev+0x71/0xb0
[    0.335110]  ? bus_add_driver+0x192/0x1d0
[    0.335113]  ? do_early_param+0x89/0x89
[    0.335115]  ? driver_register+0x66/0xb0
[    0.335117]  ? kfd_module_init+0x92/0x92
[    0.335120]  ? do_one_initcall+0x42/0x162
[    0.335122]  ? do_early_param+0x89/0x89
[    0.335125]  ? kernel_init_freeable+0x145/0x1cf
[    0.335127]  ? rest_init+0xb0/0xb0
[    0.335129]  ? kernel_init+0x5/0xf0
[    0.335131]  ? ret_from_fork+0x22/0x40
[    0.335133] ---[ end trace 67bfeb8027e23cf6 ]---
[    0.335135] [drm] DM_PPLIB: values for Invalid clock
[    0.335136] [drm] DM_PPLIB:   300000 in kHz
[    0.335137] [drm] DM_PPLIB:   600000 in kHz
[    0.335139] [drm] DM_PPLIB:   626000 in kHz
[    0.335140] [drm] DM_PPLIB:   654000 in kHz
Comment 1 Mike Lothian 2018-11-20 21:58:29 UTC
Created attachment 142528 [details]
dmesg
Comment 2 Mike Lothian 2018-11-20 21:58:55 UTC
It's been 4 months and I'm still getting the warning with the latest git kernel
Comment 3 vono 2019-05-27 11:00:18 UTC
Same here on Fedora 30 with kernel 5.0.17-300.fc30.x86_64

[drm] DM_PPLIB: values for Invalid clock
[drm] DM_PPLIB:         0 in kHz
[drm] DM_PPLIB:         0 in kHz
[drm] DM_PPLIB:         0 in kHz
[drm] DM_PPLIB:         1600000 in kHz
WARNING: CPU: 2 PID: 407 at drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dcn_calcs.c:1380 dcn_bw_update_from_pplib+0xa2/0x2d0 [amdgpu]
Modules linked in: amdgpu(+) chash amd_iommu_v2 gpu_sched i2c_algo_bit ttm drm_kms_helper crc32c_intel drm r8169 wmi pinctrl_amd video
CPU: 2 PID: 407 Comm: systemd-udevd Not tainted 5.0.17-300.fc30.x86_64 #1
Hardware name: Micro-Star International Co., Ltd MS-7B07/A320M PRO-VH PLUS (MS-7B07), BIOS 3.G1 05/15/2019
RIP: 0010:dcn_bw_update_from_pplib+0xa2/0x2d0 [amdgpu]
Code: 24 10 85 c9 74 24 8d 71 ff 48 8d 44 24 14 48 8d 54 f4 1c eb 0d 48 83 c0 08 48 39 c2 0f 84 2a 01 00 00 44 8b 00 45 85 c0 75 eb <0f> 0b e8 37 99 be cc 4c 89 >
RSP: 0018:ffffb8f481267760 EFLAGS: 00010246
RAX: ffffb8f481267774 RBX: ffff981f4b477000 RCX: 0000000000000004
RDX: ffffb8f481267794 RSI: 0000000000000003 RDI: 0000000000000000
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000364
R10: 00000000000117bc R11: 0000000000000003 R12: ffffb8f4812677c0
R13: ffff981f4d0f3800 R14: 0000000000000000 R15: ffff981f4b477000
FS:  00007f4900a2d940(0000) GS:ffff981f58480000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005588121a40b0 CR3: 000000018ef1e000 CR4: 00000000003406e0
Call Trace:
 dcn10_create_resource_pool+0x834/0xb30 [amdgpu]
 ? dal_aux_engine_dce110_create+0x3a/0x80 [amdgpu]
 dc_create_resource_pool+0x113/0x1b0 [amdgpu]
 ? _cond_resched+0x15/0x30
 ? __kmalloc+0x16f/0x220
 dc_create+0x233/0x640 [amdgpu]
 ? amdgpu_cgs_create_device+0x23/0x50 [amdgpu]
 dm_hw_init+0xe6/0x160 [amdgpu]
 amdgpu_device_init.cold+0x1134/0x1428 [amdgpu]
 amdgpu_driver_load_kms+0x88/0x330 [amdgpu]
 drm_dev_register+0x116/0x160 [drm]
 amdgpu_pci_probe+0xb5/0x120 [amdgpu]


From /proc/cpuinfo:
vendor_id	: AuthenticAMD
cpu family	: 23
model		: 17
model name	: AMD Ryzen 3 2200G with Radeon Vega Graphics
stepping	: 0
microcode	: 0x8101013
cpu MHz		: 1589.201
Comment 4 vono 2019-05-27 11:06:32 UTC
Seems to be same bug than 107296
Mark this one as duplicate since the other has more activities.

*** This bug has been marked as a duplicate of bug 107296 ***

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.