Lines Matching defs:node
51 * apicid, cpu, node mappings
70 * Map cpu index to node index
75 void numa_set_node(int cpu, int node)
81 cpu_to_node_map[cpu] = node;
92 per_cpu(x86_cpu_to_node_map, cpu) = node;
94 set_cpu_numa_node(cpu, node);
111 unsigned int node;
118 for (node = 0; node < nr_node_ids; node++)
119 alloc_bootmem_cpumask_var(&node_to_cpumask_map[node]);
134 pr_warn("Warning: invalid memblk node %d [mem %#010Lx-%#010Lx]\n",
181 * @nid: NUMA node ID of the new memblk
195 /* Allocate NODE_DATA for a node on the local memory */
204 * Allocate node data. Try node-local memory and then any node.
209 pr_err("Cannot find %zu bytes in any node (initial node: %d)\n",
220 printk(KERN_INFO " NODE_DATA(%d) on node %d\n", nid, tnid);
285 pr_err("node %d [mem %#010Lx-%#010Lx] overlaps with node %d [mem %#010Lx-%#010Lx]\n",
290 pr_warn("Warning: node %d [mem %#010Lx-%#010Lx] overlaps with itself [mem %#010Lx-%#010Lx]\n",
296 * Join together blocks on the same node, holes
404 * @from: the 'from' node to set distance
405 * @to: the 'to' node to set distance
408 * Set the distance from node @from to @to to @distance. If distance table
416 * If @from or @to is higher than the highest known node or lower than zero
428 pr_warn_once("Warning: node ids are out of bound, from=%d to=%d distance=%d\n",
498 * along node boundaries yet, and don't necessarily have their
499 * node ID set yet either.
503 * This will split up the memblock regions along node
504 * boundaries and will set the node IDs as well.
516 * node mask of all kernel reserved memory areas.
532 * belonging to the reserved node mask.
567 * node the kernel resides in should be un-hotpluggable.
569 * And when we come here, alloc node data won't fail.
608 /* Dump memblock with node info and return. */
615 * only connect memory to a single CPU. This breaks the 1:1 cpu->node
696 * Must online at least one node and add memory blocks that cover all
703 printk(KERN_INFO "Faking a node at [mem %#018Lx-%#018Lx]\n",
716 * last fallback is dummy single node config encompassing whole memory and
737 /* Allocate and initialize node data. Memory-less node is now online.*/
748 * A node may exist which has one or more Generic Initiators but no CPUs and no
774 * emulation and faking node case (when running a kernel compiled
790 int node = numa_cpu_node(cpu);
792 if (node == NUMA_NO_NODE)
795 if (!node_online(node))
796 init_memory_less_node(node);
798 numa_set_node(cpu, node);
848 void debug_cpumask_set_cpu(int cpu, int node, bool enable)
852 if (node == NUMA_NO_NODE) {
856 mask = node_to_cpumask_map[node];
858 pr_err("node_to_cpumask_map[%i] NULL\n", node);
868 printk(KERN_DEBUG "%s cpu %d node %d: mask now %*pbl\n",
870 cpu, node, cpumask_pr_args(mask));
892 * Returns a pointer to the bitmask of CPUs on Node 'node'.
894 const struct cpumask *cpumask_of_node(int node)
896 if ((unsigned)node >= nr_node_ids) {
898 "cpumask_of_node(%d): (unsigned)node >= nr_node_ids(%u)\n",
899 node, nr_node_ids);
903 if (!cpumask_available(node_to_cpumask_map[node])) {
906 node);
910 return node_to_cpumask_map[node];