Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177640211
D6023.1794921441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
D6023.1794921441.diff
View Options
Index: sys/dev/acpica/acpi_pcib_acpi.c
===================================================================
--- sys/dev/acpica/acpi_pcib_acpi.c
+++ sys/dev/acpica/acpi_pcib_acpi.c
@@ -295,6 +295,40 @@
}
#endif
+static void
+acpi_pcib_osc(struct acpi_hpcib_softc *sc)
+{
+ ACPI_STATUS status;
+ uint32_t cap_set[3];
+
+ static uint8_t pci_host_bridge_uuid[ACPI_UUID_LENGTH] = {
+ 0x5b, 0x4d, 0xdb, 0x33, 0xf7, 0x1f, 0x1c, 0x40,
+ 0x96, 0x57, 0x74, 0x41, 0xc0, 0x3d, 0xd7, 0x66
+ };
+
+ /* Support Field: Extended PCI Config Space, MSI */
+ cap_set[1] = 0x11;
+
+ /* Control Field */
+ cap_set[2] = 0;
+
+ status = acpi_EvaluateOSC(sc->ap_handle, pci_host_bridge_uuid, 1,
+ nitems(cap_set), cap_set, false);
+ if (ACPI_FAILURE(status)) {
+ if (status == AE_NOT_FOUND)
+ return;
+ device_printf(sc->ap_dev, "_OSC failed: %s\n",
+ AcpiFormatException(status));
+ return;
+ }
+
+ if (cap_set[0] != 0) {
+ device_printf(sc->ap_dev, "_OSC returned error %#x\n",
+ cap_set[0]);
+ return;
+ }
+}
+
static int
acpi_pcib_acpi_attach(device_t dev)
{
@@ -321,6 +355,8 @@
if (!acpi_DeviceIsPresent(dev))
return (ENXIO);
+ acpi_pcib_osc(sc);
+
/*
* Get our segment number by evaluating _SEG.
* It's OK for this to not exist.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 1:17 PM (20 h, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41800516
Default Alt Text
D6023.1794921441.diff (1 KB)
Attached To
Mode
D6023: Invoke _OSC on Host-PCI bridges.
Attached
Detach File
Event Timeline