DPDK usage discussions
 help / color / mirror / Atom feed
* how to bind VF interface into dpdk
@ 2022-09-14 12:30 Balakrishnan K
  2022-09-15  2:30 ` Satish Patel
  2022-09-15  7:22 ` David Marchand
  0 siblings, 2 replies; 4+ messages in thread
From: Balakrishnan K @ 2022-09-14 12:30 UTC (permalink / raw)
  To: users


[-- Attachment #1.1: Type: text/plain, Size: 520 bytes --]

Hi All,
    I am trying to bind VF interface to dpdk using dpdk-devbind.py.
Unable to bind getting error "cannot bind to driver uio_pci_generic".
Steps followed:
1.modprobe uio_pci_generic
2. dpdk-devbind.py -b uio_pci_generic 0000:05:00.0

Also tried with vfio-pci driver not succeeded.
Attaching the dpdk-devbind -s output and the error which I got.

Am I missing something could any one please help on this.

[cid:image001.png@01D8C863.715FC950]

[cid:image002.png@01D8C863.DAFD23D0]

Regards,
Bala

[-- Attachment #1.2: Type: text/html, Size: 3602 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 11521 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 10449 bytes --]

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

* Re: how to bind VF interface into dpdk
  2022-09-14 12:30 how to bind VF interface into dpdk Balakrishnan K
@ 2022-09-15  2:30 ` Satish Patel
  2022-09-15  7:12   ` Balakrishnan K
  2022-09-15  7:22 ` David Marchand
  1 sibling, 1 reply; 4+ messages in thread
From: Satish Patel @ 2022-09-15  2:30 UTC (permalink / raw)
  To: Balakrishnan K; +Cc: users


[-- Attachment #1.1: Type: text/plain, Size: 796 bytes --]

Hi,

 I would also check dmesg logs for any indication or warning. I had an
issue like that and it turned out to be a BIOS setting related to some nic
shared memory.

On Wed, Sep 14, 2022 at 8:30 AM Balakrishnan K <
Balakrishnan.K1@tatacommunications.com> wrote:

> Hi All,
>
>     I am trying to bind VF interface to dpdk using dpdk-devbind.py.
>
> Unable to bind getting error “cannot bind to driver uio_pci_generic”.
>
> Steps followed:
>
> 1.modprobe uio_pci_generic
>
> 2. dpdk-devbind.py -b uio_pci_generic 0000:05:00.0
>
>
>
> Also tried with vfio-pci driver not succeeded.
>
> Attaching the dpdk-devbind -s output and the error which I got.
>
>
>
> Am I missing something could any one please help on this.
>
>
>
>
>
>
>
> Regards,
>
> Bala
>

[-- Attachment #1.2: Type: text/html, Size: 2753 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 11521 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 10449 bytes --]

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

* RE: how to bind VF interface into dpdk
  2022-09-15  2:30 ` Satish Patel
@ 2022-09-15  7:12   ` Balakrishnan K
  0 siblings, 0 replies; 4+ messages in thread
From: Balakrishnan K @ 2022-09-15  7:12 UTC (permalink / raw)
  To: Satish Patel; +Cc: users


[-- Attachment #1.1: Type: text/plain, Size: 1775 bytes --]

Hi Sathish,
  Thanks for the input .
Checked the dmesg  below are the error msg.
[ 1394.034137] uio_pci_generic 0000:06:00.0: No IRQ assigned to device: no support for interrupts?
[ 1394.037596] uio_pci_generic 0000:06:00.0: No IRQ assigned to device: no support for interrupts?
[ 1421.498627] uio_pci_generic 0000:06:00.0: No IRQ assigned to device: no support for interrupts?
[ 1421.500976] uio_pci_generic 0000:06:00.0: No IRQ assigned to device: no support for interrupts?

Is any BIOS setting needed to resolve the issue.


Regards,
Bala



From: Satish Patel <satish.txt@gmail.com>
Sent: 15 September 2022 08:00
To: Balakrishnan K <Balakrishnan.K1@tatacommunications.com>
Cc: users@dpdk.org
Subject: Re: how to bind VF interface into dpdk


CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi,

 I would also check dmesg logs for any indication or warning. I had an issue like that and it turned out to be a BIOS setting related to some nic shared memory.

On Wed, Sep 14, 2022 at 8:30 AM Balakrishnan K <Balakrishnan.K1@tatacommunications.com<mailto:Balakrishnan.K1@tatacommunications.com>> wrote:
Hi All,
    I am trying to bind VF interface to dpdk using dpdk-devbind.py.
Unable to bind getting error “cannot bind to driver uio_pci_generic”.
Steps followed:
1.modprobe uio_pci_generic
2. dpdk-devbind.py -b uio_pci_generic 0000:05:00.0

Also tried with vfio-pci driver not succeeded.
Attaching the dpdk-devbind -s output and the error which I got.

Am I missing something could any one please help on this.

[cid:image001.png@01D8C900.9517D660]

[cid:image002.png@01D8C900.9517D660]

Regards,
Bala

[-- Attachment #1.2: Type: text/html, Size: 8361 bytes --]

[-- Attachment #2: image001.png --]
[-- Type: image/png, Size: 11521 bytes --]

[-- Attachment #3: image002.png --]
[-- Type: image/png, Size: 10449 bytes --]

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

* Re: how to bind VF interface into dpdk
  2022-09-14 12:30 how to bind VF interface into dpdk Balakrishnan K
  2022-09-15  2:30 ` Satish Patel
@ 2022-09-15  7:22 ` David Marchand
  1 sibling, 0 replies; 4+ messages in thread
From: David Marchand @ 2022-09-15  7:22 UTC (permalink / raw)
  To: Balakrishnan K; +Cc: users

On Wed, Sep 14, 2022 at 2:30 PM Balakrishnan K
<Balakrishnan.K1@tatacommunications.com> wrote:
>
>     I am trying to bind VF interface to dpdk using dpdk-devbind.py.
>
> Unable to bind getting error “cannot bind to driver uio_pci_generic”.
>
> Steps followed:
>
> 1.modprobe uio_pci_generic
>
> 2. dpdk-devbind.py -b uio_pci_generic 0000:05:00.0

In general, you should use vfio-pci.

Now, for your particular case, ixgbe VF devices (10ed) won't work with
uio_pci_generic, and it is reported in the driver info.

$ ./usertools/dpdk-pmdinfo.py build-gcc/drivers/librte_net_ixgbe.so | less
PMD NAME: net_ixgbe_vf
PMD PARAMETERS: pflink_fullchk=<0|1>
PMD KMOD DEPENDENCIES: * igb_uio | vfio-pci
PMD HW SUPPORT:
 Intel Corporation (8086) : 82599 Ethernet Controller Virtual Function
(10ed) (All Subdevices)
 Intel Corporation (8086) : 82599 Virtual Function (152e) (All Subdevices)
 Intel Corporation (8086) : X540 Ethernet Controller Virtual Function
(1515) (All Subdevices)
 Intel Corporation (8086) : X540 Virtual Function (1530) (All Subdevices)
 Intel Corporation (8086) : X550 Virtual Function (1564) (All Subdevices)
 Intel Corporation (8086) : X550 Virtual Function (1565) (All Subdevices)
 Intel Corporation (8086) : X553 Virtual Function (15c5) (All Subdevices)
 Intel Corporation (8086) : X553 Virtual Function (15b4) (All Subdevices)
 Intel Corporation (8086) : Ethernet Connection X552 Virtual Function
(15a8) (All Subdevices)
 Intel Corporation (8086) : X552 Virtual Function (15a9) (All Subdevices)

...


>
> Also tried with vfio-pci driver not succeeded.

We need dmesg output in this case, to be sure.

In general, it means that either your system has no iommu (there is a
special *unsafe* mode, for handling this case), or the iommu is not
configured.
Please see https://doc.dpdk.org/guides/linux_gsg/linux_drivers.html#vfio


-- 
David Marchand


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

end of thread, other threads:[~2022-09-15  7:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 12:30 how to bind VF interface into dpdk Balakrishnan K
2022-09-15  2:30 ` Satish Patel
2022-09-15  7:12   ` Balakrishnan K
2022-09-15  7:22 ` David Marchand

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).