Skip to content

bloblist: Align to firmware handoff

Simon Glass u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14bloblist: Update the tag numberingcommon/bloblist.c include/bloblist.h test/bloblist.c+15 -264 replies
2/14bloblist: Adjust API to align in powers of 2arch/x86/lib/tables.c common/bloblist.c include/bloblist.h +1 more+22 -211 reply
3/14bloblist: Change the magic valueinclude/bloblist.h+1 -10 replies
4/14bloblist: Set version to 1include/bloblist.h+1 -10 replies
5/14bloblist: Access record hdr_size and tag via a functioncommon/bloblist.c+25 -130 replies
6/14bloblist: Drop the flags valuecommon/bloblist.c include/bloblist.h test/bloblist.c+23 -330 replies
7/14bloblist: Drop the spare valuescommon/bloblist.c include/bloblist.h test/bloblist.c+2 -90 replies
8/14bloblist: Change the checksum algorithmcommon/bloblist.c include/bloblist.h+10 -90 replies
9/14bloblist: Checksum the entire bloblistcommon/bloblist.c test/bloblist.c+9 -100 replies
10/14bloblist: Handle alignment with a void entrycommon/bloblist.c+19 -41 reply
11/14bloblist: Reduce blob-header sizecommon/bloblist.c include/bloblist.h test/bloblist.c+39 -271 reply
12/14bloblist: Reduce bloblist header sizeinclude/bloblist.h test/bloblist.c+16 -162 replies
13/14bloblist: Add alignment to bloblist_new()common/bloblist.c include/bloblist.h test/bloblist.c+27 -211 reply
14/14bloblist: Update documentation and header commentdoc/develop/bloblist.rst include/bloblist.h+4 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] bloblist: Align to firmware handoff

In moving from v0.8 to v0.9 the Firmware Handoff specification made some changes, including:

- Use a packed format for headers to reduce space
- Add an explicit alignment field in the header
- Renumber all the tags and reduce their size to 24 bits
- Drop use of the blob header to specify alignment, in favour of a 'void' blob type

This series attempts to align to that specification, including updating the API and tests. It is likely that refinements will be made as other projects implement the spec too.

As before the code is dual-licensed, to permit use in projects with a permissive license.

Simon Glass (14):
bloblist: Update the tag numbering
bloblist: Adjust API to align in powers of 2
bloblist: Change the magic value
bloblist: Set version to 1
bloblist: Access record hdr_size and tag via a function
bloblist: Drop the flags value
bloblist: Drop the spare values
bloblist: Change the checksum algorithm
bloblist: Checksum the entire bloblist
bloblist: Handle alignment with a void entry
bloblist: Reduce blob-header size
bloblist: Reduce bloblist header size
bloblist: Add alignment to bloblist_new()
bloblist: Update documentation and header comment

 arch/x86/lib/tables.c    |   3 +-
 common/bloblist.c        | 102 ++++++++++++++++++++-------------
 doc/develop/bloblist.rst |   4 +-
 include/bloblist.h       | 121 +++++++++++++++++++--------------------
 test/bloblist.c          |  53 +++++++++--------
 5 files changed, 152 insertions(+), 131 deletions(-)
Signature · 1 line
2.41.0.487.g6d72f3e995-goog