Commit a71e06d9 authored by Alex Deucher's avatar Alex Deucher

drm/powerplay: add debugging output to processpptables.c

To help track down init errors.
Reviewed-by: default avatarTom St Denis <tom.stdenis@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 1d5498c2
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "processpptables.h" #include "processpptables.h"
#include <atom-types.h> #include <atom-types.h>
#include <atombios.h> #include <atombios.h>
#include "pp_debug.h"
#include "pptable.h" #include "pptable.h"
#include "power_state.h" #include "power_state.h"
#include "hwmgr.h" #include "hwmgr.h"
...@@ -1539,26 +1540,41 @@ static int pp_tables_initialize(struct pp_hwmgr *hwmgr) ...@@ -1539,26 +1540,41 @@ static int pp_tables_initialize(struct pp_hwmgr *hwmgr)
result = init_powerplay_tables(hwmgr, powerplay_table); result = init_powerplay_tables(hwmgr, powerplay_table);
if (0 == result) PP_ASSERT_WITH_CODE((result == 0),
"init_powerplay_tables failed", return result);
result = set_platform_caps(hwmgr, result = set_platform_caps(hwmgr,
le32_to_cpu(powerplay_table->ulPlatformCaps)); le32_to_cpu(powerplay_table->ulPlatformCaps));
if (0 == result) PP_ASSERT_WITH_CODE((result == 0),
"set_platform_caps failed", return result);
result = init_thermal_controller(hwmgr, powerplay_table); result = init_thermal_controller(hwmgr, powerplay_table);
if (0 == result) PP_ASSERT_WITH_CODE((result == 0),
"init_thermal_controller failed", return result);
result = init_overdrive_limits(hwmgr, powerplay_table); result = init_overdrive_limits(hwmgr, powerplay_table);
if (0 == result) PP_ASSERT_WITH_CODE((result == 0),
"init_overdrive_limits failed", return result);
result = init_clock_voltage_dependency(hwmgr, result = init_clock_voltage_dependency(hwmgr,
powerplay_table); powerplay_table);
if (0 == result) PP_ASSERT_WITH_CODE((result == 0),
"init_clock_voltage_dependency failed", return result);
result = init_dpm2_parameters(hwmgr, powerplay_table); result = init_dpm2_parameters(hwmgr, powerplay_table);
if (0 == result) PP_ASSERT_WITH_CODE((result == 0),
"init_dpm2_parameters failed", return result);
result = init_phase_shedding_table(hwmgr, powerplay_table); result = init_phase_shedding_table(hwmgr, powerplay_table);
PP_ASSERT_WITH_CODE((result == 0),
"init_phase_shedding_table failed", return result);
return result; return result;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment