aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2994-drm-amd-powerplay-update-vega20-driver-if-to-fit-lat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2994-drm-amd-powerplay-update-vega20-driver-if-to-fit-lat.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2994-drm-amd-powerplay-update-vega20-driver-if-to-fit-lat.patch49
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2994-drm-amd-powerplay-update-vega20-driver-if-to-fit-lat.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2994-drm-amd-powerplay-update-vega20-driver-if-to-fit-lat.patch
new file mode 100644
index 00000000..55abc7ea
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2994-drm-amd-powerplay-update-vega20-driver-if-to-fit-lat.patch
@@ -0,0 +1,49 @@
+From 77e8ffc5dfdadcb7b59ef9677ea40808fe8105d5 Mon Sep 17 00:00:00 2001
+From: Evan Quan <evan.quan@amd.com>
+Date: Fri, 12 Jul 2019 10:53:11 +0800
+Subject: [PATCH 2994/4256] drm/amd/powerplay: update vega20 driver if to fit
+ latest SMU firmware
+
+Optimization for the socket power calculation is introduced.
+
+Change-Id: Icc8a687357ba46ae1d199d89cb2000c61b4de703
+Signed-off-by: Evan Quan <evan.quan@amd.com>
+Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
+---
+ drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
+index 195c4ae67058..755d51f9c6a9 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
+@@ -27,7 +27,7 @@
+ // *** IMPORTANT ***
+ // SMU TEAM: Always increment the interface version if
+ // any structure is changed in this file
+-#define SMU11_DRIVER_IF_VERSION 0x12
++#define SMU11_DRIVER_IF_VERSION 0x13
+
+ #define PPTABLE_V20_SMU_VERSION 3
+
+@@ -615,6 +615,7 @@ typedef struct {
+ uint16_t UclkAverageLpfTau;
+ uint16_t GfxActivityLpfTau;
+ uint16_t UclkActivityLpfTau;
++ uint16_t SocketPowerLpfTau;
+
+
+ uint32_t MmHubPadding[8];
+@@ -665,7 +666,8 @@ typedef struct {
+ uint32_t ThrottlerStatus ;
+
+ uint8_t LinkDpmLevel;
+- uint8_t Padding[3];
++ uint16_t AverageSocketPower;
++ uint8_t Padding;
+
+
+ uint32_t MmHubPadding[7];
+--
+2.17.1
+