Re: [PATCH] drm/amd/pm: Use correct typecast

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

 



Please add a patch description. With that fixed, the patch is

Reviewed-by: Felix Kuehling <Felix.Kuehling@xxxxxxx>

Am 2021-04-26 um 9:44 a.m. schrieb Harish Kasiviswanathan:
> Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
> index 1f02e4ee2909..771e2f0acdd3 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c
> @@ -1657,8 +1657,9 @@ static ssize_t aldebaran_get_gpu_metrics(struct smu_context *smu,
>  	gpu_metrics->average_mm_activity = 0;
>  
>  	gpu_metrics->average_socket_power = metrics.AverageSocketPower;
> -	gpu_metrics->energy_accumulator = metrics.EnergyAcc64bitHigh << 32 |
> -					  metrics.EnergyAcc64bitLow;
> +	gpu_metrics->energy_accumulator =
> +			(uint64_t)metrics.EnergyAcc64bitHigh << 32 |
> +			metrics.EnergyAcc64bitLow;
>  
>  	gpu_metrics->average_gfxclk_frequency = metrics.AverageGfxclkFrequency;
>  	gpu_metrics->average_socclk_frequency = metrics.AverageSocclkFrequency;
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
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