mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-27 16:49:22 -04:00
drm/amd/pm: Delete dummy get_dal_power_level implementations
These implementations did not actually return the DAL power level, so they were effectively a no-op. Acked-by: Christian König <christian.koenig@amd.com> Signed-off-by: Timur Kristóf <timur.kristof@gmail.com> Reviewed-by: Melissa Wen <mwen@igalia.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
f8bcc08214
commit
e181cde377
@@ -962,12 +962,6 @@ static int smu10_store_cc6_data(struct pp_hwmgr *hwmgr, uint32_t separation_time
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int smu10_get_dal_power_level(struct pp_hwmgr *hwmgr,
|
||||
struct amd_pp_simple_clock_info *info)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
static int smu10_force_clock_level(struct pp_hwmgr *hwmgr,
|
||||
enum pp_clock_type type, uint32_t mask)
|
||||
{
|
||||
@@ -1663,7 +1657,6 @@ static const struct pp_hwmgr_func smu10_hwmgr_funcs = {
|
||||
.store_cc6_data = smu10_store_cc6_data,
|
||||
.force_clock_level = smu10_force_clock_level,
|
||||
.emit_clock_levels = smu10_emit_clock_levels,
|
||||
.get_dal_power_level = smu10_get_dal_power_level,
|
||||
.get_performance_level = smu10_get_performance_level,
|
||||
.get_current_shallow_sleep_clocks = smu10_get_current_shallow_sleep_clocks,
|
||||
.get_clock_by_type_with_latency = smu10_get_clock_by_type_with_latency,
|
||||
|
||||
@@ -4386,20 +4386,6 @@ static uint32_t vega10_get_fan_control_mode(struct pp_hwmgr *hwmgr)
|
||||
return AMD_FAN_CTRL_AUTO;
|
||||
}
|
||||
|
||||
static int vega10_get_dal_power_level(struct pp_hwmgr *hwmgr,
|
||||
struct amd_pp_simple_clock_info *info)
|
||||
{
|
||||
struct phm_ppt_v2_information *table_info =
|
||||
(struct phm_ppt_v2_information *)hwmgr->pptable;
|
||||
struct phm_clock_and_voltage_limits *max_limits =
|
||||
&table_info->max_clock_voltage_on_ac;
|
||||
|
||||
info->engine_max_clock = max_limits->sclk;
|
||||
info->memory_max_clock = max_limits->mclk;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void vega10_get_sclks(struct pp_hwmgr *hwmgr,
|
||||
struct pp_clock_levels_with_latency *clocks)
|
||||
{
|
||||
@@ -5644,7 +5630,6 @@ static const struct pp_hwmgr_func vega10_hwmgr_funcs = {
|
||||
.set_fan_control_mode = vega10_set_fan_control_mode,
|
||||
.get_fan_control_mode = vega10_get_fan_control_mode,
|
||||
.read_sensor = vega10_read_sensor,
|
||||
.get_dal_power_level = vega10_get_dal_power_level,
|
||||
.get_clock_by_type_with_latency = vega10_get_clock_by_type_with_latency,
|
||||
.get_clock_by_type_with_voltage = vega10_get_clock_by_type_with_voltage,
|
||||
.set_watermarks_for_clocks_ranges = vega10_set_watermarks_for_clocks_ranges,
|
||||
|
||||
@@ -1822,21 +1822,6 @@ static uint32_t vega12_get_fan_control_mode(struct pp_hwmgr *hwmgr)
|
||||
return AMD_FAN_CTRL_AUTO;
|
||||
}
|
||||
|
||||
static int vega12_get_dal_power_level(struct pp_hwmgr *hwmgr,
|
||||
struct amd_pp_simple_clock_info *info)
|
||||
{
|
||||
#if 0
|
||||
struct phm_ppt_v2_information *table_info =
|
||||
(struct phm_ppt_v2_information *)hwmgr->pptable;
|
||||
struct phm_clock_and_voltage_limits *max_limits =
|
||||
&table_info->max_clock_voltage_on_ac;
|
||||
|
||||
info->engine_max_clock = max_limits->sclk;
|
||||
info->memory_max_clock = max_limits->mclk;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vega12_get_clock_ranges(struct pp_hwmgr *hwmgr,
|
||||
uint32_t *clock,
|
||||
PPCLK_e clock_select,
|
||||
@@ -2963,7 +2948,6 @@ static const struct pp_hwmgr_func vega12_hwmgr_funcs = {
|
||||
.set_fan_control_mode = vega12_set_fan_control_mode,
|
||||
.get_fan_control_mode = vega12_get_fan_control_mode,
|
||||
.read_sensor = vega12_read_sensor,
|
||||
.get_dal_power_level = vega12_get_dal_power_level,
|
||||
.get_clock_by_type_with_latency = vega12_get_clock_by_type_with_latency,
|
||||
.get_clock_by_type_with_voltage = vega12_get_clock_by_type_with_voltage,
|
||||
.set_watermarks_for_clocks_ranges = vega12_set_watermarks_for_clocks_ranges,
|
||||
|
||||
@@ -2796,22 +2796,6 @@ static void vega20_set_fan_control_mode(struct pp_hwmgr *hwmgr, uint32_t mode)
|
||||
}
|
||||
}
|
||||
|
||||
static int vega20_get_dal_power_level(struct pp_hwmgr *hwmgr,
|
||||
struct amd_pp_simple_clock_info *info)
|
||||
{
|
||||
#if 0
|
||||
struct phm_ppt_v2_information *table_info =
|
||||
(struct phm_ppt_v2_information *)hwmgr->pptable;
|
||||
struct phm_clock_and_voltage_limits *max_limits =
|
||||
&table_info->max_clock_voltage_on_ac;
|
||||
|
||||
info->engine_max_clock = max_limits->sclk;
|
||||
info->memory_max_clock = max_limits->mclk;
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int vega20_get_sclks(struct pp_hwmgr *hwmgr,
|
||||
struct pp_clock_levels_with_latency *clocks)
|
||||
{
|
||||
@@ -4446,7 +4430,6 @@ static const struct pp_hwmgr_func vega20_hwmgr_funcs = {
|
||||
/* export to DAL */
|
||||
.get_sclk = vega20_dpm_get_sclk,
|
||||
.get_mclk = vega20_dpm_get_mclk,
|
||||
.get_dal_power_level = vega20_get_dal_power_level,
|
||||
.get_clock_by_type_with_latency = vega20_get_clock_by_type_with_latency,
|
||||
.get_clock_by_type_with_voltage = vega20_get_clock_by_type_with_voltage,
|
||||
.set_watermarks_for_clocks_ranges = vega20_set_watermarks_for_clocks_ranges,
|
||||
|
||||
Reference in New Issue
Block a user