arm: socfpga: gen5: don't zero bss in board_init_f()
Subsystems (3)
PATCH v2 1/1 arm: socfpga: gen5: don't zero bss in board_init_f()
The socfpga gen5 SPL manually zeroed bss in board_init_f(). Now that the DDR driver does not use bss any more, bss is not used before board_init_r() and we can remove this hack.
bss is normally zeroed by crt0.S, but after board_init_f(), before board_init_r(). socfpga just had this double-zeroing because it invalidly used bss in board_init_f() already (during DDR initialization).
---
Changes in v2:
- removed patch 1/2 from v1 (already applied)
- improved commit message in this patch
arch/arm/mach-socfpga/spl_gen5.c | 2 -- 1 file changed, 2 deletions(-)
arch/arm/mach-socfpga/spl_gen5.c +0 -2
@@ -79,8 +79,6 @@ void board_init_f(ulong dummy)writel (SYSMGR_ECC_OCRAM_DERR |SYSMGR_ECC_OCRAM_EN , &sysmgr_regs->eccgrp_ocram); -memset (__bss_start,0 , __bss_end - __bss_start); -socfpga_sdram_remap_zero ();socfpga_pl310_clear ();
Signature · 1 line
2.20.1
PATCH v2 1/1 arm: socfpga: gen5: don't zero bss in board_init_f()
Marek,
Am 12.07.2019 um 20:03 schrieb Simon Goldschmidt:
Quoted 9 lines
The socfpga gen5 SPL manually zeroed bss in
board_init_f(). Now that the DDR driver does not use bss any more, bss is not used beforeboard_init_r()and we can remove this hack.bss is normally zeroed by
crt0.S, but afterboard_init_f(), beforeboard_init_r(). socfpga just had this double-zeroing because it invalidly used bss inboard_init_f()already (during DDR initialization).Signed-off-by Simon Goldschmidt <[email protected]>
I just notice this seemed to have slipped through, could you please apply this one? Without it, the BSS cleanup in the gen5 DDR driver was quite useless...
Regards,
Simon
Quoted 23 lines
---
Changes in v2:
- removed patch 1/2 from v1 (already applied)
- improved commit message in this patcharch/arm/mach-socfpga/spl_gen5.c | 2 -- 1 file changed, 2 deletions(-)arch/arm/mach-socfpga/spl_gen5.c +0
-2@@ -79,8 +79,6 @@ void board_init_f(ulong dummy)writel (SYSMGR_ECC_OCRAM_DERR |SYSMGR_ECC_OCRAM_EN , &sysmgr_regs->eccgrp_ocram); -memset (__bss_start,0 , __bss_end - __bss_start); -socfpga_sdram_remap_zero ();socfpga_pl310_clear ();
Marek Vasut
AppliedPATCH v2 1/1 arm: socfpga: gen5: don't zero bss in board_init_f()
Quoted 12 lines · Simon Goldschmidt
Marek,
Am 12.07.2019 um 20:03 schrieb Simon Goldschmidt:
Quoted 9 lines
The socfpga gen5 SPL manually zeroed bss in
board_init_f(). Now that the DDR driver does not use bss any more, bss is not used beforeboard_init_r()
and we can remove this hack.bss is normally zeroed by
crt0.S, but afterboard_init_f(), beforeboard_init_r(). socfpga just had this double-zeroing because it invalidly used bss inboard_init_f()already (during DDR initialization).
Quoted 5 lines
Quoted 1 line
Signed-off-by Simon Goldschmidt <[email protected]>I just notice this seemed to have slipped through, could you please apply this one? Without it, the BSS cleanup in the gen5 DDR driver was quite useless...
Applied, thanks