linux_dsm_epyc7002/drivers/gpu/drm/amd/powerplay/hwmgr
Colin Ian King c4ff91dd40 drm/amd/pp: initialize result to before or'ing in data
The current use of result is or'ing in values and checking for
a non-zero result, however, result is not initialized to zero
so it potentially contains garbage to start with. Fix this by
initializing it to the first return from the call to
vega10_program_didt_config_registers.

Detected by cppcheck:
"(error) Uninitialized variable: result"

Fixes: 9b7b8154cd ("drm/amd/powerplay: added didt support for vega10")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Huang Rui <ray.huang@amd.com>
[Fix the subject as Colin's comment]
Signed-off-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
2018-06-13 13:45:22 -05:00
..
hardwaremanager.c drm/amd/powerplay: add a framework for perfroming pre display 2018-05-17 08:54:23 -05:00
hwmgr_ppt.h drm/amd/powerplay: add some new structures for Vega10 2017-03-29 23:54:52 -04:00
hwmgr.c drm/amdgpu/powerplay: Add initial vega20 support v2 2018-05-17 10:13:11 -05:00
Makefile drm/amd/pp: Remove Dead functions on Vega12 2018-04-03 12:52:57 -05:00
pp_overdriver.c drm/amdgpu: add license to files where it was missing 2017-12-07 11:51:25 -05:00
pp_overdriver.h drm/amd/powerplay: Fix missing newlines at end of file 2017-12-06 12:47:59 -05:00
pp_psm.c drm/amd/powerplay: fix wrong clock adjust sequence 2018-06-13 13:45:22 -05:00
pp_psm.h drm/amd/powerplay: Fix psm_set_user_performance_state() 2017-09-12 14:23:18 -04:00
ppatomctrl.c drm/amd/pp: Fix static checker warning 2018-05-24 00:15:13 -05:00
ppatomctrl.h drm/amd/powerplay: update ppatomctrl.c (v2) 2018-05-15 13:44:03 -05:00
ppatomfwctrl.c drm/amd/powerplay: bug fixs for getsmuclockinfo 2018-05-30 12:35:34 -05:00
ppatomfwctrl.h drm/amd/pp: Refine pp_atomfwctrl_get_vbios_bootup_values 2018-05-15 13:43:03 -05:00
ppevvmath.h drm/amd/powerplay: Delete unused functions in ppevvmath.h 2016-07-29 14:36:56 -04:00
pppcielanes.c drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
pppcielanes.h drm/amd/powerplay: add Tonga dpm support (v3) 2015-12-21 16:42:15 -05:00
pptable_v1_0.h drm/amd/powerplay: rename tonga_processpptable* to processpptable_v1_0*. 2016-09-16 15:52:49 -04:00
process_pptables_v1_0.c drm/amd/pp: Allow underclocking when od table is empty in vbios 2018-05-31 14:07:46 -05:00
process_pptables_v1_0.h drm/amd/powerplay: rename tonga_processpptable* to processpptable_v1_0*. 2016-09-16 15:52:49 -04:00
processpptables.c drm/amd/pp: Allow underclocking when od table is empty in vbios 2018-05-31 14:07:46 -05:00
processpptables.h drm/amd/powerplay: add pp_tables_get_response_times function in process pptables 2016-07-15 12:34:03 -04:00
smu7_clockpowergating.c drm/amdgpu: remove duplicate cg/pg wrapper functions 2018-04-11 13:07:53 -05:00
smu7_clockpowergating.h drm/amd/pp: Remove dead header file pp_asicblocks.h 2018-03-15 09:58:16 -05:00
smu7_dyn_defaults.h drm/amd/pp: Change activity_target for performance optimization on Polaris 2018-02-19 14:18:46 -05:00
smu7_hwmgr.c drm/amd/pp: Allow underclocking when od table is empty in vbios 2018-05-31 14:07:46 -05:00
smu7_hwmgr.h drm/amd/pp: Refine the output of pp_power_profile_mode on VI 2018-05-15 13:44:21 -05:00
smu7_powertune.c drm/amd/pp: fix a couple locking issues 2018-05-24 00:15:37 -05:00
smu7_powertune.h drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7. 2016-09-19 13:22:10 -04:00
smu7_thermal.c drm/amd/pp: Fix set wrong temperature range on smu7 2018-03-22 14:43:01 -05:00
smu7_thermal.h drm/amd/powerplay: refine code for thermal control in powerplay 2017-09-18 23:30:31 -04:00
smu8_hwmgr.c drm/amdgpu: remove duplicate cg/pg wrapper functions 2018-04-11 13:07:53 -05:00
smu8_hwmgr.h drm/amd/pp: Rename file name cz_* to smu8_* 2018-03-15 09:58:56 -05:00
smu10_hwmgr.c drm/amdgpu: fix CG enabling hang with gfxoff enabled 2018-06-13 13:45:21 -05:00
smu10_hwmgr.h drm/amd/pp: Use dynamic gfx_clk rather than hardcoded values 2018-05-15 13:43:47 -05:00
smu10_inc.h drm/amd/pp: Replace rv_* with smu10_* 2018-03-15 09:57:12 -05:00
smu_helper.c drm/amd/pp: Fix NULL point check error in smu_set_watermarks_for_clocks_ranges 2018-05-15 13:43:33 -05:00
smu_helper.h drm/amd/pp: Move common code to smu_helper.c 2018-05-15 13:43:19 -05:00
vega10_hwmgr.c drm/amd/pp: Allow underclocking when od table is empty in vbios 2018-05-31 14:07:46 -05:00
vega10_hwmgr.h drm/amd/pp: Add OVERDRIVE support on Vega10 (v2) 2018-05-15 13:43:52 -05:00
vega10_inc.h drm/amd/include:cleanup vega10 nbio header files. 2017-12-06 12:48:21 -05:00
vega10_powertune.c drm/amd/pp: initialize result to before or'ing in data 2018-06-13 13:45:22 -05:00
vega10_powertune.h drm/amd/powerplay: added didt support for vega10 2017-07-14 11:06:26 -04:00
vega10_pptable.h drm/amd/powerplay: add support for ATOM GFXCLK table v2. 2017-06-29 12:43:44 -04:00
vega10_processpptables.c drm/amd/pp: Allow underclocking when od table is empty in vbios 2018-05-31 14:07:46 -05:00
vega10_processpptables.h drm/amd/powerplay: port newest process pptable code for vega10. 2017-04-07 15:15:43 -04:00
vega10_thermal.c drm/amd/pp: use soc15 common macros instead of vega10 specific 2018-05-15 13:43:04 -05:00
vega10_thermal.h drm/amd/pp: Delete get_xclk function in powerplay (v2) 2018-03-19 13:38:31 -05:00
vega12_hwmgr.c drm/amd/pp: Remove struct pp_gpu_power 2018-05-15 13:43:18 -05:00
vega12_hwmgr.h drm/amd/powerplay: Get more than 8 level gfxclk states 2018-05-15 13:43:09 -05:00
vega12_inc.h drm/amd/powerplay: add vega12_inc.h 2018-03-21 14:36:53 -05:00
vega12_pptable.h drm/amd/powerplay: add vega12_pptable.h 2018-03-21 14:36:55 -05:00
vega12_processpptables.c drm/amd/powerplay: add registry key to disable ACG 2018-05-15 13:43:35 -05:00
vega12_processpptables.h drm/amd/powerplay: add the hw manager for vega12 (v4) 2018-03-21 14:36:56 -05:00
vega12_thermal.c drm/amd/pp: use soc15 common macros instead of vega10 specific 2018-05-15 13:43:04 -05:00
vega12_thermal.h drm/amd/powerplay: add the hw manager for vega12 (v4) 2018-03-21 14:36:56 -05:00