Commit 5f0f1727 authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher

drm/amd/pm: drop the incomplete fix for Navi14 runpm issue

As the fix by adding PPSMC_MSG_PrepareMp1ForUnload is proved to
be incomplete. Another fix(see link below) has been sent out.
Link: https://lore.kernel.org/linux-pci/20210602021255.939090-1-evan.quan@amd.com/Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 28a0a144
...@@ -2188,10 +2188,7 @@ static int psp_load_smu_fw(struct psp_context *psp) ...@@ -2188,10 +2188,7 @@ static int psp_load_smu_fw(struct psp_context *psp)
if ((amdgpu_in_reset(adev) && if ((amdgpu_in_reset(adev) &&
ras && adev->ras_enabled && ras && adev->ras_enabled &&
(adev->asic_type == CHIP_ARCTURUS || (adev->asic_type == CHIP_ARCTURUS ||
adev->asic_type == CHIP_VEGA20)) || adev->asic_type == CHIP_VEGA20))) {
(adev->in_runpm &&
adev->asic_type >= CHIP_NAVI10 &&
adev->asic_type <= CHIP_NAVI12)) {
ret = amdgpu_dpm_set_mp1_state(adev, PP_MP1_STATE_UNLOAD); ret = amdgpu_dpm_set_mp1_state(adev, PP_MP1_STATE_UNLOAD);
if (ret) { if (ret) {
DRM_WARN("Failed to set MP1 state prepare for reload\n"); DRM_WARN("Failed to set MP1 state prepare for reload\n");
......
...@@ -468,30 +468,6 @@ static int navi10_store_powerplay_table(struct smu_context *smu) ...@@ -468,30 +468,6 @@ static int navi10_store_powerplay_table(struct smu_context *smu)
return 0; return 0;
} }
static int navi10_set_mp1_state(struct smu_context *smu,
enum pp_mp1_state mp1_state)
{
struct amdgpu_device *adev = smu->adev;
uint32_t mp1_fw_flags;
int ret = 0;
ret = smu_cmn_set_mp1_state(smu, mp1_state);
if (ret)
return ret;
if (mp1_state == PP_MP1_STATE_UNLOAD) {
mp1_fw_flags = RREG32_PCIE(MP1_Public |
(smnMP1_FIRMWARE_FLAGS & 0xffffffff));
mp1_fw_flags &= ~MP1_FIRMWARE_FLAGS__INTERRUPTS_ENABLED_MASK;
WREG32_PCIE(MP1_Public |
(smnMP1_FIRMWARE_FLAGS & 0xffffffff), mp1_fw_flags);
}
return 0;
}
static int navi10_setup_pptable(struct smu_context *smu) static int navi10_setup_pptable(struct smu_context *smu)
{ {
int ret = 0; int ret = 0;
...@@ -3146,7 +3122,7 @@ static const struct pptable_funcs navi10_ppt_funcs = { ...@@ -3146,7 +3122,7 @@ static const struct pptable_funcs navi10_ppt_funcs = {
.get_fan_parameters = navi10_get_fan_parameters, .get_fan_parameters = navi10_get_fan_parameters,
.post_init = navi10_post_smu_init, .post_init = navi10_post_smu_init,
.interrupt_work = smu_v11_0_interrupt_work, .interrupt_work = smu_v11_0_interrupt_work,
.set_mp1_state = navi10_set_mp1_state, .set_mp1_state = smu_cmn_set_mp1_state,
}; };
void navi10_set_ppt_funcs(struct smu_context *smu) void navi10_set_ppt_funcs(struct smu_context *smu)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment