All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size
@ 2018-05-17  8:16 Andre Przywara
  2018-05-17  8:16 ` [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning Andre Przywara
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Andre Przywara @ 2018-05-17  8:16 UTC (permalink / raw)
  To: u-boot

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

Cheers,
Andre.

Andre Przywara (3):
  sunxi: Extend SPL header versioning
  sunxi: board.c: refactor SPL header checks
  sunxi: store DRAM size in SPL header

 arch/arm/include/asm/arch-sunxi/spl.h | 22 ++++++++----
 board/sunxi/board.c                   | 66 ++++++++++++++++++++++++++++-------
 2 files changed, 70 insertions(+), 18 deletions(-)

-- 
2.14.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-10-22  9:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-17  8:16 [U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size Andre Przywara
2018-05-17  8:16 ` [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning Andre Przywara
2018-05-17 11:05   ` Siarhei Siamashka
2018-05-17 11:06     ` Icenowy Zheng
2018-05-17 11:32     ` Andre Przywara
2018-05-17  8:17 ` [U-Boot] [RFC PATCH 2/3] sunxi: board.c: refactor SPL header checks Andre Przywara
2018-05-17  8:17 ` [U-Boot] [RFC PATCH 3/3] sunxi: store DRAM size in SPL header Andre Przywara
2018-05-17  8:29 ` [U-Boot] [RFC PATCH 0/3] sunxi: extend SPL header to propagate DRAM size Maxime Ripard
2018-05-17  8:35 ` Icenowy Zheng
2018-05-17  9:00   ` Andre Przywara
2018-10-22  1:26 ` [U-Boot] [linux-sunxi] " Icenowy Zheng
2018-10-22  8:17   ` André Przywara
2018-10-22  9:42     ` Icenowy Zheng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.