From 1fc051e52f8e5bbbcf7cd47ee8c18a88ec10def9 Mon Sep 17 00:00:00 2001 From: jimharris Date: Tue, 8 Sep 2015 15:59:55 +0000 Subject: [PATCH] isci: explicitly enable/disable PCI busmaster BIOS always enables PCI busmaster on the isci device, which effectively worked around this omission. But when passing the isci device through to a guest VM, the hypervisor will disable busmaster and isci will not work without calling pci_enable_busmaster(). MFC after: 3 days Sponsored by: Intel --- sys/dev/isci/isci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/isci/isci.c b/sys/dev/isci/isci.c index 2f0727d088c0..5a1066c81a74 100644 --- a/sys/dev/isci/isci.c +++ b/sys/dev/isci/isci.c @@ -163,6 +163,7 @@ isci_attach(device_t device) g_isci = isci; isci->device = device; + pci_enable_busmaster(device); isci_allocate_pci_memory(isci); @@ -272,6 +273,7 @@ isci_detach(device_t device) pci_release_msi(device); } + pci_disable_busmaster(device); return (0); }