Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107382333
D29625.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
676 B
Referenced Files
None
Subscribers
None
D29625.diff
View Options
diff --git a/sys/dev/pci/pci_dw.c b/sys/dev/pci/pci_dw.c
--- a/sys/dev/pci/pci_dw.c
+++ b/sys/dev/pci/pci_dw.c
@@ -342,6 +342,18 @@
" Not all required ranges are found in DT\n");
return (ENXIO);
}
+ if (sc->io_range.size > UINT32_MAX) {
+ device_printf(sc->dev,
+ "ATU IO window size is too large. Up to 4GB windows "
+ "are supported, trimming window size to 4GB\n");
+ sc->io_range.size = UINT32_MAX;
+ }
+ if (sc->mem_range.size > UINT32_MAX) {
+ device_printf(sc->dev,
+ "ATU MEM window size is too large. Up to 4GB windows "
+ "are supported, trimming window size to 4GB\n");
+ sc->mem_range.size = UINT32_MAX;
+ }
return (0);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 8:48 AM (18 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15792721
Default Alt Text
D29625.diff (676 B)
Attached To
Mode
D29625: pci_dw.c: Trim ATU windows bigger than 4GB
Attached
Detach File
Event Timeline
Log In to Comment