summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSughosh Ganu <[email protected]>2024-08-26 17:29:19 +0530
committerTom Rini <[email protected]>2024-09-03 14:08:50 -0600
commit5e9553cc72b87e0e6b8746cbe52c9520c89fa92d (patch)
tree2d96ea42857794bf826b68f81fa2fe49c6432b8e /include
parented17a33fed296a87219b0ff702045ce488bc3771 (diff)
lmb: allow for resizing lmb regions
Allow for resizing of LMB regions if the region attributes match. The current code returns a failure status on detecting an overlapping address. This worked up until now since the LMB calls were not persistent and global -- the LMB memory map was specific and private to a given caller of the LMB API's. With the change in the LMB code to make the LMB reservations persistent, there needs to be a check on whether the memory region can be resized, and then do it if so. To distinguish between memory that cannot be resized, add a new flag, LMB_NOOVERWRITE. Reserving a region of memory with this attribute would indicate that the region cannot be resized. Signed-off-by: Sughosh Ganu <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/lmb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/lmb.h b/include/lmb.h
index 0979dcebc00..cc2c426c13b 100644
--- a/include/lmb.h
+++ b/include/lmb.h
@@ -22,6 +22,7 @@
enum lmb_flags {
LMB_NONE = 0,
LMB_NOMAP = BIT(1),
+ LMB_NOOVERWRITE = BIT(2),
};
/**