aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2084-drm-amd-powerplay-change-ASIC-temperature-reading-on.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2084-drm-amd-powerplay-change-ASIC-temperature-reading-on.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2084-drm-amd-powerplay-change-ASIC-temperature-reading-on.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2084-drm-amd-powerplay-change-ASIC-temperature-reading-on.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2084-drm-amd-powerplay-change-ASIC-temperature-reading-on.patch
new file mode 100644
index 00000000..23569f7c
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2084-drm-amd-powerplay-change-ASIC-temperature-reading-on.patch
@@ -0,0 +1,33 @@
+From 9cf13ed7e6165591a39b7ec799a12f22c95ee110 Mon Sep 17 00:00:00 2001
+From: Eric Huang <JinHuiEric.Huang@amd.com>
+Date: Fri, 27 Oct 2017 15:24:38 -0400
+Subject: [PATCH 2084/4131] drm/amd/powerplay: change ASIC temperature reading
+ on Vega10
+
+ASIC temperature reading from HOTSPOT to ASIC edge which makes
+things consistent with previous asics.
+
+Signed-off-by: Eric Huang <JinHuiEric.Huang@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
+index 1feefac..dc3761b 100644
+--- a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
++++ b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_thermal.c
+@@ -365,8 +365,8 @@ int vega10_thermal_get_temperature(struct pp_hwmgr *hwmgr)
+
+ temp = cgs_read_register(hwmgr->device, reg);
+
+- temp = (temp & CG_MULT_THERMAL_STATUS__ASIC_MAX_TEMP_MASK) >>
+- CG_MULT_THERMAL_STATUS__ASIC_MAX_TEMP__SHIFT;
++ temp = (temp & CG_MULT_THERMAL_STATUS__CTF_TEMP_MASK) >>
++ CG_MULT_THERMAL_STATUS__CTF_TEMP__SHIFT;
+
+ temp = temp & 0x1ff;
+
+--
+2.7.4
+