Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755622Ab0A0Qx6 (ORCPT ); Wed, 27 Jan 2010 11:53:58 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755610Ab0A0Qx5 (ORCPT ); Wed, 27 Jan 2010 11:53:57 -0500 Received: from outbound-mail-01.bluehost.com ([69.89.21.11]:53409 "HELO outbound-mail-01.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755539Ab0A0Qx4 (ORCPT ); Wed, 27 Jan 2010 11:53:56 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=virtuousgeek.org; h=Received:Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=ruKXTahVxGkcX1hHh5zXIWKurnXgK2/IqVnkL7pRwbb6MGs51r0s8YZtjW+mp5WyNl9mJn5oVOjn8bKNsXomoPPK3vW+83Wfhj7fuLVkvFSvvgeXzLMrEpn+FXznNhiR; Date: Wed, 27 Jan 2010 08:53:37 -0800 From: Jesse Barnes To: Bjorn Helgaas Cc: Yinghai Lu , Jeff Garrett , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Linux PCI , Linus Torvalds , Myron Stowe , Matthew Garrett , Ingo Molnar Subject: Re: [Bug #15124] PCI host bridge windows ignored (works with pci=use_crs) Message-ID: <20100127085337.6ff06f6e@jbarnes-piketon> In-Reply-To: <201001270945.17113.bjorn.helgaas@hp.com> References: <20100126101752.78196900@jbarnes-piketon> <4B5F735B.2040308@kernel.org> <201001270945.17113.bjorn.helgaas@hp.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.18.3; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Identified-User: {10642:box514.bluehost.com:virtuous:virtuousgeek.org} {sentby:smtp auth 75.111.28.251 authed with jbarnes@virtuousgeek.org} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2101 Lines: 48 On Wed, 27 Jan 2010 09:45:15 -0700 Bjorn Helgaas wrote: > On Tuesday 26 January 2010 03:57:31 pm Yinghai Lu wrote: > > [PATCH] x86/pci: don't use ioh resource if only have one ioh > > > > some system could use reosurce out of IOH resources when only one ioh is there. > > > > could be BIOS have wrong IOH resources and not enable them. > > The subtractive decode theory makes sense and would explain what's > happening, but I don't like this patch. > > If we assume that this really is a subtractive decode issue, this > patch approaches it the wrong way. We need to know whether a > particular host bridge is configured for subtractive decode. This > patch tests whether we have more than one host bridge, which is quite > a different question. > > Imagine these system configurations: > > 1) a single host bridge with subtractive decode > 2) a single host bridge with only positive decode > 3) multiple host bridges with subtractive decode enabled on one > 4) multiple host bridges with only positive decode > > This patch will break if we encounter configs 2 or 3. In config 2, > this patch assumes the bridge performs subtractive decode, so we > think the bridge forwards more address space than it actually does. > If we try to use that address space, the device will never see the > accesses. In config 3, this patch assumes there's no subtractive > decode, so we would see Jeff's problem all over again. Right, but OTOH: - multiple IOH has already been tested with the intel_bus.c code - we want to move to using _CRS data in these cases instead So do you have any objection to applying this patch for 2.6.33 and then moving away from intel_bus.c in .34 (assuming we can get _CRS working well on the same machines where intel_bus.c was needed)? -- Jesse Barnes, Intel Open Source Technology Center -- 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/