drm/amd/powerplay: do the comparison in the right Khz granularity
Subsystems (2)
PATCH 1/1 drm/amd/powerplay: do the comparison in the right Khz granularity
Convert the operands on the two sides into the same granularity.
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +2 -2
@@ -2742,7 +2742,7 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,for (i =0 ; i < clocks.num_levels; i++) size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, clocks.data[i].clocks_in_khz /1000 , - (clocks.data[i].clocks_in_khz == now) ?"*" :"" ); + (clocks.data[i].clocks_in_khz == now *10 ) ?"*" :"" );break ;case PP_MCLK :
@@ -2759,7 +2759,7 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,for (i =0 ; i < clocks.num_levels; i++) size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, clocks.data[i].clocks_in_khz /1000 , - (clocks.data[i].clocks_in_khz == now) ?"*" :"" ); + (clocks.data[i].clocks_in_khz == now *10 ) ?"*" :"" );break ;case PP_PCIE :
Signature · 6 lines
2.19.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Deucher, Alexander
Acked-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Evan Quan <[email protected]>
Sent: Thursday, November 1, 2018 3:16:38 AM
To: [email protected]
Cc: Quan, Evan
Subject: [PATCH] drm/amd/powerplay: do the comparison in the right Khz granularity
Convert the operands on the two sides into the same granularity.
--- drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +2 -2
@@ -2742,7 +2742,7 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,for (i =0 ; i < clocks.num_levels; i++) size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, clocks.data[i].clocks_in_khz /1000 , - (clocks.data[i].clocks_in_khz == now) ?"*" :"" ); + (clocks.data[i].clocks_in_khz == now *10 ) ?"*" :"" );break ;case PP_MCLK :
@@ -2759,7 +2759,7 @@ static int vega20_print_clock_levels(struct pp_hwmgr *hwmgr,for (i =0 ; i < clocks.num_levels; i++) size +=sprintf (buf + size,"%d: %uMhz %s\n" , i, clocks.data[i].clocks_in_khz /1000 , - (clocks.data[i].clocks_in_khz == now) ?"*" :"" ); + (clocks.data[i].clocks_in_khz == now *10 ) ?"*" :"" );break ;case PP_PCIE :
--
2.19.1
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx