From: Sebastian Ott <sebott@linux.vnet.ibm.com>
To: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Eran Ben Elisha <eranbe@mellanox.com>,
Jack Morgenstein <jackm@dev.mellanox.co.il>,
Hadar Hen Zion <hadarh@mellanox.com>,
netdev@vger.kernel.org
Subject: Re: mlx4: "failed to allocate default counter port 1"
Date: Wed, 1 Jul 2015 15:59:59 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.11.1507011554060.1691@denkbrett> (raw)
In-Reply-To: <5593E88F.10006@mellanox.com>
On Wed, 1 Jul 2015, Or Gerlitz wrote:
> On 6/30/2015 5:17 PM, Sebastian Ott wrote:
> > On Tue, 30 Jun 2015, Or Gerlitz wrote:
> > > On 6/30/2015 4:24 PM, Sebastian Ott wrote:
> > > > > > Do you run the VF on the same system/kernel as the PF, or the VF is
> > > > > > probed to
> > > > > > VM which runs the latest kernel and the PF runsolder kernel (which?)
> > > > The latter case. The PF is driven by a much older Kernel running OFED
> > > > 2.3.2.0.0.1
> > > >
> > > Can you try running the inbox PF driver that comes with the PF kernel
> > > (what
> > > kernel is that?) I'd like to see we're OK there.
> > Frankly, I don't know. Plus I also don't know how to build an ofed kernel.
> >
>
> I didn't want you to build that package, but rather the outer way around,
> namely
> see what happens if uninstalling this package and running with the mlx4 inbox
> PF
> driver from the kernel provided from your distro of choice or an
> upstreamkernel installed
> by you. Anyway, I hope the below patch would provide a quick band-aid and let
> you to continue running upstream VFs over that PF config, let me know (I will
> be
> OOO till Thu-Sun). Once we see how this behaves, will take it from there.
Thanks for the patch. Unfortunately, that didn't work:
[ 170.531076] mlx4_core 0000:00:00.0: NOP command IRQ test passed
[ 170.531291] mlx4_core 0000:00:00.0: can't allocate counter from old PF driver, using index 255
[ 170.531294] mlx4_core 0000:00:00.0: mlx4_allocate_default_counters: default counter index 255 for port 1
[ 170.531531] mlx4_core 0000:00:00.0: can't allocate counter from old PF driver, using index 255
[ 170.531534] mlx4_core 0000:00:00.0: mlx4_allocate_default_counters: default counter index 255 for port 2
[ 170.531535] mlx4_core 0000:00:00.0: Failed to allocate default counters, aborting
[ 170.587306] mlx4_core: probe of 0000:00:00.0 failed with error -22
Regards,
Sebastian
>
> Or.
>
>
> diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c
> b/drivers/net/ethernet/mellanox/mlx4/main.c
> index 12fbfcb..a66cc6e 100644
> --- a/drivers/net/ethernet/mellanox/mlx4/main.c
> +++ b/drivers/net/ethernet/mellanox/mlx4/main.c
> @@ -2273,6 +2273,10 @@ static int mlx4_allocate_default_counters(struct
> mlx4_dev *dev)
> } else if (err == -ENOENT) {
> err = 0;
> continue;
> + } else if (mlx4_is_slave(dev) && err == -EINVAL) {
> + priv->def_counter[port] =
> MLX4_SINK_COUNTER_INDEX(dev);
> + mlx4_warn(dev, "can't allocate counter from old PF
> driver, using index %d\n",
> + MLX4_SINK_COUNTER_INDEX(dev));
> } else {
> mlx4_err(dev, "%s: failed to allocate default counter
> port %d err %d\n",
> __func__, port + 1, err);
>
>
>
next prev parent reply other threads:[~2015-07-01 14:00 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-30 10:45 mlx4: "failed to allocate default counter port 1" Sebastian Ott
2015-06-30 12:21 ` Or Gerlitz
2015-06-30 13:19 ` Sebastian Ott
2015-06-30 12:53 ` Or Gerlitz
2015-06-30 13:24 ` Sebastian Ott
2015-06-30 13:52 ` Or Gerlitz
2015-06-30 14:17 ` Sebastian Ott
2015-07-01 13:18 ` Or Gerlitz
2015-07-01 13:59 ` Sebastian Ott [this message]
2015-07-01 14:18 ` Sebastian Ott
2015-07-01 20:38 ` Or Gerlitz
2015-07-02 9:20 ` Sebastian Ott
2015-07-29 12:50 ` Sebastian Ott
2015-07-29 13:25 ` Or Gerlitz
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=alpine.LFD.2.11.1507011554060.1691@denkbrett \
--to=sebott@linux.vnet.ibm.com \
--cc=eranbe@mellanox.com \
--cc=hadarh@mellanox.com \
--cc=jackm@dev.mellanox.co.il \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
/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 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).