U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] armv8: reduce exception handling code size
@ 2018-07-24 23:56 Andre Przywara
  2018-07-24 23:57 ` [U-Boot] [PATCH 1/2] armv8: Reduce exception handling code Andre Przywara
  2018-07-24 23:57 ` [U-Boot] [PATCH 2/2] armv8: make SPL exception vectors optional Andre Przywara
  0 siblings, 2 replies; 6+ messages in thread
From: Andre Przywara @ 2018-07-24 23:56 UTC (permalink / raw)
  To: u-boot

These two patches try to address the issue that the default ARMv8
exception vectors take up quite some code space, but don't provide much
benefit apart from a crash dump. Since the overhead might not be justified
for some very size-restricted SPLs, we try to reduce the code size:
- Patch 1/2 stuffs the shared register save/restore code into the gaps
  between the exception entries, which have to follow an architectural
  128 byte alignment requirement.
  This reduces the code size by about 250 bytes, while still having the
  full functionality.
- Patch 2/2 goes much further by introducing a Kconfig symbol allowing to
  drop the exception vector table for the SPL at all, at the expense of
  losing the crash dump feature. On the Allwinner A64 SPL this saves about
  3KB of code, which sound quite worthwhile with our chronically tight
  SPL builds.

The last feature is off by default, but could be selected manually in
menuconfig to fix too big SPL builds.

Cheers,
Andre.

Andre Przywara (2):
  armv8: Reduce exception handling code
  armv8: make SPL exception vectors optional

 arch/arm/cpu/armv8/Kconfig      |  11 ++++
 arch/arm/cpu/armv8/Makefile     |   4 ++
 arch/arm/cpu/armv8/exceptions.S | 132 +++++++++++++++++++++++++---------------
 arch/arm/cpu/armv8/start.S      |  19 ++++--
 4 files changed, 112 insertions(+), 54 deletions(-)

-- 
2.14.4

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

end of thread, other threads:[~2018-08-04 23:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-24 23:56 [U-Boot] [PATCH 0/2] armv8: reduce exception handling code size Andre Przywara
2018-07-24 23:57 ` [U-Boot] [PATCH 1/2] armv8: Reduce exception handling code Andre Przywara
2018-08-04 23:40   ` [U-Boot] [U-Boot,1/2] " Tom Rini
2018-07-24 23:57 ` [U-Boot] [PATCH 2/2] armv8: make SPL exception vectors optional Andre Przywara
2018-07-25 15:23   ` Tom Rini
2018-08-04 23:40   ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox