On Tue, 17 May 2022 at 16:34, Rob Herring <robh@xxxxxxxxxx> wrote: > > On Tue, May 17, 2022 at 11:14:10AM +0100, Andre Przywara wrote: > > When we boot a machine using a devicetree, the generic DT code goes > > through all nodes with a 'device_type = "memory"' property, and collects > > all memory banks mentioned there. However it does not check for the > > status property, so any nodes which are explicitly "disabled" will still > > be added as a memblock. > > This ends up badly for QEMU, when booting with secure firmware on > > arm/arm64 machines, because QEMU adds a node describing secure-only > > memory: > > =================== > > secram@e000000 { > > BTW, 'memory' is the correct node name. We already have a 'memory' node, which is for the NS memory. This one's for the secure-only RAM block, which is why I gave it a name that hopefully helps in spotting that when a human is reading the DT. I'm not really sure to what extent node names in device trees are "this is just an identifying textual label" and to what extent they are "this is really ABI and you need to follow the standard", though -- nothing in practice seems to care what they are, suggesting the "textual label" theory, but some bits of tooling complain if you do things like forget the address value or use the same address for two different nodes, suggesting the "really ABI" theory. thanks -- PMM