diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2410-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2410-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2410-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2410-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch new file mode 100644 index 00000000..85279bd3 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2410-drm-amd-powerplay-update-smu11_driver_if_navi10.h.patch @@ -0,0 +1,93 @@ +From ec9c596d7dfda16c3a727c6ed46e8f29cde5c0bf Mon Sep 17 00:00:00 2001 +From: Jack Xiao <Jack.Xiao@amd.com> +Date: Tue, 28 May 2019 15:43:02 +0800 +Subject: [PATCH 2410/2940] drm/amd/powerplay: update smu11_driver_if_navi10.h + +update the smu11_driver_if_navi10.h since navi10 smu fw +update to 42.23 + +Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> +Reviewed-by: Kenneth Feng <kenneth.feng@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + .../powerplay/inc/smu11_driver_if_navi10.h | 24 +++++++++++-------- + 1 file changed, 14 insertions(+), 10 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 b3993d382ad5..a8b31bc50054 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 +@@ -26,7 +26,7 @@ + // *** IMPORTANT *** + // SMU TEAM: Always increment the interface version if + // any structure is changed in this file +-#define SMU11_DRIVER_IF_VERSION 0x2F ++#define SMU11_DRIVER_IF_VERSION 0x32 + + #define PPTABLE_NV10_SMU_VERSION 8 + +@@ -114,7 +114,7 @@ + + #define FEATURE_MMHUB_PG_BIT 40 + #define FEATURE_ATHUB_PG_BIT 41 +-#define FEATURE_SPARE_42_BIT 42 ++#define FEATURE_APCC_DFLL_BIT 42 + #define FEATURE_SPARE_43_BIT 43 + #define FEATURE_SPARE_44_BIT 44 + #define FEATURE_SPARE_45_BIT 45 +@@ -490,23 +490,26 @@ typedef struct { + uint16_t FanTargetTemperature; + + uint16_t MemoryTemperatureLimit; +- uint16_t Reserved2; ++ uint16_t MemoryTemperatureLimit1; + + uint16_t TGP; +- uint16_t Reserved3; ++ uint16_t CardPower; + + uint32_t DieTemperatureRegisterOffset; + +- uint32_t Reserved4; ++ uint32_t Reserved2; + +- uint32_t Reserved5; ++ uint32_t Reserved3; + + uint32_t Status; + + uint16_t DieTemperature; + uint16_t MemoryTemperature; + +- uint32_t MmHubPadding[8]; // SMU internal use ++ uint16_t SelectedCardPower; ++ uint16_t Reserved4; ++ ++ uint32_t BoardLevelEnergyAccumulator; + } OutOfBandMonitor_t; + + typedef struct { +@@ -794,8 +797,8 @@ typedef struct { + uint16_t BoardPadding; + + // Mvdd Svi2 Div Ratio Setting +- uint32_t MvddRatio; // This is used for MVDD Vid workaround. It has 16 fractional bits (Q16.16) +- ++ uint32_t MvddRatio; // This is used for MVDD Vid workaround. It has 16 fractional bits (Q16.16) ++ + uint32_t BoardReserved[9]; + + // Padding for MMHUB - do not modify this +@@ -865,7 +868,8 @@ typedef struct { + uint32_t ThrottlerStatus ; + + uint8_t LinkDpmLevel; +- uint8_t Padding[3]; ++ uint8_t Padding8_2; ++ uint16_t CurrFanSpeed; + + // Padding - ignore + uint32_t MmHubPadding[8]; // SMU internal use +-- +2.17.1 + |