Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144302265
D31693.id94248.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
840 B
Referenced Files
None
Subscribers
None
D31693.id94248.diff
View Options
diff --git a/sys/dev/pci/pci_pci.c b/sys/dev/pci/pci_pci.c
--- a/sys/dev/pci/pci_pci.c
+++ b/sys/dev/pci/pci_pci.c
@@ -2345,6 +2345,7 @@
{
struct pcib_softc *sc;
struct pcib_window *w;
+ rman_res_t wmask;
int error;
sc = device_get_softc(bus);
@@ -2375,9 +2376,18 @@
* then we need to expand the window.
*/
if (start < w->base || end > w->limit) {
- error = pcib_expand_window(sc, w, type, start, end);
+ wmask = ((rman_res_t)1 << w->step) - 1;
+ error = pcib_expand_window(sc, w, type,
+ MIN(start & ~wmask, w->base),
+ MAX(end | wmask, w->limit));
if (error != 0)
return (error);
+ if (bootverbose)
+ device_printf(sc->dev,
+ "grew %s window to %#jx-%#jx\n",
+ w->name, (uintmax_t)w->base,
+ (uintmax_t)w->limit);
+ pcib_write_windows(sc, w->mask);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 8, 6:01 PM (5 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28480843
Default Alt Text
D31693.id94248.diff (840 B)
Attached To
Mode
D31693: pcib(4): write window after resource adjustment
Attached
Detach File
Event Timeline
Log In to Comment