[PATCH v1 0/2] hw/misc/aspeed_sbc: Fix ABR and secure boot state reporting

Kane Chen posted 2 patches 3 weeks, 5 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260831053658.462203-1-kane._5Fchen@aspeedtech.com
Maintainers: "Cédric Le Goater" <clg@kaod.org>, Peter Maydell <peter.maydell@linaro.org>, Steven Lee <steven_lee@aspeedtech.com>, Troy Lee <leetroy@gmail.com>, Jamin Lin <jamin_lin@aspeedtech.com>, Kane Chen <kane_chen@aspeedtech.com>, Andrew Jeffery <andrew@codeconstruct.com.au>, Joel Stanley <joel@jms.id.au>
There is a newer version of this series
include/hw/misc/aspeed_sbc.h |  3 --
hw/misc/aspeed_sbc.c         | 69 +++++++++++++++++++++++++++++-------
2 files changed, 56 insertions(+), 16 deletions(-)
[PATCH v1 0/2] hw/misc/aspeed_sbc: Fix ABR and secure boot state reporting
Posted by Kane Chen 3 weeks, 5 days ago
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