* Set PMSTATUSLOG table bo address with SetToolsDramAddr MSG for tools.
         */
        ret = smu_set_tool_table_location(smu);
+       if (ret)
+               return ret;
 
        if (!smu_is_dpm_running(smu))
                pr_info("dpm has been disabled\n");
 
+       /*
+        * Use msg SetSystemVirtualDramAddr and DramLogSetDramAddr can notify
+        * pool location.
+        */
+       ret = smu_notify_memory_pool_location(smu);
+       if (ret)
+               return ret;
+
+       ret = smu_enable_thermal_alert(smu);
+       if (ret)
+               return ret;
+
+       ret = smu_i2c_eeprom_init(smu, &adev->pm.smu_i2c);
+       if (ret)
+               return ret;
+
        return ret;
 }
 
        if (ret)
                goto failed;
 
-       /*
-        * Use msg SetSystemVirtualDramAddr and DramLogSetDramAddr can notify
-        * pool location.
-        */
-       ret = smu_notify_memory_pool_location(smu);
-       if (ret)
-               goto failed;
-
-       ret = smu_enable_thermal_alert(smu);
-       if (ret)
-               goto failed;
-
-       ret = smu_i2c_eeprom_init(smu, &adev->pm.smu_i2c);
-       if (ret)
-               goto failed;
-
        adev->pm.dpm_enabled = true;
 
        pr_info("SMU is initialized successfully!\n");
        if (ret)
                goto failed;
 
-       ret = smu_enable_thermal_alert(smu);
-       if (ret)
-               goto failed;
-
-       ret = smu_i2c_eeprom_init(smu, &adev->pm.smu_i2c);
-       if (ret)
-               goto failed;
-
        if (smu->is_apu)
                smu_set_gfx_cgpg(&adev->smu, true);