All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
To: Thomas Monjalon
	<thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
Cc: dev-VfR2kkLFssw@public.gmane.org
Subject: Re: [PATCH v3 0/3] Mellanox ConnectX-3 PMD
Date: Thu, 26 Feb 2015 15:49:07 +0200	[thread overview]
Message-ID: <20150226134907.GV3806@cloudius-systems.com> (raw)
In-Reply-To: <7873324.ABPKluIWcB@xps13>

On Thu, Feb 26, 2015 at 02:36:27PM +0100, Thomas Monjalon wrote:
> 2015-02-26 13:51, Gleb Natapov:
> > Did git pull today. After enabling mlnx pmd compilation fails with:
> > 
> > dpdk/lib/librte_pmd_mlx4/mlx4.c: In function ‘mlx4_pci_devinit’:
> > dpdk/lib/librte_pmd_mlx4/mlx4.c:4636:14: error: too few arguments to function ‘rte_eth_dev_allocate’
> >     eth_dev = rte_eth_dev_allocate(name);
> 
> Yes, thanks for reporting.
> I didn't test the disabled mlx4 after hotplug integration:
> 	dpdk.org/browse/dpdk/commit/?id=9f1653e7b7e1746e7c
> 
> Clearly, I have to improve my sanity checks.
> Sorry for the inconvenience.
No problem, I fixed that locally, but now I see another issue. I have
several PMDs statically compiled in with my application and I expect
dpdk to choose correct one depending on available HW, but mlnx pmd does
not behave nicely, if its initialization fails it kills entire
application:

EAL: PCI device 0000:03:00.0 on NUMA socket 0
EAL:   probe driver: 15b3:1003 librte_pmd_mlx4
EAL: Error - exiting with code: 1
  Cause: Requested device 0000:03:00.0 cannot be used

This is how other pmds handle situation when init cannot be done:
EAL: PCI device 0000:02:00.0 on NUMA socket 0
EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
EAL:   Not managed by known pt driver, skipped
EAL: PCI device 0000:02:00.1 on NUMA socket 0
EAL:   probe driver: 8086:1528 rte_ixgbe_pmd
EAL:   Not managed by known pt driver, skipped

--
			Gleb.

  reply	other threads:[~2015-02-26 13:49 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-29 15:20 [PATCH 0/2] Mellanox ConnectX-3 PMD Adrien Mazarguil
     [not found] ` <1422544846-10697-1-git-send-email-adrien.mazarguil-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-01-29 15:20   ` [PATCH 1/2] scripts: add auto-config-h.sh Adrien Mazarguil
2015-01-29 15:20   ` [PATCH 2/2] mlx4: new poll mode driver Adrien Mazarguil
     [not found]     ` <1422544846-10697-3-git-send-email-adrien.mazarguil-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-01-29 15:37       ` Stephen Hemminger
     [not found]         ` <20150129153739.38def5d5-CA4OZQ/Yy2Lykuyl+CZolw@public.gmane.org>
2015-01-29 15:45           ` Adrien Mazarguil
2015-02-21  4:16   ` [PATCH v2 0/4] Mellanox ConnectX-3 PMD Adrien Mazarguil
     [not found]     ` <1424492174-27072-1-git-send-email-adrien.mazarguil-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-02-21  4:16       ` [PATCH v2 1/4] scripts: add auto-config-h.sh Adrien Mazarguil
2015-02-25 13:52       ` [PATCH v3 0/3] Mellanox ConnectX-3 PMD Adrien Mazarguil
     [not found]         ` <1424872326-17930-1-git-send-email-adrien.mazarguil-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-02-25 13:52           ` [PATCH v3 1/3] scripts: check features to generate configuration header Adrien Mazarguil
2015-02-25 13:52           ` [PATCH v3 2/3] mlx4: new poll mode driver Adrien Mazarguil
2015-02-25 13:52           ` [PATCH v3 3/3] doc: add librte_pmd_mlx4 documentation Adrien Mazarguil
     [not found]             ` <1424872326-17930-4-git-send-email-adrien.mazarguil-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-03-02 17:45               ` Butler, Siobhan A
2015-02-25 15:13           ` [PATCH v3 0/3] Mellanox ConnectX-3 PMD Thomas Monjalon
2015-02-26 11:51           ` Gleb Natapov
     [not found]             ` <20150226115137.GU3806-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
2015-02-26 13:36               ` Thomas Monjalon
2015-02-26 13:49                 ` Gleb Natapov [this message]
     [not found]                   ` <20150226134907.GV3806-RmZWMc9puTNJc61us3aD9laTQe2KTcn/@public.gmane.org>
2015-02-26 14:18                     ` Adrien Mazarguil
     [not found]                       ` <20150226141834.GX23569-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-02-26 15:03                         ` Gleb Natapov
2015-02-27 18:38                     ` Adrien Mazarguil
     [not found]                       ` <20150227183859.GD23569-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-03-01 11:07                         ` Gleb Natapov
2015-02-21  4:17   ` [PATCH v2 2/4] mlx4: new poll mode driver Adrien Mazarguil
2015-02-21  4:17   ` [PATCH v2 3/4] maintainers: claim responsibility for mlx4 PMD Adrien Mazarguil
2015-02-21  4:17   ` [PATCH v2 4/4] doc: add librte_pmd_mlx4 documentation Adrien Mazarguil
2015-03-01 11:15   ` [PATCH 0/2] Mellanox ConnectX-3 PMD Keunhong Lee

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150226134907.GV3806@cloudius-systems.com \
    --to=gleb-rmzwmc9putnjc61us3ad9latqe2ktcn/@public.gmane.org \
    --cc=dev-VfR2kkLFssw@public.gmane.org \
    --cc=thomas.monjalon-pdR9zngts4EAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.