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
This commit is contained in:
parent
5f8a9ae4a9
commit
a27d4bdc9f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=223952
@ -954,7 +954,7 @@ pcib_grow_window(struct pcib_softc *sc, struct pcib_window *w, int type,
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user