All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3]
@ 2020-01-09 17:11 Patrick Delaunay
  2020-01-09 17:11 ` [PATCH 1/3] Revert "stm32mp1: remove the imply BOOTSTAGE" Patrick Delaunay
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Patrick Delaunay @ 2020-01-09 17:11 UTC (permalink / raw)
  To: u-boot

Hi,

This serie depends on
http://patchwork.ozlabs.org/patch/1201452/
[U-Boot,v3] board_f.c: Insure gd->new_bootstage alignment reserve_sp

It should be applied only after this patch.

First I remove the stm32mp1 workaround as the issue of bootstage
alignment is solved.

The 3rd patch is a complete solution (proposed in comment 5
of previous patch http://patchwork.ozlabs.org/patch/1201452/#2327366)
  always align the reserved memory to 16 bytes with a new function
  reserve_sp()

This patch causes an issue on ARM 32 bits, as relocated gd pointer
is not initialized with gd->new_gd as expected in reserve_global_data()
but is hardcoded with
relocated gd = gd->bd - GD_SIZE {GD_SIZE = sizeof(struct global_data)}

This issue is solved with the second patch of the serie
  arm: set the relocated gd with gd->new_gd

Only tested on STM32MP157C-EV1 board.



Patrick Delaunay (3):
  Revert "stm32mp1: remove the imply BOOTSTAGE"
  arm: set the relocated gd with gd->new_gd
  board_f.c: Insure 16 alignment of start_addr_sp and reserved memory

 arch/arm/lib/crt0.S           |  3 +--
 arch/arm/mach-stm32mp/Kconfig |  2 ++
 common/board_f.c              | 32 ++++++++++++++++++--------------
 3 files changed, 21 insertions(+), 16 deletions(-)

-- 
2.17.1

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

end of thread, other threads:[~2020-01-30  2:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-09 17:11 [PATCH 0/3] Patrick Delaunay
2020-01-09 17:11 ` [PATCH 1/3] Revert "stm32mp1: remove the imply BOOTSTAGE" Patrick Delaunay
2020-01-30  2:17   ` Simon Glass
2020-01-09 17:11 ` [PATCH 2/3] arm: set the relocated gd with gd->new_gd Patrick Delaunay
2020-01-30  2:17   ` Simon Glass
2020-01-09 17:11 ` [PATCH 3/3] board_f.c: Insure 16 alignment of start_addr_sp and reserved memory Patrick Delaunay
2020-01-09 17:55   ` Heinrich Schuchardt
2020-01-10  8:47     ` Patrick DELAUNAY

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.