Date: Tue, 12 Jul 2011 13:28:39 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r223952 - head/sys/dev/pci Message-ID: <201107121328.p6CDSdMT040746@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107121328.p6CDSdMT040746>