Skip to content

Commit

Permalink
apps.intel_mp.intel_mp: fix device unbinding for Intel driver
Browse files Browse the repository at this point in the history
Make sure the device is unbound before map_pci_address() is
called. Needs to be done more properly.
  • Loading branch information
alexandergall committed Apr 15, 2020
1 parent 87c1a0e commit 08f25ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/apps/intel_mp/intel_mp.lua
Expand Up @@ -360,6 +360,9 @@ function Intel:new (conf)
self.max_q = byid.max_q

-- Setup device access
-- XXX: must call unbind before map, must figure out
-- how to do this properly.
pci.unbind_device_from_linux(self.pciaddress)
self.base, self.fd = pci.map_pci_memory_unlocked(self.pciaddress, 0)
self.master = self.fd:flock("ex, nb")

Expand Down

0 comments on commit 08f25ca

Please sign in to comment.