drm/amd/pm: add smu_v13_0_5_ppt implementation
this patch adds smu_v13_0_5_ppt implementation. Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
cec24112e1
commit
068ea8bdc0
8 changed files with 1183 additions and 1 deletions
|
|
@ -1335,6 +1335,7 @@ static int amdgpu_discovery_set_smu_ip_blocks(struct amdgpu_device *adev)
|
|||
case IP_VERSION(13, 0, 1):
|
||||
case IP_VERSION(13, 0, 2):
|
||||
case IP_VERSION(13, 0, 3):
|
||||
case IP_VERSION(13, 0, 5):
|
||||
case IP_VERSION(13, 0, 8):
|
||||
amdgpu_device_ip_block_add(adev, &smu_v13_0_ip_block);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -37,6 +37,7 @@
|
|||
#include "aldebaran_ppt.h"
|
||||
#include "yellow_carp_ppt.h"
|
||||
#include "cyan_skillfish_ppt.h"
|
||||
#include "smu_v13_0_5_ppt.h"
|
||||
#include "amd_pcie.h"
|
||||
|
||||
/*
|
||||
|
|
@ -535,6 +536,9 @@ static int smu_set_funcs(struct amdgpu_device *adev)
|
|||
case IP_VERSION(13, 0, 8):
|
||||
yellow_carp_set_ppt_funcs(smu);
|
||||
break;
|
||||
case IP_VERSION(13, 0, 5):
|
||||
smu_v13_0_5_set_ppt_funcs(smu);
|
||||
break;
|
||||
case IP_VERSION(11, 0, 8):
|
||||
cyan_skillfish_set_ppt_funcs(smu);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@
|
|||
__SMU_DUMMY_MAP(PowerUpCvip), \
|
||||
__SMU_DUMMY_MAP(PowerDownCvip), \
|
||||
__SMU_DUMMY_MAP(EnableGfxOff), \
|
||||
__SMU_DUMMY_MAP(DisableGfxOff), \
|
||||
__SMU_DUMMY_MAP(SetSoftMinGfxclk), \
|
||||
__SMU_DUMMY_MAP(SetSoftMinFclk), \
|
||||
__SMU_DUMMY_MAP(GetThermalLimit), \
|
||||
|
|
@ -229,6 +230,7 @@
|
|||
__SMU_DUMMY_MAP(BoardPowerCalibration), \
|
||||
__SMU_DUMMY_MAP(RequestGfxclk), \
|
||||
__SMU_DUMMY_MAP(ForceGfxVid), \
|
||||
__SMU_DUMMY_MAP(Spare0), \
|
||||
__SMU_DUMMY_MAP(UnforceGfxVid), \
|
||||
__SMU_DUMMY_MAP(HeavySBR),
|
||||
|
||||
|
|
@ -362,6 +364,7 @@ enum smu_clk_type {
|
|||
__SMU_DUMMY_MAP(SMUIO_CG), \
|
||||
__SMU_DUMMY_MAP(THM_CG), \
|
||||
__SMU_DUMMY_MAP(CLK_CG), \
|
||||
__SMU_DUMMY_MAP(DATA_CALCULATION), \
|
||||
|
||||
#undef __SMU_DUMMY_MAP
|
||||
#define __SMU_DUMMY_MAP(feature) SMU_FEATURE_##feature##_BIT
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#define SMU13_DRIVER_IF_VERSION_ALDE 0x08
|
||||
|
||||
#define SMU13_MODE1_RESET_WAIT_TIME_IN_MS 500 //500ms
|
||||
#define SMU13_DRIVER_IF_VERSION_SMU_V13_0_5 0x04
|
||||
|
||||
/* MP Apertures */
|
||||
#define MP0_Public 0x03800000
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
# Makefile for the 'smu manager' sub-component of powerplay.
|
||||
# It provides the smu management services for the driver.
|
||||
|
||||
SMU13_MGR = smu_v13_0.o aldebaran_ppt.o yellow_carp_ppt.o
|
||||
SMU13_MGR = smu_v13_0.o aldebaran_ppt.o yellow_carp_ppt.o smu_v13_0_5_ppt.o
|
||||
|
||||
AMD_SWSMU_SMU13MGR = $(addprefix $(AMD_SWSMU_PATH)/smu13/,$(SMU13_MGR))
|
||||
|
||||
|
|
|
|||
|
|
@ -221,6 +221,9 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
|
|||
case IP_VERSION(13, 0, 8):
|
||||
smu->smc_driver_if_version = SMU13_DRIVER_IF_VERSION_YELLOW_CARP;
|
||||
break;
|
||||
case IP_VERSION(13, 0, 5):
|
||||
smu->smc_driver_if_version = SMU13_DRIVER_IF_VERSION_SMU_V13_0_5;
|
||||
break;
|
||||
default:
|
||||
dev_err(adev->dev, "smu unsupported IP version: 0x%x.\n",
|
||||
adev->ip_versions[MP1_HWIP][0]);
|
||||
|
|
|
|||
1142
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
Normal file
1142
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.c
Normal file
File diff suppressed because it is too large
Load diff
28
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.h
Normal file
28
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_5_ppt.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Copyright 2020 Advanced Micro Devices, Inc.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
* to deal in the Software without restriction, including without limitation
|
||||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
* and/or sell copies of the Software, and to permit persons to whom the
|
||||
* Software is furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
|
||||
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
|
||||
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||||
* OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
*/
|
||||
#ifndef __SMU_V13_0_5_PPT_H__
|
||||
#define __SMU_V13_0_5_PPT_H__
|
||||
|
||||
extern void smu_v13_0_5_set_ppt_funcs(struct smu_context *smu);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue