Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 6 Jan 2003 18:43:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 6 Jan 2003 18:43:31 -0500 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:53256 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Mon, 6 Jan 2003 18:43:30 -0500 Date: Mon, 6 Jan 2003 15:19:09 -0800 (PST) From: Linus Torvalds To: Grant Grundler cc: Ivan Kokshaysky , Paul Mackerras , Benjamin Herrenschmidt , "Eric W. Biederman" , , Subject: Re: [patch 2.5] PCI: allow alternative methods for probing the BARs In-Reply-To: <20030106215210.GE26790@cup.hp.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1355 Lines: 34 On Mon, 6 Jan 2003, Grant Grundler wrote: > > I agree - it looks better. But I fail to see how it fixes the problem > of knowing when we can or cannot disable a device in order to size > the BAR. With a two-phase discovery, and a separate FIXUP_EARLY in the first phase, we can now make fixups for devices behind bridges. In particular, we can make the first phase disable DMA on the devices we find, which means that we know they won't be generating PCI traffic during the second phase - so now the second phase (which does the BAR sizing) can do sizing and be safe in the knowledge that there should be no random PCI activity ongoing at the same time. That should fix at least the USB DMA problem. > I'm under the impression some i386 specific code needs to be added > to identify/fixup the broken configurations (memory disabled when > a PCI Bridge is disabled). It's fine to temporarily disable memory on the northbridge, as long as nothign else tries to _access_ that memory at the same time. The tho-phase discovery with the first phase doing the disables should make sure of that. Linus - 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/