drm/amd/powerplay: fix avfs state update error on polaris.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 15 Jun 2017 05:58:41 +0000 (13:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:14 +0000 (11:06 -0400)
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/polaris10_smumgr.c

index 9616ced..7e03470 100644 (file)
@@ -200,15 +200,16 @@ polaris10_avfs_event_mgr(struct pp_smumgr *smumgr, bool SMU_VFT_INTACT)
                PP_ASSERT_WITH_CODE(0 == polaris10_perform_btc(smumgr),
                                        "[AVFS][Polaris10_AVFSEventMgr] Failure at SmuPolaris10_PerformBTC. AVFS Disabled",
                                 return -1);
-
+               smu_data->avfs.avfs_btc_status = AVFS_BTC_ENABLEAVFS;
                break;
 
        case AVFS_BTC_DISABLED:
+       case AVFS_BTC_ENABLEAVFS:
        case AVFS_BTC_NOTSUPPORTED:
                break;
 
        default:
-               pr_info("[AVFS] Something is broken. See log!");
+               pr_err("AVFS failed status is %x!\n", smu_data->avfs.avfs_btc_status);
                break;
        }