[02/99] pci: increase alignment to make more space for hidden code
From: Greg KH
Date: Fri Nov 06 2009 - 17:48:18 EST
2.6.31-stable review patch. If anyone has any objections, please let us know.
From: Yinghai Lu <yinghai@xxxxxxxxxx>
commit 15b812f1d0a5ca8f5efe7f5882f468af10682ca8 upstream.
As reported in
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@xxxxxxxxxx>
Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
arch/x86/kernel/e820.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -1378,8 +1378,8 @@ static unsigned long ram_alignment(resou
if (mb < 16)
- /* 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)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/