The ASPEED Secure Boot Controller (SBC) model currently derives its
eMMC ABR (Alternate Boot Recovery) and secure boot enable bits from
fixed "emmc-abr"/"signing-settings" machine properties. The logic
that reflects these properties into R_STATUS is broken, so neither
bit can ever actually be reported as enabled, and for secure boot
this also leaves R_STATUS and R_QSR inconsistent with each other.

This series replaces both properties with logic that derives the ABR
and secure boot state directly from the relevant OTP configuration
straps, matching how the real hardware determines these settings.

Any feedback or suggestions are appreciated!

Kane-Chen-AS (2):
  hw/misc/aspeed_sbc: Derive ABR state from OTP config straps
  hw/misc/aspeed_sbc: Derive secure boot state from OTP config straps

 include/hw/misc/aspeed_sbc.h |  3 --
 hw/misc/aspeed_sbc.c         | 69 +++++++++++++++++++++++++++++-------
 2 files changed, 56 insertions(+), 16 deletions(-)

-- 
2.43.0

Reply via email to