diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0746-drm-amd-powerplay-do-the-comparison-in-the-right-Khz.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0746-drm-amd-powerplay-do-the-comparison-in-the-right-Khz.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0746-drm-amd-powerplay-do-the-comparison-in-the-right-Khz.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0746-drm-amd-powerplay-do-the-comparison-in-the-right-Khz.patch new file mode 100644 index 00000000..4b3c7d8a --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/0746-drm-amd-powerplay-do-the-comparison-in-the-right-Khz.patch @@ -0,0 +1,40 @@ +From 9fd8b4d27b7f0d58cb737b390950cf0d7437dd63 Mon Sep 17 00:00:00 2001 +From: Evan Quan <evan.quan@amd.com> +Date: Thu, 1 Nov 2018 14:55:08 +0800 +Subject: [PATCH 0746/2940] drm/amd/powerplay: do the comparison in the right + Khz granularity + +Convert the operands on the two sides into the same granularity. + +Signed-off-by: Evan Quan <evan.quan@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +index 57143d51e3ee..07a36af0f237 100644 +--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c ++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c +@@ -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.17.1 + |