From owner-freebsd-current@FreeBSD.ORG Sat Sep 29 20:14:57 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 329B216A419 for ; Sat, 29 Sep 2007 20:14:57 +0000 (UTC) (envelope-from don@siad.net) Received: from mars.siad.net (mars.siad.net [69.3.214.122]) by mx1.freebsd.org (Postfix) with ESMTP id 08BE013C4BB for ; Sat, 29 Sep 2007 20:14:56 +0000 (UTC) (envelope-from don@siad.net) Received: from [69.3.214.123] (rover.siad.net [69.3.214.123]) (authenticated bits=0) by mars.siad.net (8.13.8/8.13.1) with ESMTP id l8TKBSgt061371; Sat, 29 Sep 2007 13:11:32 -0700 (PDT) (envelope-from don@siad.net) Message-ID: <46FEB17B.6030702@siad.net> Date: Sat, 29 Sep 2007 13:11:39 -0700 From: "Don L. Belcher" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20070522 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kurt Jaeger References: <46F5B918.5040804@siad.net> <46FD2CFF.4000300@siad.net> <20070928181317.GA12479@home.c0mplx.org> In-Reply-To: <20070928181317.GA12479@home.c0mplx.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-2.0b1 (mars.siad.net [69.3.214.122]); Sat, 29 Sep 2007 13:11:33 -0700 (PDT) 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: Sat, 29 Sep 2007 20:14:57 -0000 Kurt Jaeger wrote: >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 > > Yes this is the version I currently have. >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. > > > What I meant was where is the hardware initialize at (for the prefetch decode), this code is working as far I could tell. The prefetch decode in the hardware is set to 0. Would any body know if following errors could be causing the failure? acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7f00000 (3) failed