From owner-freebsd-current@FreeBSD.ORG Thu May 19 12:13:39 2011 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 3E6F7106566C for ; Thu, 19 May 2011 12:13:39 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 13F7E8FC0C for ; Thu, 19 May 2011 12:13:39 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id BE9FC46B23; Thu, 19 May 2011 08:13:38 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 5D94A8A04F; Thu, 19 May 2011 08:13:38 -0400 (EDT) From: John Baldwin To: freebsd-current@freebsd.org Date: Thu, 19 May 2011 08:13:37 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110325; KDE/4.5.5; amd64; ; ) References: <201105171640.11148.jhb@freebsd.org> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105190813.37908.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Thu, 19 May 2011 08:13:38 -0400 (EDT) Cc: "deeptech71@gmail.com" Subject: Re: pcib allocation failure 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: Thu, 19 May 2011 12:13:39 -0000 On Thursday, May 19, 2011 5:23:42 am deeptech71@gmail.com wrote: > On Tue, May 17, 2011 at 10:40 PM, John Baldwin wrote: > > On Tuesday, May 17, 2011 2:03:42 pm deeptech71@gmail.com wrote: > >> On Tue, May 17, 2011 at 3:44 PM, John Baldwin wrote: > >> > On Saturday, May 14, 2011 12:27:59 pm deeptech71@gmail.com wrote: > >> >> pcib1: at device 1.0 on pci0 > >> >> pcib1: failed to allocate initial prefetch window: 0xd0000000-0xfaffffff > >> >> > >> >> the console output is cut shortly after those 2 lines (but the machine > >> >> seems to continue booting, as i have reset'd the machine, after which > >> >> "/" was found to be improperly dismounted). > >> > > >> > So it actually boots fine, but video output breaks during the boot? Does it > >> > ever come back or it is permanently broken until reboot? > >> > >> the video output is permanently broken until reboot (i was able to > >> gather logs by using delayed rc.d scripts). > >> > >> > Your BIOS is actually violating the PCI spec by assigning the same resource > >> > ranges to two devices on the same PCI bus (the hostb device and the AGP bridge > >> > device). It's also doing so unnecessarily. > >> > >> ok, i've tried changing random BIOS settings, and found that changing > >> "AGP Aperture Size" from 128M to 64M solved the problem with the new > >> PCI bus driver. (i have a computer with 512MiB of RAM and an AGP video > >> card with 128MiB of RAM.) weird. any comments on that? > > (also, i have noticed a ~64Mi detraction in resource ranges) > > > Does it still fail to alloc the initial prefetch window in that case? > > hmm! good question, there does seem to be another failure with pcib2, > although without any noticable effect on the system's functionality: > pcib2: failed to allocate initial memory window: 0xf7f00000-0xfbffffff > > for the sake of completeness, here r the logs, coming from an r222043 > kernel with the new PCI bus driver: Yeah, your BIOS continues to behave very poorly. Please try this hack to see if it allows your video to still work with any AGP aperture size: Index: pci_pci.c =================================================================== --- pci_pci.c (revision 222093) +++ pci_pci.c (working copy) @@ -231,7 +231,9 @@ pcib_alloc_window(struct pcib_softc *sc, struct pc w->name, (uintmax_t)w->base, (uintmax_t)w->limit); w->base = max_address; w->limit = 0; +#if 0 pcib_write_windows(sc, w->mask); +#endif return; } pcib_activate_window(sc, type); -- John Baldwin