Commit f7d5cbcd authored by Kochi Takayoshi's avatar Kochi Takayoshi Committed by David Mosberger

[PATCH] ia64: Discontigmem bank fix

Attached is a patch for interleaved discontigmem banks.

When memory banks are interleaved between nodes,
bank ids can be overwritten by other nodes.
parent 0207ef8a
...@@ -285,9 +285,11 @@ discontig_paging_init(void) ...@@ -285,9 +285,11 @@ discontig_paging_init(void)
kaddr = (unsigned long)__va(bdp->node_boot_start); kaddr = (unsigned long)__va(bdp->node_boot_start);
ekaddr = (unsigned long)__va(bdp->node_low_pfn << PAGE_SHIFT); ekaddr = (unsigned long)__va(bdp->node_low_pfn << PAGE_SHIFT);
while (kaddr < ekaddr) { while (kaddr < ekaddr) {
if (paddr_to_nid(__pa(kaddr)) == node) {
bid = BANK_MEM_MAP_INDEX(kaddr); bid = BANK_MEM_MAP_INDEX(kaddr);
node_data[mynode]->node_id_map[bid] = node; node_data[mynode]->node_id_map[bid] = node;
node_data[mynode]->bank_mem_map_base[bid] = page; node_data[mynode]->bank_mem_map_base[bid] = page;
}
kaddr += BANKSIZE; kaddr += BANKSIZE;
page += BANKSIZE/PAGE_SIZE; page += BANKSIZE/PAGE_SIZE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment