From patchwork Fri Jan 15 23:32:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Myron Stowe X-Patchwork-Id: 73249 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.2) with ESMTP id o0FNWtVE015479 for ; Fri, 15 Jan 2010 23:32:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932198Ab0AOXcz (ORCPT ); Fri, 15 Jan 2010 18:32:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932286Ab0AOXcz (ORCPT ); Fri, 15 Jan 2010 18:32:55 -0500 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:26627 "EHLO g5t0007.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932198Ab0AOXcy (ORCPT ); Fri, 15 Jan 2010 18:32:54 -0500 Received: from g5t0030.atlanta.hp.com (g5t0030.atlanta.hp.com [16.228.8.142]) by g5t0007.atlanta.hp.com (Postfix) with ESMTP id 1027314018; Fri, 15 Jan 2010 23:32:54 +0000 (UTC) Received: from ldl (ldl.fc.hp.com [15.11.146.30]) by g5t0030.atlanta.hp.com (Postfix) with ESMTP id 9951514064; Fri, 15 Jan 2010 23:32:53 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id 6EDBBCF000A; Fri, 15 Jan 2010 16:32:53 -0700 (MST) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5HeSoH+GnXOa; Fri, 15 Jan 2010 16:32:53 -0700 (MST) Received: from eh.fc.hp.com (eh.fc.hp.com [15.11.146.105]) by ldl (Postfix) with ESMTP id 5B005CF0008; Fri, 15 Jan 2010 16:32:53 -0700 (MST) Received: from bob.kio (localhost [127.0.0.1]) by eh.fc.hp.com (Postfix) with ESMTP id 34621261DC; Fri, 15 Jan 2010 16:32:53 -0700 (MST) Subject: [PATCH 1/2] PCI: Fix off by one error in VTBAR exclusion To: jbarnes@virtuousgeek.org From: Myron Stowe Cc: linux-pci@vger.kernel.org, yinghai@kernel.org Date: Fri, 15 Jan 2010 16:32:53 -0700 Message-ID: <20100115233253.7701.12499.stgit@bob.kio> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org diff --git a/arch/x86/pci/intel_bus.c b/arch/x86/pci/intel_bus.c index 9d91b1e..8be4e1d 100644 --- a/arch/x86/pci/intel_bus.c +++ b/arch/x86/pci/intel_bus.c @@ -87,7 +87,7 @@ static void __devinit pci_root_bus_res(struct pci_dev *dev) if (vtbar <= mmiol_base) mmiol_base = vtbar + IOH_VTSIZE; else if (mmiol_end <= vtbar + IOH_VTSIZE - 1) - mmiol_end = vtbar; + mmiol_end = vtbar - 1; else { update_res(info, mmiol_base, vtbar - 1, IORESOURCE_MEM, 0);