Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103794808
D20144.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
804 B
Referenced Files
None
Subscribers
None
D20144.diff
View Options
Index: head/sys/dev/ahci/ahci_generic.c
===================================================================
--- head/sys/dev/ahci/ahci_generic.c
+++ head/sys/dev/ahci/ahci_generic.c
@@ -89,6 +89,7 @@
static int
ahci_acpi_probe(device_t dev)
{
+ struct ahci_controller *ctlr = device_get_softc(dev);
ACPI_HANDLE h;
if ((h = acpi_get_handle(dev)) == NULL)
@@ -98,6 +99,12 @@
pci_get_subclass(dev) == PCIS_STORAGE_SATA &&
pci_get_progif(dev) == PCIP_STORAGE_SATA_AHCI_1_0) {
device_set_desc_copy(dev, "AHCI SATA controller");
+ if (ACPI_FAILURE(acpi_GetInteger(h, "_CCA",
+ &ctlr->dma_coherent)))
+ ctlr->dma_coherent = 0;
+ if (bootverbose)
+ device_printf(dev, "Bus is%s cache-coherent\n",
+ ctlr->dma_coherent ? "" : " not");
return (BUS_PROBE_DEFAULT);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 30, 1:30 PM (14 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14942618
Default Alt Text
D20144.diff (804 B)
Attached To
Mode
D20144: ahci: Check if bus is cache-coherent
Attached
Detach File
Event Timeline
Log In to Comment