]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amd/powerplay: fix issue can't load another smu firmware.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 15 Dec 2016 09:39:04 +0000 (17:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:12:55 +0000 (11:12 -0500)
need to release failed smu firmware before load another
firmware.

Signed-off-by: Rex Zhu <Rex.Zhu@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>
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c

index 8d6d9143f711068c11dbc82143616237bb61daf8..47fbc733ab55cf0d59a842bd195c4d0554bdddc9 100644 (file)
@@ -328,6 +328,7 @@ static int polaris10_start_smu(struct pp_smumgr *smumgr)
                        /* If failed, try with different security Key. */
                        if (result != 0) {
                                smu_data->smu7_data.security_hard_key ^= 1;
+                               cgs_rel_firmware(smumgr->device, CGS_UCODE_ID_SMU);
                                result = polaris10_start_smu_in_protection_mode(smumgr);
                        }
                }