diff options
author | Rex Zhu <Rex.Zhu@amd.com> | 2018-03-22 22:45:00 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-04-11 14:07:47 -0400 |
commit | 844de65e9108a03f2018a6bb827cc53bfa71693b (patch) | |
tree | b3413d94585c04031cf146be8143e47fa506221a /drivers/gpu/drm/amd | |
parent | 44d09c6a577c8ed4e0ef50257487c071ae5e0fa2 (diff) |
drm/amd/pp: Remove useless fw load error handler on Polaris
Acked-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c index 997a777dd35b..fe6854eecf7b 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c | |||
@@ -301,19 +301,11 @@ static int polaris10_start_smu(struct pp_hwmgr *hwmgr) | |||
301 | smu_data->smu7_data.security_hard_key = (uint8_t) (PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, SMU_FIRMWARE, SMU_SEL)); | 301 | smu_data->smu7_data.security_hard_key = (uint8_t) (PHM_READ_VFPF_INDIRECT_FIELD(hwmgr->device, CGS_IND_REG__SMC, SMU_FIRMWARE, SMU_SEL)); |
302 | 302 | ||
303 | /* Check if SMU is running in protected mode */ | 303 | /* Check if SMU is running in protected mode */ |
304 | if (smu_data->protected_mode == 0) { | 304 | if (smu_data->protected_mode == 0) |
305 | result = polaris10_start_smu_in_non_protection_mode(hwmgr); | 305 | result = polaris10_start_smu_in_non_protection_mode(hwmgr); |
306 | } else { | 306 | else |
307 | result = polaris10_start_smu_in_protection_mode(hwmgr); | 307 | result = polaris10_start_smu_in_protection_mode(hwmgr); |
308 | 308 | ||
309 | /* If failed, try with different security Key. */ | ||
310 | if (result != 0) { | ||
311 | smu_data->smu7_data.security_hard_key ^= 1; | ||
312 | cgs_rel_firmware(hwmgr->device, CGS_UCODE_ID_SMU); | ||
313 | result = polaris10_start_smu_in_protection_mode(hwmgr); | ||
314 | } | ||
315 | } | ||
316 | |||
317 | if (result != 0) | 309 | if (result != 0) |
318 | PP_ASSERT_WITH_CODE(0, "Failed to load SMU ucode.", return result); | 310 | PP_ASSERT_WITH_CODE(0, "Failed to load SMU ucode.", return result); |
319 | 311 | ||