diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1383-drm-amd-powerplay-add-enum-smu_msg_type-to-header.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/1383-drm-amd-powerplay-add-enum-smu_msg_type-to-header.patch | 118 |
1 files changed, 118 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1383-drm-amd-powerplay-add-enum-smu_msg_type-to-header.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1383-drm-amd-powerplay-add-enum-smu_msg_type-to-header.patch new file mode 100644 index 00000000..4fb0c8a6 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1383-drm-amd-powerplay-add-enum-smu_msg_type-to-header.patch @@ -0,0 +1,118 @@ +From 436bba6734f52a90f5905a149695d3cb82bd3392 Mon Sep 17 00:00:00 2001 +From: Kevin Wang <Kevin1.Wang@amd.com> +Date: Wed, 19 Dec 2018 15:12:10 +0800 +Subject: [PATCH 1383/2940] drm/amd/powerplay: add enum smu_msg_type to header + +each asic with different message index, +add this header to help top level smu code to send message. + +Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com> +Reviewed-by: Huang Rui <ray.huang@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +--- + .../gpu/drm/amd/powerplay/inc/amdgpu_smu.h | 89 +++++++++++++++++++ + 1 file changed, 89 insertions(+) + +diff --git a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h +index a034a15cdbce..b3637411aa12 100644 +--- a/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ++++ b/drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h +@@ -24,6 +24,95 @@ + + #include "amdgpu.h" + ++enum smu_message_type ++{ ++ SMU_MSG_TestMessage = 0, ++ SMU_MSG_GetSmuVersion, ++ SMU_MSG_GetDriverIfVersion, ++ SMU_MSG_SetAllowedFeaturesMaskLow, ++ SMU_MSG_SetAllowedFeaturesMaskHigh, ++ SMU_MSG_EnableAllSmuFeatures, ++ SMU_MSG_DisableAllSmuFeatures, ++ SMU_MSG_EnableSmuFeaturesLow, ++ SMU_MSG_EnableSmuFeaturesHigh, ++ SMU_MSG_DisableSmuFeaturesLow, ++ SMU_MSG_DisableSmuFeaturesHigh, ++ SMU_MSG_GetEnabledSmuFeaturesLow, ++ SMU_MSG_GetEnabledSmuFeaturesHigh, ++ SMU_MSG_SetWorkloadMask, ++ SMU_MSG_SetPptLimit, ++ SMU_MSG_SetDriverDramAddrHigh, ++ SMU_MSG_SetDriverDramAddrLow, ++ SMU_MSG_SetToolsDramAddrHigh, ++ SMU_MSG_SetToolsDramAddrLow, ++ SMU_MSG_TransferTableSmu2Dram, ++ SMU_MSG_TransferTableDram2Smu, ++ SMU_MSG_UseDefaultPPTable, ++ SMU_MSG_UseBackupPPTable, ++ SMU_MSG_RunBtc, ++ SMU_MSG_RequestI2CBus, ++ SMU_MSG_ReleaseI2CBus, ++ SMU_MSG_SetFloorSocVoltage, ++ SMU_MSG_SoftReset, ++ SMU_MSG_StartBacoMonitor, ++ SMU_MSG_CancelBacoMonitor, ++ SMU_MSG_EnterBaco, ++ SMU_MSG_SetSoftMinByFreq, ++ SMU_MSG_SetSoftMaxByFreq, ++ SMU_MSG_SetHardMinByFreq, ++ SMU_MSG_SetHardMaxByFreq, ++ SMU_MSG_GetMinDpmFreq, ++ SMU_MSG_GetMaxDpmFreq, ++ SMU_MSG_GetDpmFreqByIndex, ++ SMU_MSG_GetDpmClockFreq, ++ SMU_MSG_GetSsVoltageByDpm, ++ SMU_MSG_SetMemoryChannelConfig, ++ SMU_MSG_SetGeminiMode, ++ SMU_MSG_SetGeminiApertureHigh, ++ SMU_MSG_SetGeminiApertureLow, ++ SMU_MSG_SetMinLinkDpmByIndex, ++ SMU_MSG_OverridePcieParameters, ++ SMU_MSG_OverDriveSetPercentage, ++ SMU_MSG_SetMinDeepSleepDcefclk, ++ SMU_MSG_ReenableAcDcInterrupt, ++ SMU_MSG_NotifyPowerSource, ++ SMU_MSG_SetUclkFastSwitch, ++ SMU_MSG_SetUclkDownHyst, ++ SMU_MSG_GfxDeviceDriverReset, ++ SMU_MSG_GetCurrentRpm, ++ SMU_MSG_SetVideoFps, ++ SMU_MSG_SetTjMax, ++ SMU_MSG_SetFanTemperatureTarget, ++ SMU_MSG_PrepareMp1ForUnload, ++ SMU_MSG_DramLogSetDramAddrHigh, ++ SMU_MSG_DramLogSetDramAddrLow, ++ SMU_MSG_DramLogSetDramSize, ++ SMU_MSG_SetFanMaxRpm, ++ SMU_MSG_SetFanMinPwm, ++ SMU_MSG_ConfigureGfxDidt, ++ SMU_MSG_NumOfDisplays, ++ SMU_MSG_RemoveMargins, ++ SMU_MSG_ReadSerialNumTop32, ++ SMU_MSG_ReadSerialNumBottom32, ++ SMU_MSG_SetSystemVirtualDramAddrHigh, ++ SMU_MSG_SetSystemVirtualDramAddrLow, ++ SMU_MSG_WaflTest, ++ SMU_MSG_SetFclkGfxClkRatio, ++ SMU_MSG_AllowGfxOff, ++ SMU_MSG_DisallowGfxOff, ++ SMU_MSG_GetPptLimit, ++ SMU_MSG_GetDcModeMaxDpmFreq, ++ SMU_MSG_GetDebugData, ++ SMU_MSG_SetXgmiMode, ++ SMU_MSG_RunAfllBtc, ++ SMU_MSG_ExitBaco, ++ SMU_MSG_PrepareMp1ForReset, ++ SMU_MSG_PrepareMp1ForShutdown, ++ SMU_MSG_SetMGpuFanBoostLimitRpm, ++ SMU_MSG_GetAVFSVoltageByDpm, ++ SMU_MSG_MAX_COUNT, ++}; ++ + enum smu_memory_pool_size + { + SMU_MEMORY_POOL_SIZE_ZERO = 0, +-- +2.17.1 + |