mbox series

[v2,0/2] platform: improve heap size handle

Message ID 20240920073738.597300-1-inochiama@gmail.com
Headers show
Series platform: improve heap size handle | expand

Message

Inochi Amaoto Sept. 20, 2024, 7:37 a.m. UTC
This patch is split into two parts:

1. the first part is used to adjust the default heap size and make
it more driven by the CPU as most allocation is percpu. I think this
could reduce the further enlarge for the default heap size.

2. the second part is introduce a DT-based "heap-size", so the
platform can set the suitable heap-size. This is serve as a more
generic solution for some platform.

Changed from v1:
1. add forgot BIT_ALIGN when processing DT-based "heap-size".

Inochi Amaoto (2):
  platform: ensure enough heap size with debug triggers extension
  platform: introduce DT-based configurable heap size

 docs/opensbi_config.md      |  4 ++++
 include/sbi/sbi_platform.h  |  2 +-
 platform/generic/platform.c | 28 +++++++++++++++++++++++++---
 3 files changed, 30 insertions(+), 4 deletions(-)

--
2.46.1