* [dpdk-dev] [PATCH] vfio: fix missing header inclusion
@ 2018-10-17 5:30 Jerin Jacob
2018-10-17 8:18 ` Thomas Monjalon
0 siblings, 1 reply; 2+ messages in thread
From: Jerin Jacob @ 2018-10-17 5:30 UTC (permalink / raw)
To: dev; +Cc: thomas, ferruh.yigit, jia.guo, Jacob, Jerin, Bhagavatula, Pavan
The following change set introduces HAVE_VFIO_DEV_REQ_INTERFACE
and used in the below files.
drivers/bus/pci/linux/pci_vfio.c
drivers/bus/pci/pci_common.c
lib/librte_eal/linuxapp/eal/eal_interrupts.c
However, Except the first file, the change missed to include
<rte_vfio.h> where HAVE_VFIO_DEV_REQ_INTERFACE defined.
This creates runtime following error on vfio-pci mode and
kernel >= 4.0.0 combination.
EAL: [rte_intr_enable] Unknown handle type of fd 95
EAL: [pci_vfio_enable_notifier]Fail to enable req notifier.
EAL: Fail to unregister req notifier handler.
EAL: Error setting up notifier!
EAL: Requested device 0000:07:00.1 cannot be used
Fixes: cda94419964f ("vfio: fix build with Linux < 4.0")
Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
---
drivers/bus/pci/pci_common.c | 1 +
lib/librte_eal/linuxapp/eal/eal_interrupts.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/drivers/bus/pci/pci_common.c b/drivers/bus/pci/pci_common.c
index 4b3749a9a..c0238d444 100644
--- a/drivers/bus/pci/pci_common.c
+++ b/drivers/bus/pci/pci_common.c
@@ -23,6 +23,7 @@
#include <rte_string_fns.h>
#include <rte_common.h>
#include <rte_devargs.h>
+#include <rte_vfio.h>
#include "private.h"
diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
index 767b50880..39252a887 100644
--- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c
+++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c
@@ -33,6 +33,7 @@
#include <rte_errno.h>
#include <rte_spinlock.h>
#include <rte_pause.h>
+#include <rte_vfio.h>
#include "eal_private.h"
#include "eal_vfio.h"
--
2.19.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [dpdk-dev] [PATCH] vfio: fix missing header inclusion
2018-10-17 5:30 [dpdk-dev] [PATCH] vfio: fix missing header inclusion Jerin Jacob
@ 2018-10-17 8:18 ` Thomas Monjalon
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-10-17 8:18 UTC (permalink / raw)
To: Jerin Jacob; +Cc: dev, ferruh.yigit, jia.guo, Jacob, Jerin, Bhagavatula, Pavan
17/10/2018 07:30, Jerin Jacob:
> The following change set introduces HAVE_VFIO_DEV_REQ_INTERFACE
> and used in the below files.
>
> drivers/bus/pci/linux/pci_vfio.c
> drivers/bus/pci/pci_common.c
> lib/librte_eal/linuxapp/eal/eal_interrupts.c
>
> However, Except the first file, the change missed to include
> <rte_vfio.h> where HAVE_VFIO_DEV_REQ_INTERFACE defined.
> This creates runtime following error on vfio-pci mode and
> kernel >= 4.0.0 combination.
>
> EAL: [rte_intr_enable] Unknown handle type of fd 95
> EAL: [pci_vfio_enable_notifier]Fail to enable req notifier.
> EAL: Fail to unregister req notifier handler.
> EAL: Error setting up notifier!
> EAL: Requested device 0000:07:00.1 cannot be used
>
> Fixes: cda94419964f ("vfio: fix build with Linux < 4.0")
>
> Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
Applied, thanks
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-10-17 8:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 5:30 [dpdk-dev] [PATCH] vfio: fix missing header inclusion Jerin Jacob
2018-10-17 8:18 ` Thomas Monjalon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).