drm/amdgpu: set default temperature range
Subsystems (2)
PATCH 1/1 drm/amdgpu: set default temperature range
Setting default values for min and maxi threshold temperatures. Hwmgr can override these values if it has necessary tables.
Reviewed-by Alex Deucher <[email protected]>
Signed-off-by Satyajit Sahu <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c | 4 ++++ drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.h | 3 +++ 2 files changed, 7 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c +4 -0
@@ -148,6 +148,10 @@ static int amdgpu_pp_hw_init(void *handle)if (adev->firmware.load_type ==AMDGPU_FW_LOAD_SMU )amdgpu_ucode_init_bo (adev); +/* Setting default min and max temperature */ + adev->pm.dpm.thermal.min_temp =MIN_TEMP ; + adev->pm.dpm.thermal.max_temp =MAX_TEMP ; +if (adev->powerplay.ip_funcs->hw_init) ret = adev->powerplay.ip_funcs->hw_init ( adev->powerplay.pp_handle);
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.h +3 -0
@@ -28,6 +28,9 @@#include "amd_shared.h" +#define MIN_TEMP 0 +#define MAX_TEMP 95 +extern const struct amdgpu_ip_block_version amdgpu_pp_ip_block;#endif /* __AMDGPU_POWERPLAY_H__ */
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx