[U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size
Maxime Ripard
maxime.ripard at bootlin.com
Thu May 17 08:29:34 UTC 2018
On Thu, May 17, 2018 at 09:16:58AM +0100, Andre Przywara wrote:
> This series tries to solve three issues we currently have on
> Allwinner boards:
> - The DRAM sizing routine can only cope with power-of-two sized DRAM.
> - The DRAM sizing routine steps through all DRAM, possibly hitting secure
> memory.
> - The SPL header versioning is quite strict and tends to break every time
> we need to update it.
>
> So I thought about introducing something along the lines of semantic
> versioning[1], where we can add backwards-compatible changes to the SPL
> header without breaking every tool. This is introduced in the first patch.
> The second patch does some refactoring, so that the third patch can use
> the newly gained freedom to store the DRAM size. The SPL knows the DRAM
> size very well, so we store this in the SPL header, so that U-Boot proper
> can pick it up from there. This saves the call to get_ram_size() with
> its deficiencies.
> More information in the respective commit messages.
>
> I understand that this versioning solution is not fully future-proof, but
> we have only one byte for the version, and I just wanted to start
> discussion on this.
> There is a corresponding patch for sunxi-tools as well I am posting shortly.
>
> [1] https://semver.org
I'm not sure I have a lot of comments to make, this looks sane to me :)
Maxime
--
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180517/5ce8e1f8/attachment.sig>
More information about the U-Boot
mailing list