Skip to content

Commit

Permalink
[PATCH] x86_64: Relax SRAT covers all memory check a bit
Browse files Browse the repository at this point in the history
Code was refusing good SRATs because about 12K got lost somewhere.
Allow less than 1MB of difference before rejecting it.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Feb 17, 2006
1 parent 6574ffd commit fdb9df9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86_64/mm/srat.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,8 @@ static int nodes_cover_memory(void)
}

e820ram = end_pfn - e820_hole_size(0, end_pfn);
if (pxmram < e820ram) {
/* We seem to lose 3 pages somewhere. Allow a bit of slack. */
if ((long)(e820ram - pxmram) >= 1*1024*1024) {
printk(KERN_ERR
"SRAT: PXMs only cover %luMB of your %luMB e820 RAM. Not used.\n",
(pxmram << PAGE_SHIFT) >> 20,
Expand Down

0 comments on commit fdb9df9

Please sign in to comment.