Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147551525
D27274.id79746.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1002 B
Referenced Files
None
Subscribers
None
D27274.id79746.diff
View Options
Index: sys/dev/pci/pci_host_generic_acpi.c
===================================================================
--- sys/dev/pci/pci_host_generic_acpi.c
+++ sys/dev/pci/pci_host_generic_acpi.c
@@ -201,7 +201,8 @@
mcfg_entry++;
}
if (found) {
- sc->base.bus_end = mcfg_entry->EndBusNumber;
+ if (mcfg_entry->EndBusNumber < sc->base.bus_end)
+ sc->base.bus_end = mcfg_entry->EndBusNumber;
base = mcfg_entry->Address;
} else {
device_printf(dev, "MCFG exists, but does not have bus %d-%d\n",
@@ -210,10 +211,9 @@
}
} else {
status = acpi_GetInteger(handle, "_CBA", &val);
- if (ACPI_SUCCESS(status)) {
+ if (ACPI_SUCCESS(status))
base = val;
- sc->base.bus_end = 255;
- } else
+ else
return (ENXIO);
}
@@ -246,6 +246,7 @@
device_printf(dev, "No _BBN, using start bus 0\n");
sc->base.bus_start = 0;
}
+ sc->base.bus_end = 255;
/* Get PCI Segment (domain) needed for MCFG lookup */
status = acpi_GetInteger(handle, "_SEG", &sc->base.ecam);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 12, 8:16 PM (2 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29594121
Default Alt Text
D27274.id79746.diff (1002 B)
Attached To
Mode
D27274: Only set the PCI bus end when we are reducing it
Attached
Detach File
Event Timeline
Log In to Comment