[SOLVED] Using Device Tree To Find Reserved Memory
Posted: Wed Aug 07, 2024 10:41 am
Hello, I'm working on understanding how to correctly find reserved memory regions for a board using a device tree. I've read through the device tree specs found here (https://github.com/devicetree-org/devic ... s/tag/v0.4).
Section 3.5 discusses a /reserved-memory node and section 5.3 details the Memory Reservation Block. I've viewed both of these for a couple of different device trees. I'm confused because one of the device trees does not have any reserved memory blocks in the Memory Reservation Block. And for the device tree that does have something in the Memory Reservation Block, the reservation does not match what I see in the /reserved-memory node. I also see that nodes in the device tree have a unit-address and a reg property that describes the address range for the node.
So, I'm wondering what is the most correct and standard way to find what memory regions should not be used by my OS? My OS targets Arm64 architecture. The two boards I've looked at are the rk3588 and the pi3b. I appreciate any help/knowledge!
Section 3.5 discusses a /reserved-memory node and section 5.3 details the Memory Reservation Block. I've viewed both of these for a couple of different device trees. I'm confused because one of the device trees does not have any reserved memory blocks in the Memory Reservation Block. And for the device tree that does have something in the Memory Reservation Block, the reservation does not match what I see in the /reserved-memory node. I also see that nodes in the device tree have a unit-address and a reg property that describes the address range for the node.
So, I'm wondering what is the most correct and standard way to find what memory regions should not be used by my OS? My OS targets Arm64 architecture. The two boards I've looked at are the rk3588 and the pi3b. I appreciate any help/knowledge!