Author: jhb Date: Tue Jul 12 13:28:39 2011 New Revision: 223952 URL: http://svn.freebsd.org/changeset/base/223952
Log: Properly align the end of a candidate back region based on the window's granularity when growing a PCI-PCI window up. Tested by: dougb MFC after: 3 days Modified: head/sys/dev/pci/pci_pci.c Modified: head/sys/dev/pci/pci_pci.c ============================================================================== --- head/sys/dev/pci/pci_pci.c Tue Jul 12 13:22:17 2011 (r223951) +++ head/sys/dev/pci/pci_pci.c Tue Jul 12 13:28:39 2011 (r223952) @@ -954,7 +954,7 @@ pcib_grow_window(struct pcib_softc *sc, if (bootverbose) printf("\tback candidate range: %#lx-%#lx\n", start_free, back); - back = roundup2(back + 1, w->step) - 1; + back = roundup2(back + 1, 1ul << w->step) - 1; back -= rman_get_end(w->res); } else back = 0; _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"