Re: unable to bind to vfio-pci

2023-02-23 Thread Nagendra Prabhu A T
On Tue, Feb 21, 2023 at 9:57 PM Bruce Richardson wrote: > On Tue, Feb 21, 2023 at 09:46:30PM +0530, Nagendra Prabhu A T wrote: > >These are the messages i am seeing dmesg > >[16588.298660] vfio-pci: probe of :8a:00.2 failed with error -22 > >[16591.574630] i40e :8a:00.3: i40e_

Re: unable to bind to vfio-pci

2023-02-23 Thread Nagendra Prabhu A T
These are the messages i am seeing dmesg [16588.298660] vfio-pci: probe of :8a:00.2 failed with error -22 [16591.574630] i40e :8a:00.3: i40e_ptp_stop: removed PHC on enp138s0f3 [16593.138613] vfio-pci: probe of :8a:00.3 failed with error -22 [16593.138674] vfio-pci: probe of :8a:00

Re: unable to bind to vfio-pci

2023-02-23 Thread Nagendra Prabhu A T
HI Bruce, Thanks for your reply. I have removed the binding of all other ports. So , i can confirm that #2 is taken care of. I tried using a different driver "uio_pci_generic". I still see the same issue for that driver as well. The problem seems to be because the write operation is not happeni

Re: unable to bind to vfio-pci

2023-02-21 Thread Stephen Hemminger
On Tue, 21 Feb 2023 16:27:31 + Bruce Richardson wrote: > On Tue, Feb 21, 2023 at 09:46:30PM +0530, Nagendra Prabhu A T wrote: > >These are the messages i am seeing dmesg > >[16588.298660] vfio-pci: probe of :8a:00.2 failed with error -22 > >[16591.574630] i40e :8a:00.3: i4

Re: unable to bind to vfio-pci

2023-02-21 Thread Bruce Richardson
On Tue, Feb 21, 2023 at 09:46:30PM +0530, Nagendra Prabhu A T wrote: >These are the messages i am seeing dmesg >[16588.298660] vfio-pci: probe of :8a:00.2 failed with error -22 >[16591.574630] i40e :8a:00.3: i40e_ptp_stop: removed PHC on >enp138s0f3 >[16593.138613] vfio-

Re: unable to bind to vfio-pci

2023-02-21 Thread Bruce Richardson
On Tue, Feb 21, 2023 at 09:30:15PM +0530, Nagendra Prabhu A T wrote: >HI Bruce, >Thanks for your reply. >I have removed the binding of all other ports. So , i can confirm that >#2 is taken care of. >I tried using a different driver "uio_pci_generic". I still see the >same is

unable to bind to vfio-pci

2023-02-21 Thread Nagendra Prabhu A T
Hi All, I am trying to bind vfio-pci using dpdk-devbind.py, But i am seeing teh following error : root@nat-kvm:/usr/src/dpdk-22.11/usertools# dpdk-devbind.py --bind=vfio-pci :51:00.0 Error: bind failed for :51:00.0 - Cannot bind to driver vfio-pci: [Errno 22] Invalid argument root@nat-kvm

Re: unable to bind to vfio-pci

2023-02-21 Thread Bruce Richardson
On Tue, Feb 21, 2023 at 08:05:20PM +0530, Nagendra Prabhu A T wrote: >Hi All, >I am trying to bind vfio-pci using dpdk-devbind.py, But i am seeing teh >following error : >root@nat-kvm:/usr/src/dpdk-22.11/usertools# dpdk-devbind.py >--bind=vfio-pci :51:00.0 Error: bind failed

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-21 Thread Burakov, Anatoly
On 21-Sep-20 12:54 PM, Sarosh Arif wrote: On Thu, Sep 17, 2020 at 2:35 PM Burakov, Anatoly wrote: On 17-Sep-20 10:21 AM, Sarosh Arif wrote: On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson wrote: On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: I have been trying to bind to vf

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-21 Thread Sarosh Arif
On Thu, Sep 17, 2020 at 2:35 PM Burakov, Anatoly wrote: > > On 17-Sep-20 10:21 AM, Sarosh Arif wrote: > > On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson > > wrote: > >> > >> On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: > >>> I have been trying to bind to vfio-pci using usertools

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-21 Thread Burakov, Anatoly
On 21-Sep-20 12:10 PM, Sarosh Arif wrote: On Thu, Sep 17, 2020 at 4:50 PM Burakov, Anatoly wrote: On 17-Sep-20 11:22 AM, Bruce Richardson wrote: On Thu, Sep 17, 2020 at 02:21:27PM +0500, Sarosh Arif wrote: On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson wrote: On Thu, Sep 17, 2020 at 11:

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-21 Thread Sarosh Arif
On Thu, Sep 17, 2020 at 4:50 PM Burakov, Anatoly wrote: > > On 17-Sep-20 11:22 AM, Bruce Richardson wrote: > > On Thu, Sep 17, 2020 at 02:21:27PM +0500, Sarosh Arif wrote: > >> On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson > >> wrote: > >>> > >>> On Thu, Sep 17, 2020 at 11:52:58AM +0500, Saros

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Burakov, Anatoly
On 17-Sep-20 11:22 AM, Bruce Richardson wrote: On Thu, Sep 17, 2020 at 02:21:27PM +0500, Sarosh Arif wrote: On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson wrote: On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: I have been trying to bind to vfio-pci using usertools/dpdk-devbind

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Bruce Richardson
On Thu, Sep 17, 2020 at 02:21:27PM +0500, Sarosh Arif wrote: > On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson > wrote: > > > > On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: > > > I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py > > > but am unable to do so. T

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Burakov, Anatoly
On 17-Sep-20 10:21 AM, Sarosh Arif wrote: On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson wrote: On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py but am unable to do so. The reason behind this is that I am una

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Sarosh Arif
On Thu, Sep 17, 2020 at 2:17 PM Bruce Richardson wrote: > > On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: > > I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py > > but am unable to do so. The reason behind this is that I am unable to > > write in /sys/bus/pci/dr

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Bruce Richardson
On Thu, Sep 17, 2020 at 11:52:58AM +0500, Sarosh Arif wrote: > I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py > but am unable to do so. The reason behind this is that I am unable to > write in /sys/bus/pci/drivers/vfio-pci/bind. Upon searching solutions > I tried a couple of

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Sarosh Arif
Hello, On Thu, Sep 17, 2020 at 12:32 PM Dybkowski, AdamX wrote: > > Hi. > > > -Original Message- > > From: dev On Behalf Of Sarosh Arif > > Sent: Thursday, 17 September, 2020 08:53 > > To: dev@dpdk.org > > Subject: [dpdk-dev] unable to bind to vfio

Re: [dpdk-dev] unable to bind to vfio-pci

2020-09-17 Thread Dybkowski, AdamX
Hi. > -Original Message- > From: dev On Behalf Of Sarosh Arif > Sent: Thursday, 17 September, 2020 08:53 > To: dev@dpdk.org > Subject: [dpdk-dev] unable to bind to vfio-pci > > I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py but > am una

[dpdk-dev] unable to bind to vfio-pci

2020-09-16 Thread Sarosh Arif
I have been trying to bind to vfio-pci using usertools/dpdk-devbind.py but am unable to do so. The reason behind this is that I am unable to write in /sys/bus/pci/drivers/vfio-pci/bind. Upon searching solutions I tried a couple of things such as setting iommu=pt and intel_iommu=on and ensured vt-d