* rte_eth_dev_configure fails on VM with e1000 drivers @ 2014-04-18 12:09 B Gopikrishna [not found] ` <OF525AF595.018F8F54-ON65257CBE.0042CC6D-65257CBE.0042CC9B-/cgKlWMm3F8@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: B Gopikrishna @ 2014-04-18 12:09 UTC (permalink / raw) To: dev-VfR2kkLFssw Hi when I run the l3fwd application with the below command line, I am observing the error "Cannot configure device: err=-22, port=0". The complete log is posted below. ./build/l3fwd -c 0x03 -n 2 -- -p 0x03 --config="(0,0,0),(1,1,1)" Setup: a) Virtual machine booted with Fedora20 with 2 virtual CPU b) compiled DPDK git version c) configured 2 vNIC's with e1000 drivers Any help in resolving the error would be of great help. ******************************************************************** Network devices using IGB_UIO driver ==================================== 0000:00:0b.0 '82540EM Gigabit Ethernet Controller' drv=igb_uio unused= 0000:00:0c.0 '82540EM Gigabit Ethernet Controller' drv=igb_uio unused= Network devices using kernel driver =================================== 0000:00:03.0 'Virtio network device' if= drv=virtio-pci unused=igb_ui ******************************************************************** EAL: Master core 0 is ready (tid=8ac3e880) EAL: Core 1 is ready (tid=3f1b0700) EAL: PCI device 0000:00:03.0 on NUMA socket -1 EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: 0000:00:03.0 not managed by UIO driver, skipping EAL: PCI device 0000:00:0b.0 on NUMA socket -1 EAL: probe driver: 8086:100e rte_em_pmd EAL: PCI memory mapped at 0x7fa58abe8000 EAL: PCI device 0000:00:0c.0 on NUMA socket -1 EAL: probe driver: 8086:100e rte_em_pmd EAL: PCI memory mapped at 0x7fa58abc8000 Initializing port 0 ... Creating queues: nb_rxq=1 nb_txq=2... EAL: Error - exiting with code: 1 Cause: Cannot configure device: err=-22, port=0 ******************************************************************** Regards Gopi Krishna B =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <OF525AF595.018F8F54-ON65257CBE.0042CC6D-65257CBE.0042CC9B-/cgKlWMm3F8@public.gmane.org>]
* Re: rte_eth_dev_configure fails on VM with e1000 drivers [not found] ` <OF525AF595.018F8F54-ON65257CBE.0042CC6D-65257CBE.0042CC9B-/cgKlWMm3F8@public.gmane.org> @ 2014-04-18 12:31 ` Thomas Monjalon 2014-04-18 12:37 ` Tomasz K 0 siblings, 1 reply; 6+ messages in thread From: Thomas Monjalon @ 2014-04-18 12:31 UTC (permalink / raw) To: B Gopikrishna; +Cc: dev-VfR2kkLFssw Hi, 2014-04-18 17:39, B Gopikrishna: > when I run the l3fwd application with the below command line, I am observing > the error "Cannot configure device: err=-22, port=0". The complete log is > posted below. Could you try to reproduce it with the git HEAD version? It may be fixed by this commit: d73d8f3 timer: fix TSC frequency by not reading /proc/cpuinfo -- Thomas ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: rte_eth_dev_configure fails on VM with e1000 drivers 2014-04-18 12:31 ` Thomas Monjalon @ 2014-04-18 12:37 ` Tomasz K [not found] ` <CAHJKsGzfy9bRAdxjVf6YJP9H7s3=64PFcPoVxAfmP7no0CkWBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Tomasz K @ 2014-04-18 12:37 UTC (permalink / raw) To: Thomas Monjalon; +Cc: dev, B Gopikrishna Hi Gopi I recently run into the same problem when using 82576 with igb_uio on VM. The problem is not e1000 or igb. The problem is with the other network device managed by virtio-pci driver Notice that when application polls for ETH devices it prints out EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: 0000:00:03.0 not managed by UIO driver, skipping So even though this NIC is not managed by igb_uio driver the app prints that driver used for it is rte_virtio_pmd. After setting up ETH devices app tries to set up tx/rx queues and it fails on port 0 (which is virtio) You can try and run the application with -p 0x6 instead of 0x3. This should mask out port0 from configuration Thanks Tomasz 2014-04-18 14:31 GMT+02:00 Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>: > Hi, > > 2014-04-18 17:39, B Gopikrishna: > > when I run the l3fwd application with the below command line, I am > observing > > the error "Cannot configure device: err=-22, port=0". The complete log is > > posted below. > > Could you try to reproduce it with the git HEAD version? > It may be fixed by this commit: > d73d8f3 timer: fix TSC frequency by not reading /proc/cpuinfo > > -- > Thomas > ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <CAHJKsGzfy9bRAdxjVf6YJP9H7s3=64PFcPoVxAfmP7no0CkWBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: rte_eth_dev_configure fails on VM with e1000 drivers [not found] ` <CAHJKsGzfy9bRAdxjVf6YJP9H7s3=64PFcPoVxAfmP7no0CkWBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2014-04-29 9:28 ` B Gopikrishna [not found] ` <OF692BB9FE.85B7E584-ON65257CC9.00341504-65257CC9.00341510-/cgKlWMm3F8@public.gmane.org> 2014-04-29 9:30 ` rte_eth_dev_configure fails on VM with e1000 drivers #PERSONAL# B Gopikrishna 1 sibling, 1 reply; 6+ messages in thread From: B Gopikrishna @ 2014-04-29 9:28 UTC (permalink / raw) To: Tomasz K; +Cc: dev Apologies for the delayed reply, we continued with 1 core to complete our work. But currently we would like to extend running the application with 2 core's and we are still unable to after following suggestions by Thomas, the commit mentioned by you is already available as part of the DPDK code we compiled. Tomasz, we tried with the port mask of 0x06, but this doesnot work either. Any other suggestions or pointers to resolve the same would be of great help. Thankyou Regards Gopi Krishna B -----Tomasz K <tomasz.kasowicz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: ----- To: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> From: Tomasz K <tomasz.kasowicz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Date: 04/18/2014 06:07PM cc: B Gopikrishna <b.gopikrishna-/cgKlWMm3F8@public.gmane.org>, dev <dev-VfR2kkLFssw@public.gmane.org> Subject: Re: [dpdk-dev] rte_eth_dev_configure fails on VM with e1000 drivers Hi Gopi I recently run into the same problem when using 82576 with igb_uio on VM. The problem is not e1000 or igb. The problem is with the other network device managed by virtio-pci driver Notice that when application polls for ETH devices it prints out EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: 0000:00:03.0 not managed by UIO driver, skipping So even though this NIC is not managed by igb_uio driver the app prints that driver used for it is rte_virtio_pmd. After setting up ETH devices app tries to set up tx/rx queues and it fails on port 0 (which is virtio) You can try and run the application with -p 0x6 instead of 0x3. This should mask out port0 from configuration Thanks Tomasz 2014-04-18 14:31 GMT+02:00 Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>: Hi, 2014-04-18 17:39, B Gopikrishna: > when I run the l3fwd application with the below command line, I am observing > the error "Cannot configure device: err=-22, port=0". The complete log is > posted below. Could you try to reproduce it with the git HEAD version? It may be fixed by this commit: d73d8f3 timer: fix TSC frequency by not reading /proc/cpuinfo -- Thomas =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <OF692BB9FE.85B7E584-ON65257CC9.00341504-65257CC9.00341510-/cgKlWMm3F8@public.gmane.org>]
* Re: rte_eth_dev_configure fails on VM with e1000 drivers [not found] ` <OF692BB9FE.85B7E584-ON65257CC9.00341504-65257CC9.00341510-/cgKlWMm3F8@public.gmane.org> @ 2014-04-29 9:39 ` Marc Sune 0 siblings, 0 replies; 6+ messages in thread From: Marc Sune @ 2014-04-29 9:39 UTC (permalink / raw) To: dev-VfR2kkLFssw Maybe useless but, I've also seen this error when trying to configure e1000's with more than 1 queue. Sometimes the only way to see such (stupid) errors is to enable the DEBUG output from the driver: marc@dpdk:~/dpdk/config$ git diff . diff --git a/config/defconfig_x86_64-default-linuxapp-gcc b/config/defconfig_x86_64-default-linuxapp-gcc index f11ffbf..9175954 100644 --- a/config/defconfig_x86_64-default-linuxapp-gcc +++ b/config/defconfig_x86_64-default-linuxapp-gcc @@ -122,7 +122,7 @@ CONFIG_RTE_LOG_LEVEL=8 CONFIG_RTE_LOG_HISTORY=256 CONFIG_RTE_LIBEAL_USE_HPET=n CONFIG_RTE_EAL_ALLOW_INV_SOCKET_ID=n -CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=n +CONFIG_RTE_EAL_ALWAYS_PANIC_ON_ERROR=y @@ -158,11 +158,11 @@ CONFIG_RTE_ETHDEV_QUEUE_STAT_CNTRS=16 # CONFIG_RTE_LIBRTE_EM_PMD=y CONFIG_RTE_LIBRTE_IGB_PMD=y -CONFIG_RTE_LIBRTE_E1000_DEBUG_INIT=n -CONFIG_RTE_LIBRTE_E1000_DEBUG_RX=n +CONFIG_RTE_LIBRTE_E1000_DEBUG_INIT=y +CONFIG_RTE_LIBRTE_E1000_DEBUG_RX=y CONFIG_RTE_LIBRTE_E1000_DEBUG_TX=n CONFIG_RTE_LIBRTE_E1000_DEBUG_TX_FREE=n -CONFIG_RTE_LIBRTE_E1000_DEBUG_DRIVER=n +CONFIG_RTE_LIBRTE_E1000_DEBUG_DRIVER=y CONFIG_RTE_LIBRTE_E1000_PF_DISABLE_STRIP_CRC=n @all: would it make sense to be able to enable debug for non performance critical operations (so except for TX/RX) via an API calls/global variables? Best regards marc On 29/04/14 11:28, B Gopikrishna wrote: > Apologies for the delayed reply, we continued with 1 core to complete our work. But > currently we would like to extend running the application with 2 core's and we are still unable to after following suggestions by > > Thomas, the commit mentioned by you is already available as part of the DPDK code we compiled. > > Tomasz, we tried with the port mask of 0x06, but this doesnot work either. > > Any other suggestions or pointers to resolve the same would be of great help. > Thankyou > > Regards > Gopi Krishna B > > -----Tomasz K <tomasz.kasowicz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: ----- > To: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> > From: Tomasz K <tomasz.kasowicz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Date: 04/18/2014 06:07PM > cc: B Gopikrishna <b.gopikrishna-/cgKlWMm3F8@public.gmane.org>, dev <dev-VfR2kkLFssw@public.gmane.org> > Subject: Re: [dpdk-dev] rte_eth_dev_configure fails on VM with e1000 drivers > > > Hi Gopi > > I recently run into the same problem when using 82576 with igb_uio on VM. > The problem is not e1000 or igb. The problem is with the other network device managed by virtio-pci driver > > > Notice that when application polls for ETH devices it prints out > EAL: probe driver: 1af4:1000 rte_virtio_pmd > EAL: 0000:00:03.0 not managed by UIO driver, skipping > > > So even though this NIC is not managed by igb_uio driver the app prints that driver used for it is rte_virtio_pmd. > After setting up ETH devices app tries to set up tx/rx queues and it fails on port 0 (which is virtio) > > > You can try and run the application with -p 0x6 instead of 0x3. This should mask out port0 from configuration > > > Thanks > Tomasz > > > 2014-04-18 14:31 GMT+02:00 Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>: > > Hi, > > 2014-04-18 17:39, B Gopikrishna: > >> when I run the l3fwd application with the below command line, I am observing >> the error "Cannot configure device: err=-22, port=0". The complete log is >> posted below. > > Could you try to reproduce it with the git HEAD version? > It may be fixed by this commit: > d73d8f3 timer: fix TSC frequency by not reading /proc/cpuinfo > > -- > Thomas > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: rte_eth_dev_configure fails on VM with e1000 drivers #PERSONAL# [not found] ` <CAHJKsGzfy9bRAdxjVf6YJP9H7s3=64PFcPoVxAfmP7no0CkWBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-04-29 9:28 ` B Gopikrishna @ 2014-04-29 9:30 ` B Gopikrishna 1 sibling, 0 replies; 6+ messages in thread From: B Gopikrishna @ 2014-04-29 9:30 UTC (permalink / raw) To: Tomasz K; +Cc: dev Apologies for the delayed reply, we continued with 1 core to complete our work. But currently we would like to extend running the application with 2 core's and we are still unable to after following suggestions by Thomas, the commit mentioned by you is already available as part of the DPDK code we compiled. Tomasz, we tried with the port mask of 0x06, but this doesnot work either. Any other suggestions or pointers to resolve the same would be of great help. Thankyou Regards Gopi Krishna B -----Tomasz K <tomasz.kasowicz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: ----- To: Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org> From: Tomasz K <tomasz.kasowicz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Date: 04/18/2014 06:07PM cc: B Gopikrishna <b.gopikrishna-/cgKlWMm3F8@public.gmane.org>, dev <dev-VfR2kkLFssw@public.gmane.org> Subject: Re: [dpdk-dev] rte_eth_dev_configure fails on VM with e1000 drivers Hi Gopi I recently run into the same problem when using 82576 with igb_uio on VM. The problem is not e1000 or igb. The problem is with the other network device managed by virtio-pci driver Notice that when application polls for ETH devices it prints out EAL: probe driver: 1af4:1000 rte_virtio_pmd EAL: 0000:00:03.0 not managed by UIO driver, skipping So even though this NIC is not managed by igb_uio driver the app prints that driver used for it is rte_virtio_pmd. After setting up ETH devices app tries to set up tx/rx queues and it fails on port 0 (which is virtio) You can try and run the application with -p 0x6 instead of 0x3. This should mask out port0 from configuration Thanks Tomasz 2014-04-18 14:31 GMT+02:00 Thomas Monjalon <thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>: Hi, 2014-04-18 17:39, B Gopikrishna: > when I run the l3fwd application with the below command line, I am observing > the error "Cannot configure device: err=-22, port=0". The complete log is > posted below. Could you try to reproduce it with the git HEAD version? It may be fixed by this commit: d73d8f3 timer: fix TSC frequency by not reading /proc/cpuinfo -- Thomas =====-----=====-----===== Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-04-29 9:39 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-04-18 12:09 rte_eth_dev_configure fails on VM with e1000 drivers B Gopikrishna [not found] ` <OF525AF595.018F8F54-ON65257CBE.0042CC6D-65257CBE.0042CC9B-/cgKlWMm3F8@public.gmane.org> 2014-04-18 12:31 ` Thomas Monjalon 2014-04-18 12:37 ` Tomasz K [not found] ` <CAHJKsGzfy9bRAdxjVf6YJP9H7s3=64PFcPoVxAfmP7no0CkWBA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2014-04-29 9:28 ` B Gopikrishna [not found] ` <OF692BB9FE.85B7E584-ON65257CC9.00341504-65257CC9.00341510-/cgKlWMm3F8@public.gmane.org> 2014-04-29 9:39 ` Marc Sune 2014-04-29 9:30 ` rte_eth_dev_configure fails on VM with e1000 drivers #PERSONAL# B Gopikrishna
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).