[PATCH] drm/amd/powerplay: get the temperature on CZ

Deucher, Alexander Alexander.Deucher at amd.com
Fri Oct 6 12:56:52 UTC 2017


> -----Original Message-----
> From: Sahu, Satyajit
> Sent: Friday, October 06, 2017 2:28 AM
> To: amd-gfx at lists.freedesktop.org
> Cc: Deucher, Alexander; brahma_sw_dev
> Subject: [PATCH] drm/amd/powerplay: get the temperature on CZ
> 
> From: Satyajit Sahu <satyajit.sahu at amd.com>
> 
> Setting the function pointer to the get the temperature on CZ.
> 
> Change-Id: I1f368649a68669f3aa6988ce496b6c9a90916355
> Signed-off-by: Satyajit Sahu <satyajit.sahu at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> index 7f3b24f..6b83724 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
> @@ -1959,6 +1959,7 @@ static int cz_read_sensor(struct pp_hwmgr
> *hwmgr, int idx,
>  	.get_current_shallow_sleep_clocks =
> cz_get_current_shallow_sleep_clocks,
>  	.get_clock_by_type = cz_get_clock_by_type,
>  	.get_max_high_clocks = cz_get_max_high_clocks,
> +	.get_temperature = cz_thermal_get_temperature,
>  	.read_sensor = cz_read_sensor,
>  };
> 
> --
> 1.9.1



More information about the amd-gfx mailing list