DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] pci device access from dpdk secondary process with igb_uio
@ 2019-12-27  0:58 vijay mohan
  2020-01-02 18:58 ` vijay mohan
  0 siblings, 1 reply; 6+ messages in thread
From: vijay mohan @ 2019-12-27  0:58 UTC (permalink / raw)
  To: dev

Hi All,
I am trying to use pci vf device with secondary process in a multiple
process mode and finding pci_dev->mem_resource[0].addr to be NULL. This
happens when the pci device is attached to igb_uio.ko but with vfio_pci it
works fine.

Looking at the pci device initialization part for secondary process, when
device is presented through igb_uio, (in pci_uio_map_secondary), it doesn't
seems to update pci_dev->mem_resource[X].addr. For vfio-pci, it updates the
addresses in pci_vfio_map_resource_secondary. With the following patch, i
am able to use the device from secondary process but would like to know if
I am missing something.

diff --git a/drivers/bus/pci/pci_common_uio.c
b/drivers/bus/pci/pci_common_uio.c
index 7ea73db..f4dca9d 100644
--- a/drivers/bus/pci/pci_common_uio.c
+++ b/drivers/bus/pci/pci_common_uio.c
@@ -70,6 +70,7 @@
                                }
                                return -1;
                        }
+                       dev->mem_resource[i].addr = mapaddr;
                }
                return 0;
        }

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

end of thread, other threads:[~2020-03-04 12:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-27  0:58 [dpdk-dev] pci device access from dpdk secondary process with igb_uio vijay mohan
2020-01-02 18:58 ` vijay mohan
2020-01-22 17:19   ` Trahe, Fiona
2020-02-25 15:09     ` Trahe, Fiona
2020-02-25 19:45       ` vijay mohan
2020-03-04 12:32   ` Ferruh Yigit

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