Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8619
b: refs/heads/master
c: 05d1fa4
h: refs/heads/master
i:
  8617: b974c42
  8615: b6c85e6
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent 4093d7b commit 9e70fe9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e8ad43ec07545780ce7992cb18e2d82c7abd24c
refs/heads/master: 05d1fa4bf6a1528e4d4e39fa537f11e6cfca4720
19 changes: 13 additions & 6 deletions trunk/arch/x86_64/mm/srat.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ static nodemask_t nodes_found __initdata;
static struct node nodes[MAX_NUMNODES] __initdata;
static __u8 pxm2node[256] = { [0 ... 255] = 0xff };

static int node_to_pxm(int n);

int pxm_to_node(int pxm)
{
if ((unsigned)pxm >= 256)
Expand Down Expand Up @@ -53,9 +55,9 @@ static __init int conflicting_nodes(unsigned long start, unsigned long end)
if (nd->start == nd->end)
continue;
if (nd->end > start && nd->start < end)
return 1;
return i;
if (nd->end == end && nd->start == start)
return 1;
return i;
}
return -1;
}
Expand Down Expand Up @@ -139,10 +141,15 @@ acpi_numa_memory_affinity_init(struct acpi_table_memory_affinity *ma)
printk(KERN_INFO "SRAT: hot plug zone found %lx - %lx \n",
start, end);
i = conflicting_nodes(start, end);
if (i >= 0) {
if (i == node) {
printk(KERN_WARNING
"SRAT: Warning: PXM %d (%lx-%lx) overlaps with itself (%Lx-%Lx)\n",
pxm, start, end, nodes[i].start, nodes[i].end);
} else if (i >= 0) {
printk(KERN_ERR
"SRAT: pxm %d overlap %lx-%lx with node %d(%Lx-%Lx)\n",
pxm, start, end, i, nodes[i].start, nodes[i].end);
"SRAT: PXM %d (%lx-%lx) overlaps with PXM %d (%Lx-%Lx)\n",
pxm, start, end, node_to_pxm(i),
nodes[i].start, nodes[i].end);
bad_srat();
return;
}
Expand Down Expand Up @@ -197,7 +204,7 @@ int __init acpi_scan_nodes(unsigned long start, unsigned long end)
return 0;
}

int node_to_pxm(int n)
static int node_to_pxm(int n)
{
int i;
if (pxm2node[n] == n)
Expand Down

0 comments on commit 9e70fe9

Please sign in to comment.