OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] lib: sbi: Heap improvements for SMMTT
@ 2024-08-07 18:17 Gregor Haas
  2024-08-07 18:17 ` [PATCH v3 1/3] lib: sbi: Support multiple heaps Gregor Haas
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Gregor Haas @ 2024-08-07 18:17 UTC (permalink / raw)
  To: opensbi

This patch series includes two changes to the SBI heap implementation, primarily
to enable future work on the SMMTT implementation. First, it enables allocations
from multiple independent heaps on separate memory regions. Then, it adds a simple
implementation for sbi_memalign for use in allocating aligned memory.

See the individual commit messages in this series for more technical details.

v3:
- Add missing Signed-off-by lines
- Rename struct heap_control -> struct sbi_heap_control
- Make various functions static inline in sbi_heap.h
- Fix previously incorrect sbi_memalign() implementation

Gregor Haas (3):
  lib: sbi: Support multiple heaps
  lib: sbi: Allocate from beginning of heap blocks
  lib: sbi: Implement aligned memory allocators

 include/sbi/sbi_heap.h |  66 +++++++++++--
 lib/sbi/sbi_heap.c     | 204 +++++++++++++++++++++++++++++------------
 2 files changed, 204 insertions(+), 66 deletions(-)

-- 
2.45.2



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

end of thread, other threads:[~2024-08-09  3:03 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-07 18:17 [PATCH v3 0/3] lib: sbi: Heap improvements for SMMTT Gregor Haas
2024-08-07 18:17 ` [PATCH v3 1/3] lib: sbi: Support multiple heaps Gregor Haas
2024-08-08  5:34   ` Anup Patel
2024-08-07 18:17 ` [PATCH v3 2/3] lib: sbi: Allocate from beginning of heap blocks Gregor Haas
2024-08-08  5:33   ` Anup Patel
2024-08-07 18:17 ` [PATCH v3 3/3] lib: sbi: Implement aligned memory allocators Gregor Haas
2024-08-08  5:33   ` Anup Patel
2024-08-08 17:47     ` Gregor Haas
2024-08-08 17:49       ` Jessica Clarke
2024-08-09  3:03       ` Anup Patel

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