caused by
'commit 
ca82cec868d1 ("drm/amd/pp: Simplified the avfs btc state on smu7")'
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
 
 
 static int fiji_avfs_event_mgr(struct pp_hwmgr *hwmgr)
 {
+       if (!hwmgr->avfs_supported)
+               return 0;
+
        PP_ASSERT_WITH_CODE(0 == fiji_setup_graphics_level_structure(hwmgr),
                        "[AVFS][fiji_avfs_event_mgr] Could not Copy Graphics Level"
                        " table over to SMU",
 
 }
 
 
-static int
-polaris10_avfs_event_mgr(struct pp_hwmgr *hwmgr)
+static int polaris10_avfs_event_mgr(struct pp_hwmgr *hwmgr)
 {
        struct smu7_smumgr *smu_data = (struct smu7_smumgr *)(hwmgr->smu_backend);
 
+       if (!hwmgr->avfs_supported)
+               return 0;
+
        PP_ASSERT_WITH_CODE(0 == polaris10_setup_graphics_level_structure(hwmgr),
                "[AVFS][Polaris10_AVFSEventMgr] Could not Copy Graphics Level table over to SMU",
                return -EINVAL);