Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157794611
D43922.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
929 B
Referenced Files
None
Subscribers
None
D43922.id.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
@@ -437,6 +437,24 @@
if (!pcib_is_window_open(w))
return;
+ /*
+ * Assume that a window where both the base and limit read as
+ * zero is not really open, or at least not assigned a valid
+ * range by the firmware. This can happen if a bridge device
+ * is never initialized by firmware, or if a platform driver
+ * resets the bridge.
+ *
+ * If devices behind this bridge have firmware-assigned
+ * resources in this range then the window will be reallocated
+ * on-demand.
+ */
+ if (w->base == 0 && w->limit == ((pci_addr_t)1 << w->step) - 1) {
+ w->base = max_address;
+ w->limit = 0;
+ pcib_write_windows(sc, w->mask);
+ return;
+ }
+
if (w->base > max_address || w->limit > max_address) {
device_printf(sc->dev,
"initial %s window has too many bits, ignoring\n", w->name);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 26, 6:38 AM (3 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33525812
Default Alt Text
D43922.id.diff (929 B)
Attached To
Mode
D43922: pcib: Assume a window where both the base and limit are 0 is uninitialized
Attached
Detach File
Event Timeline
Log In to Comment