From owner-freebsd-current@FreeBSD.ORG Fri Sep 28 18:13:18 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFFF316A419 for ; Fri, 28 Sep 2007 18:13:18 +0000 (UTC) (envelope-from lists@c0mplx.org) Received: from home.c0mplx.org (home.c0mplx.org [IPv6:2001:14b0:200::1]) by mx1.freebsd.org (Postfix) with ESMTP id 7E89D13C4A5 for ; Fri, 28 Sep 2007 18:13:18 +0000 (UTC) (envelope-from lists@c0mplx.org) Received: from pi by home.c0mplx.org with local (Exim 4.66 (FreeBSD)) (envelope-from ) id 1IbKKz-000NQ3-Uk; Fri, 28 Sep 2007 20:13:17 +0200 Date: Fri, 28 Sep 2007 20:13:17 +0200 From: Kurt Jaeger To: "Don L. Belcher" Message-ID: <20070928181317.GA12479@home.c0mplx.org> References: <46F5B918.5040804@siad.net> <46FD2CFF.4000300@siad.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46FD2CFF.4000300@siad.net> Cc: freebsd-current@freebsd.org Subject: Re: PCI to PCI Bridge initialization fails or is corrupted X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 18:13:18 -0000 Hi! > If somebody could point out to me where the prefetch decode > occurs in the code, this would be a big help. I assume you have sys/dev/pci/pci_pci.c, version 1.49 http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/pci/pci_pci.c?rev=1.49;content-type=text%2Fplain In line 183f, sc->pmembase is set: sc->pmembase = PCI_PPBMEMBASE(pci_read_config(dev, PCIR_PMBASEH_1, 4), pci_read_config(dev, PCIR_PMBASEL_1, 2)); and if sc->pmembase is set, the function call to pcib_is_prefetch_open() leads to the result you are looking for in line 267: if (pcib_is_prefetch_open(sc)) device_printf(dev, " prefetched decode 0x%jx-0x%jx\n", (uintmax_t)sc->pmembase, (uintmax_t)sc->pmemlimit); But why the pci_read_config() returns something different, I do not know. -- pi@c0mplx.org +49 171 3101372 13 years to go !