aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4075-drm-amdgpu-powerplay-actually-return-the-power-with-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4075-drm-amdgpu-powerplay-actually-return-the-power-with-.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4075-drm-amdgpu-powerplay-actually-return-the-power-with-.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4075-drm-amdgpu-powerplay-actually-return-the-power-with-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4075-drm-amdgpu-powerplay-actually-return-the-power-with-.patch
new file mode 100644
index 00000000..e04d5956
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/4075-drm-amdgpu-powerplay-actually-return-the-power-with-.patch
@@ -0,0 +1,34 @@
+From 364495ec2c1925e769e3cb415e396b0bfbf03e8c Mon Sep 17 00:00:00 2001
+From: Alex Deucher <alexander.deucher@amd.com>
+Date: Sat, 21 Apr 2018 14:09:59 -0500
+Subject: [PATCH 4075/4131] drm/amdgpu/powerplay: actually return the power
+ with the new query
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Set query to the power value so we actually return it. Fixes
+no power value returned on asics with the new query.
+
+Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
+Reviewed-by: Rex Zhu <Rex.Zhu@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+index 4fcc4d5..31d3089 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c
+@@ -3339,6 +3339,7 @@ static int smu7_get_gpu_power(struct pp_hwmgr *hwmgr, u32 *query)
+
+ smum_send_msg_to_smc_with_parameter(hwmgr, PPSMC_MSG_GetCurrPkgPwr, 0);
+ tmp = cgs_read_register(hwmgr->device, mmSMC_MSG_ARG_0);
++ *query = tmp;
+
+ if (tmp != 0)
+ return 0;
+--
+2.7.4
+