aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0433-drm-amdgpu-vega20-make-power-profile-output-more-con.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0433-drm-amdgpu-vega20-make-power-profile-output-more-con.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0433-drm-amdgpu-vega20-make-power-profile-output-more-con.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0433-drm-amdgpu-vega20-make-power-profile-output-more-con.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0433-drm-amdgpu-vega20-make-power-profile-output-more-con.patch
new file mode 100644
index 00000000..d414f61c
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0433-drm-amdgpu-vega20-make-power-profile-output-more-con.patch
@@ -0,0 +1,35 @@
+From 50d62adacaf9c1a9ac7bae973e88777b5dbffce2 Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Wed, 26 Sep 2018 22:55:47 -0500
+Subject: [PATCH 0433/2940] drm/amdgpu/vega20: make power profile output more
+ consistent
+
+Make the profile name line match previous generations more closely.
+
+E.g.,
+0 3D_FULL_SCREEN :
+vs:
+0(3D_FULL_SCREEN )
+
+Reviewed-by: Evan Quan <evan.quan@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+index ee38ed56dd51..7884ae3b1922 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+@@ -3204,7 +3204,7 @@ static int vega20_get_power_profile_mode(struct pp_hwmgr *hwmgr, char *buf)
+ "[GetPowerProfile] Failed to get activity monitor!",
+ return result);
+
+- size += sprintf(buf + size, "%2d(%14s%s)\n",
++ size += sprintf(buf + size, "%2d %14s%s:\n",
+ i, profile_name[i], (i == hwmgr->power_profile_mode) ? "*" : " ");
+
+ size += sprintf(buf + size, "%19s %d(%13s) %7d %7d %7d %7d %7d %7d %7d %7d %7d\n",
+--
+2.17.1
+