[TOPIC] Add reserved memory regions and EFI memory mapping#12
Open
aswinm94 wants to merge 1 commit intoqualcomm-linux:u-boot-mainline-1.0from
Open
[TOPIC] Add reserved memory regions and EFI memory mapping#12aswinm94 wants to merge 1 commit intoqualcomm-linux:u-boot-mainline-1.0from
aswinm94 wants to merge 1 commit intoqualcomm-linux:u-boot-mainline-1.0from
Conversation
varada-qcom
reviewed
Apr 10, 2026
Comment on lines
+14
to
70
|
|
||
| reserved-memory { | ||
| #address-cells = <2>; | ||
| #size-cells = <2>; | ||
| ranges; | ||
|
|
||
| hyp_mem: hyp@80000000 { | ||
| reg = <0x0 0x80000000 0x0 0x600000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| xbl_boot_mem: xbl-boot@85d00000 { | ||
| reg = <0x0 0x85d00000 0x0 0x200000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| aop_mem: aop@85f00000 { | ||
| reg = <0x0 0x85f00000 0x0 0x20000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| xbl_dt_mem: xbl-dt@85f40000 { | ||
| reg = <0x0 0x85f40000 0x0 0x30000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| tz_stat_mem: tz-stat@86200000 { | ||
| reg = <0x0 0x86200000 0x0 0x100000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| tags_mem: tags@86300000 { | ||
| reg = <0x0 0x86300000 0x0 0x1200000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| tz_mem: tz@87500000 { | ||
| reg = <0x0 0x87500000 0x0 0x500000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| tzapps_mem: tzapps@87a00000 { | ||
| reg = <0x0 0x87a00000 0x0 0x1c00000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| pil_mem: pil@8ab00000 { | ||
| reg = <0x0 0x8ab00000 0x0 0xcc17000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| secure_dsp_mem: secure-dsp@a0000000 { | ||
| reg = <0x0 0xa0000000 0x0 0x1600000>; | ||
| no-map; | ||
| }; | ||
| }; | ||
| }; |
There was a problem hiding this comment.
Upstream won't accept this. They will ask to push this in Linux DT
There was a problem hiding this comment.
We are following up with Linux team regarding adding this to Linux DTS. Meanwhile, having this overrides in uboot dts.
Member
There was a problem hiding this comment.
Yeah we need an upstream DTS patch accompanying the U-Boot dtsi changes.
varada-qcom
reviewed
Apr 10, 2026
Comment on lines
+18
to
+43
|
|
||
| reserved-memory { | ||
| #address-cells = <2>; | ||
| #size-cells = <2>; | ||
| ranges; | ||
|
|
||
| axon_dma_mem: axon-dma@80600000 { | ||
| reg = <0x0 0x80600000 0x0 0x100000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| xbl_dt_mem: xbl-dt@80894000 { | ||
| reg = <0x0 0x80894000 0x0 0x40000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| pil_reserved_mem: pil-reserved@84300000 { | ||
| reg = <0x0 0x84300000 0x0 0x16b00000>; | ||
| no-map; | ||
| }; | ||
|
|
||
| display_mem: display@e1000000 { | ||
| reg = <0x0 0xe1000000 0x0 0x2400000>; | ||
| no-map; | ||
| }; | ||
| }; |
There was a problem hiding this comment.
We are following up with Linux team regarding adding this to Linux DTS. Meanwhile, having this overrides in uboot dts.
varada-qcom
reviewed
Apr 10, 2026
arch/arm/mach-snapdragon/board.c
Outdated
| log_debug("Reserved %s: 0x%llx-0x%llx (%llu KB)\n", | ||
| name ? name : "unknown", | ||
| (unsigned long long)addr, | ||
| (unsigned long long)(addr + size), |
b49020
reviewed
Apr 10, 2026
| * For Qualcomm platforms, this parses the reserved-memory nodes from the | ||
| * device tree and adds them to the EFI memory map. | ||
| */ | ||
| void efi_add_known_memory(void) |
Member
There was a problem hiding this comment.
Reserved memory nodes should be automatically added by the generic EFI code. Why this is Qcom specific?
Add reserved-memory nodes to QCS615 and QCS6490 device trees to define platform-specific memory regions that should not be used by the operating system. Implement efi_add_known_memory() function in board.c code to parse reserved-memory nodes from device tree and register them with the EFI memory map. This ensures proper memory protection during EFI boot and prevents conflicts with firmware-reserved regions. Signed-off-by: Balaji Selvanathan <balaji.selvanathan@oss.qualcomm.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add reserved-memory nodes to QCS615 and QCS6490 device trees to
define platform-specific memory regions that should not be used by
the operating system.
Implement efi_add_known_memory() function in board.c code to
parse reserved-memory nodes from device tree and register them with
the EFI memory map. This ensures proper memory protection during EFI
boot and prevents conflicts with firmware-reserved regions.
Note: This reserved memory region are expected to be up streamed as part of linux DTS
upstream link: https://lore.kernel.org/u-boot/20260113090621.3402096-1-balaji.selvanathan@oss.qualcomm.com/