CC: [email protected] CC: Linux Memory Management List <[email protected]> TO: Evan Quan <[email protected]> CC: Alex Deucher <[email protected]> CC: Lijo Lazar <[email protected]>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 68e0667e38d92a8f461fa2e4ccf268ecf4ea1307 commit: 837d542a09cd533055423dfca7e621a9c1d13c5b [11781/12392] drm/amd/pm: relocate the power related headers :::::: branch date: 11 hours ago :::::: commit date: 3 days ago config: x86_64-randconfig-c002 (https://download.01.org/0day-ci/archive/20220117/[email protected]/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <[email protected]> Reported-by: Julia Lawall <[email protected]> cocci warnings: (new ones prefixed by >>) >> drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c:7035:2-4: WARNING: possible >> condition with no effect (if == else) vim +7035 drivers/gpu/drm/amd/pm/legacy-dpm/si_dpm.c 841686df9f7d29 drivers/gpu/drm/amd/amdgpu/si_dpm.c Maruthi Bayyavarapu 2016-08-01 7027 a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7028 static void si_set_vce_clock(struct amdgpu_device *adev, a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7029 struct amdgpu_ps *new_rps, a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7030 struct amdgpu_ps *old_rps) a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7031 { a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7032 if ((old_rps->evclk != new_rps->evclk) || a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7033 (old_rps->ecclk != new_rps->ecclk)) { a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7034 /* Turn the clocks on when encoding, off otherwise */ a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 @7035 if (new_rps->evclk || new_rps->ecclk) { a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7036 /* Place holder for future VCE1.0 porting to amdgpu a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7037 vce_v1_0_enable_mgcg(adev, false, false);*/ a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7038 } else { a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7039 /* Place holder for future VCE1.0 porting to amdgpu a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7040 vce_v1_0_enable_mgcg(adev, true, false); a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7041 amdgpu_asic_set_vce_clocks(adev, new_rps->evclk, new_rps->ecclk);*/ a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7042 } a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7043 } a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7044 } a71a4f501586c9 drivers/gpu/drm/amd/amdgpu/si_dpm.c Alex Jivin 2020-06-24 7045 :::::: The code at line 7035 was first introduced by commit :::::: a71a4f501586c9a1c710c3d5c1db4ff6650e5fc4 drm/amdgpu: SI support for UVD and VCE power managment :::::: TO: Alex Jivin <[email protected]> :::::: CC: Alex Deucher <[email protected]> --- 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]
