pcib allocation failure
John Baldwin
jhb at freebsd.org
Thu May 19 12:13:39 UTC 2011
On Thursday, May 19, 2011 5:23:42 am deeptech71 at gmail.com wrote:
> On Tue, May 17, 2011 at 10:40 PM, John Baldwin <jhb at freebsd.org> wrote:
> > On Tuesday, May 17, 2011 2:03:42 pm deeptech71 at gmail.com wrote:
> >> On Tue, May 17, 2011 at 3:44 PM, John Baldwin <jhb at freebsd.org> wrote:
> >> > On Saturday, May 14, 2011 12:27:59 pm deeptech71 at gmail.com wrote:
> >> >> pcib1: <ACPI PCI-PCI bridge> 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
More information about the freebsd-current
mailing list