Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bcadae84 authored by Rex Zhu's avatar Rex Zhu Committed by Alex Deucher
Browse files

drm/amd/powerplay: fix avfs state update error on polaris.

parent 88826351
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -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),
		PP_ASSERT_WITH_CODE(0 == polaris10_perform_btc(smumgr),
					"[AVFS][Polaris10_AVFSEventMgr] Failure at SmuPolaris10_PerformBTC. AVFS Disabled",
					"[AVFS][Polaris10_AVFSEventMgr] Failure at SmuPolaris10_PerformBTC. AVFS Disabled",
				 return -1);
				 return -1);

		smu_data->avfs.avfs_btc_status = AVFS_BTC_ENABLEAVFS;
		break;
		break;


	case AVFS_BTC_DISABLED:
	case AVFS_BTC_DISABLED:
	case AVFS_BTC_ENABLEAVFS:
	case AVFS_BTC_NOTSUPPORTED:
	case AVFS_BTC_NOTSUPPORTED:
		break;
		break;


	default:
	default:
		pr_info("[AVFS] Something is broken. See log!");
		pr_err("AVFS failed status is %x!\n", smu_data->avfs.avfs_btc_status);
		break;
		break;
	}
	}