[PATCH v3 02/15] lmb: add a flag to allow suppressing memory map change notification
Sughosh Ganu
sughosh.ganu at linaro.org
Sun Oct 13 12:55:09 CEST 2024
Add a flag LMB_NONOTIFY that can be passed to the LMB API's for
reserving memory. This will then result in no notification being sent
from the LMB module for the changes to the LMB's memory map.
Signed-off-by: Sughosh Ganu <sughosh.ganu at linaro.org>
---
Changes since V2: None
include/lmb.h | 1 +
lib/lmb.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/lmb.h b/include/lmb.h
index 0e8426f437..a76262d520 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -23,6 +23,7 @@ enum lmb_flags {
LMB_NONE = 0,
LMB_NOMAP = BIT(1),
LMB_NOOVERWRITE = BIT(2),
+ LMB_NONOTIFY = BIT(3),
};
/**
diff --git a/lib/lmb.c b/lib/lmb.c
index a38537af9c..e1e616679f 100644
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -30,7 +30,7 @@ static struct lmb lmb;
static void lmb_print_region_flags(enum lmb_flags flags)
{
u64 bitpos;
- const char *flag_str[] = { "none", "no-map", "no-overwrite" };
+ const char *flag_str[] = { "none", "no-map", "no-overwrite", "no-notify" };
do {
bitpos = flags ? fls(flags) - 1 : 0;
--
2.34.1
More information about the U-Boot
mailing list