Author: jimharris
Date: Fri Sep 11 17:01:01 2015
New Revision: 287677
URL: https://svnweb.freebsd.org/changeset/base/287677

Log:
  MFC r287563:
  
    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().
  
  Sponsored by: Intel

Modified:
  stable/10/sys/dev/isci/isci.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/isci/isci.c
==============================================================================
--- stable/10/sys/dev/isci/isci.c       Fri Sep 11 16:59:04 2015        
(r287676)
+++ stable/10/sys/dev/isci/isci.c       Fri Sep 11 17:01:01 2015        
(r287677)
@@ -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);
 }
_______________________________________________
svn-src-stable-10@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "svn-src-stable-10-unsubscr...@freebsd.org"

Reply via email to