Skip to content

hw/misc/aspeed_sbc: Fix ABR and secure boot state reporting

Kane Chen qemu-arm qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v12 patches 7 repliesSuperseded

Changes in v2 from the cover letter

- Move OTP layout definitions to aspeed_otp.h
- Add helpers for reading OTP configuration and strap settings
- Derive ABR and secure boot states using the new OTP helpers

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/nvram/aspeed_otp, hw/misc/aspeed_sbc: Consolidate OTP layout definitionshw/misc/aspeed_sbc.c include/hw/nvram/aspeed_otp.h+29 -360 replies
2/3hw/misc/aspeed_sbc: Derive ABR state from OTP config strapshw/misc/aspeed_sbc.c hw/nvram/aspeed_otp.c include/hw/misc/aspeed_sbc.h +1 more+106 -100 replies
3/3hw/misc/aspeed_sbc: Derive secure boot state from OTP confighw/misc/aspeed_sbc.c include/hw/misc/aspeed_sbc.h+13 -110 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchCédric Le Goater
SeriesR-b
1/3
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] hw/misc/aspeed_sbc: Fix ABR and secure boot state reporting

The ABR and secure boot states are currently controlled by the "emmc-abr" and "signing-settings" machine properties.

On real hardware, these states are determined by the OTP configuration and reflected in the SBC status registers. This series updates the model to derive the ABR and secure boot states from OTP instead, and removes the corresponding machine properties.

The series also consolidates the OTP layout definitions and adds helpers for reading OTP configuration and strap settings.

Any feedback or suggestions are appreciated!

Kane
---

ChangeLog
---------
v2:
- Move OTP layout definitions to aspeed_otp.h
- Add helpers for reading OTP configuration and strap settings
- Derive ABR and secure boot states using the new OTP helpers

v1:
- Initial version

---

Kane-Chen-AS (3):
hw/nvram/aspeed_otp, hw/misc/aspeed_sbc: Consolidate OTP layout
definitions
hw/misc/aspeed_sbc: Derive ABR state from OTP config straps hw/misc/aspeed_sbc: Derive secure boot state from OTP config

 include/hw/misc/aspeed_sbc.h  |  3 --
 include/hw/nvram/aspeed_otp.h | 32 ++++++++++++
 hw/misc/aspeed_sbc.c          | 97 +++++++++++++++++------------------
 hw/nvram/aspeed_otp.c         | 63 +++++++++++++++++++++++
 4 files changed, 143 insertions(+), 52 deletions(-)
Signature · 1 line
2.43.0