netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: matanb@mellanox.com
Cc: netdev@vger.kernel.org, talal@mellanox.com, majd@mellanox.com,
	ogerlitz@mellanox.com, doront@mellanox.com
Subject: Re: [PATCH net] net/mlx5_core: Fix trimming down IRQ number
Date: Sun, 17 Jan 2016 12:08:35 -0500 (EST)	[thread overview]
Message-ID: <20160117.120835.1470956284086358406.davem@davemloft.net> (raw)
In-Reply-To: <1453022747-1993-1-git-send-email-matanb@mellanox.com>

From: Matan Barak <matanb@mellanox.com>
Date: Sun, 17 Jan 2016 11:25:47 +0200

> From: Doron Tsur <doront@mellanox.com>
> 
> With several ConnectX-4 cards installed on a server, one may receive
> irqn > 255 from the kernel API, which we mistakenly trim to 8bit.
> 
> This causes EQ creation failure with the following stack trace:
> [<ffffffff812a11f4>] dump_stack+0x48/0x64
> [<ffffffff810ace21>] __setup_irq+0x3a1/0x4f0
> [<ffffffff810ad7e0>] request_threaded_irq+0x120/0x180
> [<ffffffffa0923660>] ? mlx5_eq_int+0x450/0x450 [mlx5_core]
> [<ffffffffa0922f64>] mlx5_create_map_eq+0x1e4/0x2b0 [mlx5_core]
> [<ffffffffa091de01>] alloc_comp_eqs+0xb1/0x180 [mlx5_core]
> [<ffffffffa091ea99>] mlx5_dev_init+0x5e9/0x6e0 [mlx5_core]
> [<ffffffffa091ec29>] init_one+0x99/0x1c0 [mlx5_core]
> [<ffffffff812e2afc>] local_pci_probe+0x4c/0xa0
> 
> Fixing it by changing of the irqn type from u8 to unsigned int to
> support values > 255
> 
> Fixes: 61d0e73e0a5a ('net/mlx5_core: Use the the real irqn in eq->irqn')
> Reported-by: Jiri Pirko <jiri@mellanox.com>
> Signed-off-by: Doron Tsur <doront@mellanox.com>
> Signed-off-by: Matan Barak <matanb@mellanox.com>

Applied and queued up for -stable, thanks.

      reply	other threads:[~2016-01-17 17:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-17  9:25 [PATCH net] net/mlx5_core: Fix trimming down IRQ number Matan Barak
2016-01-17 17:08 ` David Miller [this message]

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=20160117.120835.1470956284086358406.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=doront@mellanox.com \
    --cc=majd@mellanox.com \
    --cc=matanb@mellanox.com \
    --cc=netdev@vger.kernel.org \
    --cc=ogerlitz@mellanox.com \
    --cc=talal@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).