[PATCH] drm/amd/powerplay: change ASIC temperature reading on Vega10

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf
> Of Eric Huang
> Sent: Friday, October 27, 2017 3:31 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Huang, JinHuiEric
> Subject: [PATCH] drm/amd/powerplay: change ASIC temperature reading on
> Vega10
> 
> ASIC temperature reading from HOTSPOT to ASIC edge.
> 
> Signed-off-by: Eric Huang <JinHuiEric.Huang at amd.com>

Maybe add to the commit message that this makes things consistent with previous asics.

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

> ---
>  drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> index 1feefac..dc3761b 100644
> --- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
> @@ -365,8 +365,8 @@ int vega10_thermal_get_temperature(struct
> pp_hwmgr *hwmgr)
> 
>  	temp = cgs_read_register(hwmgr->device, reg);
> 
> -	temp = (temp &
> CG_MULT_THERMAL_STATUS__ASIC_MAX_TEMP_MASK) >>
> -
> 	CG_MULT_THERMAL_STATUS__ASIC_MAX_TEMP__SHIFT;
> +	temp = (temp & CG_MULT_THERMAL_STATUS__CTF_TEMP_MASK)
> >>
> +			CG_MULT_THERMAL_STATUS__CTF_TEMP__SHIFT;
> 
>  	temp = temp & 0x1ff;
> 
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux