open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
16 stars 39 forks source link

libpdbg: fix sbe_get_state return value #65

Closed ojayanth closed 2 years ago

ojayanth commented 2 years ago

Curently sbe_get_state api returns SBE_STATE_NOT_USABLE incase SBE booted bit is not set. This api should return the current value of SBE status register to align the BMC sbe state management design direction. Like BMC sets SBE state to SBE_STATE_CHECK_CFAM when chassis power is on and based on the sbe message register status this get updated. Here it is forcing to unusable state and it is causing issue in SBE state management.

Tested: Successfully verified in BMC Driver verification test