<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, "EmojiFont", "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Should this be used to set the default critical temperatures? IIRC, they were set to 0 until last week when someone sent a patch to fix them.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Alex<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Evan Quan <evan.quan@amd.com><br>
<b>Sent:</b> Friday, December 29, 2017 2:44 AM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org<br>
<b>Cc:</b> Quan, Evan<br>
<b>Subject:</b> [PATCH 2/4] drm/amd/powerplay: remove unused parameter of phm_start_thermal_controller</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Change-Id: Id6039cb50b73bdf8a6df37e5383f4bea4ae737ed<br>
Signed-off-by: Evan Quan <evan.quan@amd.com><br>
---<br>
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c | 14 +++-----------<br>
drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c | 4 ++--<br>
drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h | 2 +-<br>
3 files changed, 6 insertions(+), 14 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c<br>
index 623cff9..cba0aee 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c<br>
@@ -220,20 +220,12 @@ int phm_register_thermal_interrupt(struct pp_hwmgr *hwmgr, const void *info)<br>
* Initializes the thermal controller subsystem.<br>
*<br>
* @param pHwMgr the address of the powerplay hardware manager.<br>
-* @param pTemperatureRange the address of the structure holding the temperature range.<br>
* @exception PP_Result_Failed if any of the paramters is NULL, otherwise the return value from the dispatcher.<br>
*/<br>
-int phm_start_thermal_controller(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *temperature_range)<br>
+int phm_start_thermal_controller(struct pp_hwmgr *hwmgr)<br>
{<br>
- struct PP_TemperatureRange range;<br>
-<br>
- if (temperature_range == NULL) {<br>
- range.max = TEMP_RANGE_MAX;<br>
- range.min = TEMP_RANGE_MIN;<br>
- } else {<br>
- range.max = temperature_range->max;<br>
- range.min = temperature_range->min;<br>
- }<br>
+ struct PP_TemperatureRange range = {{TEMP_RANGE_MIN, TEMP_RANGE_MAX}};<br>
+<br>
if (phm_cap_enabled(hwmgr->platform_descriptor.platformCaps,<br>
PHM_PlatformCaps_ThermalController)<br>
&& hwmgr->hwmgr_func->start_thermal_controller != NULL)<br>
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c<br>
index 08b7963..38f7d0d 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c<br>
+++ b/drivers/gpu/drm/amd/powerplay/hwmgr/hwmgr.c<br>
@@ -265,7 +265,7 @@ int hwmgr_hw_init(struct pp_instance *handle)<br>
ret = phm_enable_dynamic_state_management(hwmgr);<br>
if (ret)<br>
goto err2;<br>
- ret = phm_start_thermal_controller(hwmgr, NULL);<br>
+ ret = phm_start_thermal_controller(hwmgr);<br>
ret |= psm_set_performance_states(hwmgr);<br>
if (ret)<br>
goto err2;<br>
@@ -345,7 +345,7 @@ int hwmgr_hw_resume(struct pp_instance *handle)<br>
ret = phm_enable_dynamic_state_management(hwmgr);<br>
if (ret)<br>
return ret;<br>
- ret = phm_start_thermal_controller(hwmgr, NULL);<br>
+ ret = phm_start_thermal_controller(hwmgr);<br>
if (ret)<br>
return ret;<br>
<br>
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h<br>
index b8bd86b..7489003 100644<br>
--- a/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h<br>
+++ b/drivers/gpu/drm/amd/powerplay/inc/hardwaremanager.h<br>
@@ -407,7 +407,7 @@ extern int phm_force_dpm_levels(struct pp_hwmgr *hwmgr, enum amd_dpm_forced_leve<br>
extern int phm_display_configuration_changed(struct pp_hwmgr *hwmgr);<br>
extern int phm_notify_smc_display_config_after_ps_adjustment(struct pp_hwmgr *hwmgr);<br>
extern int phm_register_thermal_interrupt(struct pp_hwmgr *hwmgr, const void *info);<br>
-extern int phm_start_thermal_controller(struct pp_hwmgr *hwmgr, struct PP_TemperatureRange *temperature_range);<br>
+extern int phm_start_thermal_controller(struct pp_hwmgr *hwmgr);<br>
extern int phm_stop_thermal_controller(struct pp_hwmgr *hwmgr);<br>
extern bool phm_check_smc_update_required_for_display_configuration(struct pp_hwmgr *hwmgr);<br>
<br>
-- <br>
2.7.4<br>
<br>
_______________________________________________<br>
amd-gfx mailing list<br>
amd-gfx@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" id="LPlnk358679" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>