drm/amd/powerplay: commit get_performance_level API as DAL needed
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: commit get_performance_level API as DAL needed
This can suppress the error reported on driver loading. Also these are empty APIs as Vega12/Vega20 has no performance levels.
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 8 ++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 9 +++++++++ 2 files changed, 17 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +8 -0
@@ -2356,6 +2356,13 @@ static int vega12_gfx_off_control(struct pp_hwmgr *hwmgr, bool enable)return vega12_disable_gfx_off (hwmgr); } +static int vega12_get_performance_level (struct pp_hwmgr *hwmgr,const struct pp_hw_power_state *state, +PHM_PerformanceLevelDesignation designation,uint32_t index, +PHM_PerformanceLevel *level) +{ +return 0 ; +} +static const struct pp_hwmgr_func vega12_hwmgr_funcs = { .backend_init = vega12_hwmgr_backend_init, .backend_fini = vega12_hwmgr_backend_fini,
@@ -2406,6 +2413,7 @@ static const struct pp_hwmgr_func vega12_hwmgr_funcs = { .register_irq_handlers = smu9_register_irq_handlers, .start_thermal_controller = vega12_start_thermal_controller, .powergate_gfx = vega12_gfx_off_control, + .get_performance_level = vega12_get_performance_level, };int vega12_hwmgr_init (struct pp_hwmgr *hwmgr)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +9 -0
@@ -2041,6 +2041,13 @@ int vega20_display_clock_voltage_request(struct pp_hwmgr *hwmgr,return result; } +static int vega20_get_performance_level (struct pp_hwmgr *hwmgr,const struct pp_hw_power_state *state, +PHM_PerformanceLevelDesignation designation,uint32_t index, +PHM_PerformanceLevel *level) +{ +return 0 ; +} +static int vega20_notify_smc_display_config_after_ps_adjustment (struct pp_hwmgr *hwmgr) {
@@ -3476,6 +3483,8 @@ static const struct pp_hwmgr_func vega20_hwmgr_funcs = { vega20_set_watermarks_for_clocks_ranges, .display_clock_voltage_request = vega20_display_clock_voltage_request, + .get_performance_level = + vega20_get_performance_level,/* UMD pstate, profile related */ .force_dpm_level = vega20_dpm_force_dpm_level,
Signature · 6 lines
2.19.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Xu, Feifei
Reviewed-by Feifei Xu-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Evan Quan
Sent: Monday, October 22, 2018 3:20 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Xu, Feifei <[email protected]>; Quan, Evan <[email protected]>
Subject: [PATCH] drm/amd/powerplay: commit get_performance_level API as DAL needed
This can suppress the error reported on driver loading. Also these are empty APIs as Vega12/Vega20 has no performance levels.
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 8 ++++++++ drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 9 +++++++++ 2 files changed, 17 insertions(+)
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c +7 -0
@@ -2356,6 +2356,13 @@ static int vega12_gfx_off_control(struct pp_hwmgr *hwmgr, bool enable)return vega12_disable_gfx_off (hwmgr); } +static int vega12_get_performance_level (struct pp_hwmgr *hwmgr,const struct pp_hw_power_state *state, +PHM_PerformanceLevelDesignation designation,uint32_t index, +PHM_PerformanceLevel *level) +{ +return 0 ; +} +static const struct pp_hwmgr_func vega12_hwmgr_funcs = { .backend_init = vega12_hwmgr_backend_init, .backend_fini = vega12_hwmgr_backend_fini, @@ -2406,6 +2413,7 @@ static const struct pp_hwmgr_func vega12_hwmgr_funcs = { .register_irq_handlers = smu9_register_irq_handlers,
.start_thermal_controller = vega12_start_thermal_controller, .powergate_gfx = vega12_gfx_off_control,
+ .get_performance_level = vega12_get_performance_level,
};
int vega12_hwmgr_init(struct pp_hwmgr *hwmgr) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
index b4dbbb7c334c..894eae4b9d21 100644
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +9 -0
@@ -2041,6 +2041,13 @@ int vega20_display_clock_voltage_request(struct pp_hwmgr *hwmgr,return result; } +static int vega20_get_performance_level (struct pp_hwmgr *hwmgr,const struct pp_hw_power_state *state, +PHM_PerformanceLevelDesignation designation,uint32_t index, +PHM_PerformanceLevel *level) +{ +return 0 ; +} +static int vega20_notify_smc_display_config_after_ps_adjustment (struct pp_hwmgr *hwmgr) {
@@ -3476,6 +3483,8 @@ static const struct pp_hwmgr_func vega20_hwmgr_funcs = { vega20_set_watermarks_for_clocks_ranges, .display_clock_voltage_request = vega20_display_clock_voltage_request, + .get_performance_level = + vega20_get_performance_level,/* UMD pstate, profile related */ .force_dpm_level = vega20_dpm_force_dpm_level,
--
2.19.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx