CC: [email protected] BCC: [email protected] CC: [email protected] TO: Dennis Li <[email protected]> CC: Alex Deucher <[email protected]> CC: Hawking Zhang <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 23d04328444a8fa0ca060c5e532220dac8e8bc26 commit: 0e0036c7d13b945260ff1ce8377eca7ea877c008 drm/amdgpu: fix no full coverage issue for gprs initialization date: 10 months ago :::::: branch date: 28 hours ago :::::: commit date: 10 months ago compiler: s390-linux-gcc (GCC) 11.2.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> cppcheck possible warnings: (new ones prefixed by >>, may not real problems) In file included from drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu11/arcturus_ppt.c: >> drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c:1559:4: warning: Variable >> 'num_of_active_display' is modified but its new value is never used. >> [unreadVariable] num_of_active_display++; ^ >> drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c:168:9: warning: Uninitialized >> variable: clk_freq [uninitvar] return clk_freq * 100; ^ drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c:182:9: warning: Uninitialized variable: clk_freq [uninitvar] return clk_freq * 100; ^ -- In file included from drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/smu7_hwmgr.c: >> drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c:5514:12: warning: %d in >> format string (no. 1) requires 'int' but the argument type is 'unsigned >> int'. [invalidPrintfArgType_sint] size += sprintf(buf + size, "%3d %14s %s: %8d %16d %16d %16d %16d %16dn", ^ drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c:5525:12: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] size += sprintf(buf + size, "%3d %16s: %8d %16d %16d ", ^ drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c:5530:12: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] size += sprintf(buf + size, "%3d %16s: %8s %16s %16s ", ^ >> drivers/gpu/drm/amd/amdgpu/si.c:2489:7: warning: Identical inner 'if' >> condition is always true. [identicalInnerCondition] if (!disable_plloff_in_l1) { ^ drivers/gpu/drm/amd/amdgpu/si.c:2453:41: note: 'disable_l1' is assigned value 'false' here. bool disable_l0s = false, disable_l1 = false, disable_plloff_in_l1 = false; ^ drivers/gpu/drm/amd/amdgpu/si.c:2453:71: note: 'disable_plloff_in_l1' is assigned value 'false' here. bool disable_l0s = false, disable_l1 = false, disable_plloff_in_l1 = false; ^ drivers/gpu/drm/amd/amdgpu/si.c:2483:6: note: outer condition: !disable_l1 if (!disable_l1) { ^ drivers/gpu/drm/amd/amdgpu/si.c:2489:7: note: identical inner condition: !disable_plloff_in_l1 if (!disable_plloff_in_l1) { ^ vim +428 drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c 0e0036c7d13b94 Dennis Li 2021-04-27 411 0e0036c7d13b94 Dennis Li 2021-04-27 412 static void gfx_v9_4_2_log_wave_assignment(struct amdgpu_device *adev, uint32_t *wb_ptr) 0e0036c7d13b94 Dennis Li 2021-04-27 413 { 0e0036c7d13b94 Dennis Li 2021-04-27 414 uint32_t se, cu, simd, wave; 0e0036c7d13b94 Dennis Li 2021-04-27 415 uint32_t offset = 0; 0e0036c7d13b94 Dennis Li 2021-04-27 416 char *str; 0e0036c7d13b94 Dennis Li 2021-04-27 417 int size; 0e0036c7d13b94 Dennis Li 2021-04-27 418 0e0036c7d13b94 Dennis Li 2021-04-27 419 str = kmalloc(256, GFP_KERNEL); 0e0036c7d13b94 Dennis Li 2021-04-27 420 if (!str) 0e0036c7d13b94 Dennis Li 2021-04-27 421 return; 0e0036c7d13b94 Dennis Li 2021-04-27 422 0e0036c7d13b94 Dennis Li 2021-04-27 423 dev_dbg(adev->dev, "wave assignment:\n"); 0e0036c7d13b94 Dennis Li 2021-04-27 424 0e0036c7d13b94 Dennis Li 2021-04-27 425 for (se = 0; se < adev->gfx.config.max_shader_engines; se++) { 0e0036c7d13b94 Dennis Li 2021-04-27 426 for (cu = 0; cu < CU_ID_MAX; cu++) { 0e0036c7d13b94 Dennis Li 2021-04-27 427 memset(str, 0, 256); 0e0036c7d13b94 Dennis Li 2021-04-27 @428 size = sprintf(str, "SE[%02d]CU[%02d]: ", se, cu); 0e0036c7d13b94 Dennis Li 2021-04-27 429 for (simd = 0; simd < SIMD_ID_MAX; simd++) { 0e0036c7d13b94 Dennis Li 2021-04-27 430 size += sprintf(str + size, "["); 0e0036c7d13b94 Dennis Li 2021-04-27 431 for (wave = 0; wave < WAVE_ID_MAX; wave++) { 0e0036c7d13b94 Dennis Li 2021-04-27 432 size += sprintf(str + size, "%x", wb_ptr[offset]); 0e0036c7d13b94 Dennis Li 2021-04-27 433 offset++; 0e0036c7d13b94 Dennis Li 2021-04-27 434 } 0e0036c7d13b94 Dennis Li 2021-04-27 435 size += sprintf(str + size, "] "); 0e0036c7d13b94 Dennis Li 2021-04-27 436 } 0e0036c7d13b94 Dennis Li 2021-04-27 437 dev_dbg(adev->dev, "%s\n", str); 0e0036c7d13b94 Dennis Li 2021-04-27 438 } 0e0036c7d13b94 Dennis Li 2021-04-27 439 } 0e0036c7d13b94 Dennis Li 2021-04-27 440 0e0036c7d13b94 Dennis Li 2021-04-27 441 kfree(str); 0e0036c7d13b94 Dennis Li 2021-04-27 442 } 0e0036c7d13b94 Dennis Li 2021-04-27 443 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
