From 08f25ca51cb586c2b37a9983dca0ea11b52d8152 Mon Sep 17 00:00:00 2001 From: Alexander Gall Date: Wed, 15 Apr 2020 12:18:52 +0200 Subject: [PATCH] apps.intel_mp.intel_mp: fix device unbinding for Intel driver Make sure the device is unbound before map_pci_address() is called. Needs to be done more properly. --- src/apps/intel_mp/intel_mp.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/intel_mp/intel_mp.lua b/src/apps/intel_mp/intel_mp.lua index 848ca8f120..4480ae2a68 100644 --- a/src/apps/intel_mp/intel_mp.lua +++ b/src/apps/intel_mp/intel_mp.lua @@ -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")