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:
parent
45d55945fd
commit
c16120409b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user