Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752226AbZJKVSl (ORCPT ); Sun, 11 Oct 2009 17:18:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751764AbZJKVSj (ORCPT ); Sun, 11 Oct 2009 17:18:39 -0400 Received: from hera.kernel.org ([140.211.167.34]:39111 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbZJKVSj (ORCPT ); Sun, 11 Oct 2009 17:18:39 -0400 Message-ID: <4AD24B5C.4050905@kernel.org> Date: Sun, 11 Oct 2009 14:17:16 -0700 From: Yinghai Lu User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Len Brown , Linus Torvalds , Jesse Barnes , Ingo Molnar CC: Ricardo Jorge da Fonseca Marques Ferreira , Linux Kernel Mailing List , linux-acpi@vger.kernel.org, Yannick Roehlly , Ivan Kokshaysky , x86@kernel.org Subject: [PATCH] pci: increase alignment to make more space for hidden code References: <200908072333.24631.storm@sys49152.net> <200908160400.03391.storm@sys49152.net> <4ACAC8F1.1050706@kernel.org> In-Reply-To: <4ACAC8F1.1050706@kernel.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1121 Lines: 35 for http://bugzilla.kernel.org/show_bug.cgi?id=13940 some system when acpi are enabled, acpi clears some BAR for some devices without reason, and kernel will need to allocate devices for them. try to increase alignment to get more safe range for unassigned devices. Signed-off-by: Yinghai Lu --- arch/x86/kernel/e820.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux-2.6/arch/x86/kernel/e820.c =================================================================== --- linux-2.6.orig/arch/x86/kernel/e820.c +++ linux-2.6/arch/x86/kernel/e820.c @@ -1378,8 +1378,8 @@ static unsigned long ram_alignment(resou 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) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/