[2/2] drm/amd/powerplay: update vega20 driver if to fit latest SMU firmware

Submitted by Kenneth Feng on July 16, 2019, 8:56 a.m.

Details

Message ID MN2PR12MB3598BA3B4A658ABEE2EFF1368ECE0@MN2PR12MB3598.namprd12.prod.outlook.com
State New
Headers show
Series "Series without cover letter" ( rev: 3 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Kenneth Feng July 16, 2019, 8:56 a.m.
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>



-----Original Message-----
From: amd-gfx [mailto:amd-gfx-bounces@lists.freedesktop.org] On Behalf Of Evan Quan

Sent: Tuesday, July 16, 2019 4:51 PM
To: amd-gfx@lists.freedesktop.org
Cc: Deucher, Alexander <Alexander.Deucher@amd.com>; Quan, Evan <Evan.Quan@amd.com>
Subject: [PATCH 2/2] drm/amd/powerplay: update vega20 driver if to fit latest SMU firmware

[CAUTION: External Email]

Optimization for the socket power calculation is introduced.

Change-Id: Icc8a687357ba46ae1d199d89cb2000c61b4de703
Signed-off-by: Evan Quan <evan.quan@amd.com>

---
 drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

   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.21.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Patch hide | download patch | download mbox

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;