Skip to content

Commit

Permalink
pci: increase alignment to make more space for hidden code
Browse files Browse the repository at this point in the history
As reported in

	http://bugzilla.kernel.org/show_bug.cgi?id=13940

on some system when acpi are enabled, acpi clears some BAR for some
devices without reason, and kernel will need to allocate devices for
them.  It then apparently hits some undocumented resource conflict,
resulting in non-working devices.

Try to increase alignment to get more safe range for unassigned devices.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Yinghai Lu authored and Linus Torvalds committed Oct 11, 2009
1 parent f144c78 commit 15b812f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/e820.c
Original file line number Diff line number Diff line change
Expand Up @@ -1378,8 +1378,8 @@ static unsigned long ram_alignment(resource_size_t pos)
if (mb < 16)
return 1024*1024;

/* To 32MB for anything above that */
return 32*1024*1024;
/* To 64MB for anything above that */
return 64*1024*1024;
}

#define MAX_RESOURCE_SIZE ((resource_size_t)-1)
Expand Down

0 comments on commit 15b812f

Please sign in to comment.