1 ==============================================================================
2 NUMA binding description.
3 ==============================================================================
5 ==============================================================================
7 ==============================================================================
9 Systems employing a Non Uniform Memory Access (NUMA) architecture contain
10 collections of hardware resources including processors, memory, and I/O buses,
11 that comprise what is commonly known as a NUMA node.
12 Processor accesses to memory within the local NUMA node is generally faster
13 than processor accesses to memory outside of the local NUMA node.
14 DT defines interfaces that allow the platform to convey NUMA node
15 topology information to OS.
17 ==============================================================================
19 ==============================================================================
21 For the purpose of identification, each NUMA node is associated with a unique
22 token known as a node id. For the purpose of this binding
23 a node id is a 32-bit integer.
25 A device node is associated with a NUMA node by the presence of a
26 numa-node-id property which contains the node id of the device.
35 ==============================================================================
37 ==============================================================================
39 The optional device tree node distance-map describes the relative
40 distance (memory latency) between all numa nodes.
42 - compatible : Should at least contain "numa-distance-map-v1".
45 This property defines a matrix to describe the relative distances
46 between all numa nodes.
47 It is represented as a list of node pairs and their relative distance.
50 1. Each entry represents distance from first node to second node.
51 The distances are equal in either direction.
52 2. The distance from a node to self (local distance) is represented
53 with value 10 and all internode distance should be represented with
54 a value greater than 10.
55 3. distance-matrix should have entries in lexicographical ascending
57 4. There must be only one device node distance-map which must
58 reside in the root node.
59 5. If the distance-map node is not present, a default
60 distance-matrix is used.
63 4 nodes connected in mesh/ring topology as below,
74 if relative distance for each hop is 20,
75 then internode distance would be,
83 and dt presentation for this distance matrix is,
86 compatible = "numa-distance-map-v1";
87 distance-matrix = <0 0 10>,
105 ==============================================================================
106 4 - Empty memory nodes
107 ==============================================================================
109 Empty memory nodes, which no memory resides in, are allowed. There are no
110 device nodes for these empty memory nodes. However, the NUMA node IDs and
111 distance maps are still valid and memory may be added into them through
117 device_type = "memory";
118 reg = <0x0 0x0 0x0 0x80000000>;
123 device_type = "memory";
124 reg = <0x0 0x80000000 0x0 0x80000000>;
128 /* Empty memory node 2 and 3 */
130 compatible = "numa-distance-map-v1";
131 distance-matrix = <0 0 10>,
149 ==============================================================================
151 ==============================================================================
153 Dual socket system consists of 2 boards connected through ccn bus and
154 each board having one socket/soc of 8 cpus, memory and pci bus.
157 device_type = "memory";
158 reg = <0x0 0xc00000 0x0 0x80000000>;
164 device_type = "memory";
165 reg = <0x100 0x0 0x0 0x80000000>;
171 #address-cells = <2>;
176 compatible = "arm,armv8";
178 enable-method = "psci";
184 compatible = "arm,armv8";
186 enable-method = "psci";
191 compatible = "arm,armv8";
193 enable-method = "psci";
198 compatible = "arm,armv8";
200 enable-method = "psci";
205 compatible = "arm,armv8";
207 enable-method = "psci";
212 compatible = "arm,armv8";
214 enable-method = "psci";
219 compatible = "arm,armv8";
221 enable-method = "psci";
226 compatible = "arm,armv8";
228 enable-method = "psci";
233 compatible = "arm,armv8";
235 enable-method = "psci";
241 compatible = "arm,armv8";
243 enable-method = "psci";
248 compatible = "arm,armv8";
250 enable-method = "psci";
255 compatible = "arm,armv8";
257 enable-method = "psci";
262 compatible = "arm,armv8";
264 enable-method = "psci";
269 compatible = "arm,armv8";
271 enable-method = "psci";
276 compatible = "arm,armv8";
278 enable-method = "psci";
283 compatible = "arm,armv8";
285 enable-method = "psci";
290 pcie0: pcie0@848000000000 {
291 compatible = "arm,armv8";
295 #address-cells = <3>;
296 reg = <0x8480 0x00000000 0 0x10000000>; /* Configuration space */
297 ranges = <0x03000000 0x8010 0x00000000 0x8010 0x00000000 0x70 0x00000000>;
302 pcie1: pcie1@948000000000 {
303 compatible = "arm,armv8";
307 #address-cells = <3>;
308 reg = <0x9480 0x00000000 0 0x10000000>; /* Configuration space */
309 ranges = <0x03000000 0x9010 0x00000000 0x9010 0x00000000 0x70 0x00000000>;
315 compatible = "numa-distance-map-v1";
316 distance-matrix = <0 0 10>,