From patchwork Wed Jun 24 22:58:52 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yinghai Lu X-Patchwork-Id: 32276 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5OMxIu1011287 for ; Wed, 24 Jun 2009 22:59:18 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751721AbZFXW7N (ORCPT ); Wed, 24 Jun 2009 18:59:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752047AbZFXW7N (ORCPT ); Wed, 24 Jun 2009 18:59:13 -0400 Received: from hera.kernel.org ([140.211.167.34]:54284 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751721AbZFXW7M (ORCPT ); Wed, 24 Jun 2009 18:59:12 -0400 Received: from [192.168.86.129] (70.89.117.125-Busname-WA.hfc.comcastbusiness.net [70.89.117.125]) (authenticated bits=0) by hera.kernel.org (8.14.2/8.13.8) with ESMTP id n5OMwtjB027953 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jun 2009 22:58:59 GMT Message-ID: <4A42AFAC.6000300@kernel.org> Date: Wed, 24 Jun 2009 15:58:52 -0700 From: Yinghai Lu User-Agent: Thunderbird 2.0.0.19 (X11/20081227) MIME-Version: 1.0 To: Ingo Molnar , Jesse Barnes , Gary Hade , Matthew Wilcox , Larry Finger CC: Linus Torvalds , Andrew Morton , linux-pci@vger.kernel.org, "linux-kernel@vger.kernel.org" , Jaswinder Singh Rajput Subject: [PATCH] x86/pci: don't use crs for root if we only have one root bus References: <20090624122433.GA24781@elte.hu> <20090624145119.GA12664@elte.hu> <4A429EBB.5010209@kernel.org> In-Reply-To: <4A429EBB.5010209@kernel.org> X-Virus-Scanned: ClamAV 0.93.3/9504/Wed Jun 24 15:02:51 2009 on hera.kernel.org X-Virus-Status: Clean Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org for AMD system, when only one PCI root, just set PCI_NO_ROOT_CRS for it Signed-off-by: Yinghai Lu --- arch/x86/pci/amd_bus.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/arch/x86/pci/amd_bus.c =================================================================== --- linux-2.6.orig/arch/x86/pci/amd_bus.c +++ linux-2.6/arch/x86/pci/amd_bus.c @@ -561,6 +561,10 @@ static int __init early_fill_mp_bus_info } } + /* don't use _CRS if we only have one root */ + if (pci_root_num <= 1) + pci_probe |= PCI_NO_ROOT_CRS; + return 0; }