libfdt: A few more size improvements
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | libfdt: libfdt_internal.h correct final comment in ASSUME blocklibfdt/ | +1 | 1 reply | |
| 2/3 | libfdt: Improve size savings in FDT_RO_PROBE slightlylibfdt/ | +7 | 1 reply | |
| 3/3 | libfdt: fdt_get_name: Add can_assume(VALID_DTB) checklibfdt/ | +2 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] libfdt: A few more size improvements
Hey all,
Over on the U-Boot list we're talking about re-syncing our copy of libfdt with the Linux Kernel again (and so with upstream dtc)[1][2]. While we've worked out most of the size increase with the upgrade, there are still a few places we can do more. This series is three patches. The first patch fixes a comment from back when Simon was iterating on the whole assume framework and one spot wasn't updated. The second patch updates the FDT_RO_PROBE macro to optimize out quicker when we assume a valid DTB and the third patch brings in one more assume check that U-Boot has had for ages, but wasn't upstreamed. I did not see if there was old discussion about it, but it's something U-Boot really needs.
The end result of this series, when applied on top of [2] and some other fixes U-Boot itself needed is that our SPL size shrinks by 12 bytes on aarch64 without LTO.
I've run a meson build and test cycle in dtc and everything continues to pass. I've also thrown all of this through U-Boot and things are fine there as well.
[1]: https://lore.kernel.org/u-boot/[email protected]/
[2]: https://lore.kernel.org/u-boot/[email protected]/
Signature · 1 line
Tom