Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add function to find if host is transitioning to PHYP
Utilizing the xyz.openbmc_project.State.Host interface to ascertain the host's operational status becomes less accurate when transitioning from hostboot to PHYP. During the period when PHYP is initializing and not yet fully operational, the host state is erroneously presumed to be in hostboot. In situations where PHYP encounters initial boot difficulties and activates a watchdog timer, this watchdog misinterprets the issue as a problem with hostboot. To address this, there exists a core scratch register that undergoes an update by hostboot just before transferring control to PHYP. We have devised a method that leverages this register to determine whether the transition to PHYP has already occurred. By implementing this functionality, we can accurately determine whether control has transitioned to PHYP, allowing for more precise reporting of the host's state. Signed-off-by: Deepa Karthikeyan <[email protected]>
- Loading branch information