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
This commit is contained in:
Jim Harris 2015-09-08 15:59:55 +00:00
parent 45d55945fd
commit c16120409b

View File

@ -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);
}