aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2306-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2306-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2306-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch63
1 files changed, 63 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2306-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2306-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch
new file mode 100644
index 00000000..5ea2b036
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2306-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch
@@ -0,0 +1,63 @@
+From 75a6bbbc4d5cd9f848f8b828f1cf963eb5835e64 Mon Sep 17 00:00:00 2001
+From: Kenneth Feng <kenneth.feng@amd.com>
+Date: Tue, 16 Apr 2019 16:33:43 +0800
+Subject: [PATCH 2306/2940] drm/amd/powerplay: update smu11_driver_if_navi10.h
+
+update the smu11_driver_if_navi10.h since navi10 smu fw
+update to 42.15.0
+
+Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
+Reviewed-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ .../amd/powerplay/inc/smu11_driver_if_navi10.h | 17 ++++++-----------
+ 1 file changed, 6 insertions(+), 11 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_navi10.h b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_navi10.h
+index 25b7c8c496f7..83ef0e26c051 100644
+--- a/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_navi10.h
++++ b/drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if_navi10.h
+@@ -4,7 +4,7 @@
+ // *** IMPORTANT ***
+ // SMU TEAM: Always increment the interface version if
+ // any structure is changed in this file
+-#define SMU11_DRIVER_IF_VERSION 0x2E
++#define SMU11_DRIVER_IF_VERSION 0x2F
+
+ #define PPTABLE_NV10_SMU_VERSION 8
+
+@@ -689,8 +689,11 @@ typedef struct {
+ // BTC Setting
+ uint32_t BtcConfig;
+
++ uint16_t SsFmin[10]; // PPtable value to function similar to VFTFmin for SS Curve; Size is PPCLK_COUNT rounded to nearest multiple of 2
++ uint16_t DcBtcGb[AVFS_VOLTAGE_COUNT];
++
+ // SECTION: Board Reserved
+- uint32_t Reserved[14];
++ uint32_t Reserved[8];
+
+ // SECTION: BOARD PARAMETERS
+ // I2C Control
+@@ -1027,17 +1030,9 @@ typedef struct {
+
+ //RLC Pace Table total number of levels
+ #define RLC_PACE_TABLE_NUM_LEVELS 16
+-#define RLC_PACE_RATIO_NUM_LEVELS 8
+-
+-typedef struct {
+- uint8_t ByteRatioLow;
+- uint8_t FlopsRatioLow;
+- uint8_t ByteRatioHigh;
+- uint8_t FlopsRatioHigh;
+-} RlcPaceFlopsPerByte_t;
+
+ typedef struct {
+- RlcPaceFlopsPerByte_t FlopsPerByteTable[RLC_PACE_RATIO_NUM_LEVELS];
++ float FlopsPerByteTable[RLC_PACE_TABLE_NUM_LEVELS];
+
+ uint32_t MmHubPadding[8]; // SMU internal use
+ } RlcPaceFlopsPerByteOverride_t;
+--
+2.17.1
+