Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Rex Zhu and committed by
Alex Deucher
844de65e 44d09c6a

+2 -10
+2 -10
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c
··· 301 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 303 /* Check if SMU is running in protected mode */ 304 - if (smu_data->protected_mode == 0) { 304 + if (smu_data->protected_mode == 0) 305 305 result = polaris10_start_smu_in_non_protection_mode(hwmgr); 306 - } else { 306 + else 307 307 result = polaris10_start_smu_in_protection_mode(hwmgr); 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 308 317 309 if (result != 0) 318 310 PP_ASSERT_WITH_CODE(0, "Failed to load SMU ucode.", return result);