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 issue for that driver as well.
>    The problem seems to be because the write operation is not happening in
>    "bind" file.
>    Infact tried doing the following step manually. That also failed
>    echo sh -c 0000:51:00.0 > /sys/bus/pci/drivers/uio_pci_generic/bind
>    bash: echo: write error: No such device

The "sh -c" doesn't look right in that command. It should just echo the
device id to the bind file. However, it's generally recommended just to use
the devbind script, as more writes to sysfs may be necessary first, e.g. to
register the device ids first.

>    I have required permission for the file.
>    I tried doing with "sudo"
>    I dont have selinux running
>    So not sure whats blocking me. Infact , even
>    "cat /sys/bus/pci/drivers/uio_pci_generic/bind" is failing
>    Can you please help.

To track down issues other than the obvious, I think we need more
information. For example, what NIC card is this? Are there any useful error
messages in dmesg?

/Bruce

Reply via email to