DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] vfio error
@ 2021-04-04 14:40 hamidreza Kheirabadi
  2021-04-04 15:15 ` Stephen Hemminger
  2021-04-05 16:53 ` Liang Ma
  0 siblings, 2 replies; 3+ messages in thread
From: hamidreza Kheirabadi @ 2021-04-04 14:40 UTC (permalink / raw)
  To: dev

Hi,
I have a dpdk application which binds nic with igb_uio. My problem is
whenever the kernel updates, I must recompile igb_uio.ko as well.
I want to use vfio instead but I got an error:

Error: bind failed for 0000:06:00.0 - Cannot bind to driver vfio-pci
Error: unbind failed for 0000:06:00.0 - Cannot open
/sys/bus/pci/drivers//unbind

I used ubuntu 20.04 and dpdk-18.05 and use dpdk-setup.py helper script

Regards,
hamid

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] vfio error
  2021-04-04 14:40 [dpdk-dev] vfio error hamidreza Kheirabadi
@ 2021-04-04 15:15 ` Stephen Hemminger
  2021-04-05 16:53 ` Liang Ma
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Hemminger @ 2021-04-04 15:15 UTC (permalink / raw)
  To: hamidreza Kheirabadi; +Cc: dev

Look at kernel log (dmesg).
Probably  you don't  have VT-d enabled.

On Sun, Apr 4, 2021, 7:40 AM hamidreza Kheirabadi <
hamidreza.kheirabadi@gmail.com> wrote:

> Hi,
> I have a dpdk application which binds nic with igb_uio. My problem is
> whenever the kernel updates, I must recompile igb_uio.ko as well.
> I want to use vfio instead but I got an error:
>
> Error: bind failed for 0000:06:00.0 - Cannot bind to driver vfio-pci
> Error: unbind failed for 0000:06:00.0 - Cannot open
> /sys/bus/pci/drivers//unbind
>
> I used ubuntu 20.04 and dpdk-18.05 and use dpdk-setup.py helper script
>
> Regards,
> hamid
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [dpdk-dev] vfio error
  2021-04-04 14:40 [dpdk-dev] vfio error hamidreza Kheirabadi
  2021-04-04 15:15 ` Stephen Hemminger
@ 2021-04-05 16:53 ` Liang Ma
  1 sibling, 0 replies; 3+ messages in thread
From: Liang Ma @ 2021-04-05 16:53 UTC (permalink / raw)
  To: hamidreza Kheirabadi; +Cc: dev

On Sun, Apr 04, 2021 at 07:10:43PM +0430, hamidreza Kheirabadi wrote:
> Hi,
> I have a dpdk application which binds nic with igb_uio. My problem is
> whenever the kernel updates, I must recompile igb_uio.ko as well.
> I want to use vfio instead but I got an error:
> 
> Error: bind failed for 0000:06:00.0 - Cannot bind to driver vfio-pci
> Error: unbind failed for 0000:06:00.0 - Cannot open
> /sys/bus/pci/drivers//unbind
> 
> I used ubuntu 20.04 and dpdk-18.05 and use dpdk-setup.py helper script
> 
> Regards,
> hamid
Hi Hamid, 
   Please double check if you enable IOMMU(VT-d) in you bios and if you
   kernel boot parameter has "intel_iommu=on".
Regards
Liang

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-05 16:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-04 14:40 [dpdk-dev] vfio error hamidreza Kheirabadi
2021-04-04 15:15 ` Stephen Hemminger
2021-04-05 16:53 ` Liang Ma

DPDK patches and discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://inbox.dpdk.org/dev/0 dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dev dev/ https://inbox.dpdk.org/dev \
		dev@dpdk.org
	public-inbox-index dev

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.dev


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git