Reviewed-by: Alex Deucher <alexander.deucher@xxxxxxx> On Fri, Apr 23, 2021 at 3:02 PM Harish Kasiviswanathan <Harish.Kasiviswanathan@xxxxxxx> wrote: > > Signed-off-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@xxxxxxx> > --- > drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > 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 dcbe3a72da09..1f02e4ee2909 100644 > --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c > +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c > @@ -1657,7 +1657,8 @@ 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 = 0; > + gpu_metrics->energy_accumulator = metrics.EnergyAcc64bitHigh << 32 | > + metrics.EnergyAcc64bitLow; > > gpu_metrics->average_gfxclk_frequency = metrics.AverageGfxclkFrequency; > gpu_metrics->average_socclk_frequency = metrics.AverageSocclkFrequency; > -- > 2.25.1 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/amd-gfx _______________________________________________ amd-gfx mailing list amd-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/amd-gfx