[PATCH v3 3/4] lmb: Add basic io_lmb functionality
Simon Glass
sjg at chromium.org
Mon Nov 11 14:03:23 CET 2024
Hi,
On Sun, 10 Nov 2024 at 23:56, Janne Grunau via B4 Relay
<devnull+j.jannau.net at kernel.org> wrote:
>
> From: Janne Grunau <j at jannau.net>
>
> These functions can be used with struct lmb pointers and will be used to
> manage IOVA space in the apple_dart iommu driver. This restores part of
> the pointer base struct lmb API from before commit ed17a33fed29 ("lmb:
> make LMB memory map persistent and global").
> io_lmb_add() and io_lmb_free() can trivially reuse exisiting lmb
> functions. io_lmb_setup() is separate for unique error log messages.
> io_lmb_alloc() is a simplified copy of _lmb_alloc_base() since the
> later has unused features and internal use of the global LMB memory map.
>
> Signed-off-by: Janne Grunau <j at jannau.net>
> ---
> include/lmb.h | 51 +++++++++++++++++++++++++++++++++++++
> lib/lmb.c | 80 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 131 insertions(+)
This lmb wrong-direction is really getting out of control, IMO. I hope
we can resolve this before too long.
Regards,
Simon
More information about the U-Boot
mailing list