From patchwork Tue Dec 2 10:26:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Cohen X-Patchwork-Id: 5419121 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 91202BEEA8 for ; Tue, 2 Dec 2014 10:26:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BD0F42027D for ; Tue, 2 Dec 2014 10:26:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F161A2028D for ; Tue, 2 Dec 2014 10:26:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751510AbaLBK0j (ORCPT ); Tue, 2 Dec 2014 05:26:39 -0500 Received: from mail-wi0-f177.google.com ([209.85.212.177]:58560 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754306AbaLBK0g (ORCPT ); Tue, 2 Dec 2014 05:26:36 -0500 Received: by mail-wi0-f177.google.com with SMTP id l15so20412956wiw.4 for ; Tue, 02 Dec 2014 02:26:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kA3iTu/RyQyA2otx0GFE+ytImgVMDvD1n8hLM+ZXDts=; b=EDQFRDBEpptM7hi7Yr+TpL2GYfUzB6pwGS1p7jCrhqKZxzUtP0gmJHebusPh/i0xsw 8N8pCq+i/PrRsy3qjeS1ys+LrK7/iHnbr7HD7bFmWG8GSpQzRfW6B/Qdo8zDkWMiQn/a o74kYhud60x1k7idHF1FlyIlYqz2HeNLuwP2v9khqwEULqxDdx3oQJeGbntqgNn9GPdd W9Cbf8zebsuizVfNsTLmh8lizKSPTtXfJdrW2aWQcYON/ZIkPL60/tceUzdaK1d29Vtb jESXuriFNySYN94zuW4DIMMgkJJV6jTng2cuYEZsz1od0fOElP6eG6BozuAMcBKrqCFX yStA== X-Gm-Message-State: ALoCoQmy3KbNLXlXYWOD52SOtFH2WKr/DvNrzxk1Cu2ynY98uIKcgurWeBZLHVoiKCmbiqAZnybZ X-Received: by 10.180.103.6 with SMTP id fs6mr74190960wib.11.1417515994286; Tue, 02 Dec 2014 02:26:34 -0800 (PST) Received: from localhost (out.voltaire.com. [193.47.165.251]) by mx.google.com with ESMTPSA id 4sm31304684wjs.24.2014.12.02.02.26.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 02 Dec 2014 02:26:33 -0800 (PST) From: Eli Cohen X-Google-Original-From: Eli Cohen To: davem@davemloft.net Cc: roland@kernel.org, linux-rdma@vger.kernel.org, netdev@vger.kernel.org, ogerlitz@mellanox.com, amirv@mellanox.com, Eli Cohen Subject: [PATCH net-next 2/9] net/mlx5_core: Fix min vectors value in mlx5_enable_msix Date: Tue, 2 Dec 2014 12:26:12 +0200 Message-Id: <1417515979-22418-3-git-send-email-eli@mellanox.com> X-Mailer: git-send-email 2.1.3 In-Reply-To: <1417515979-22418-1-git-send-email-eli@mellanox.com> References: <1417515979-22418-1-git-send-email-eli@mellanox.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP mlx5 requires at least one interrupt vector for completions so fix the minvec argument to pci_enable_msix_range() accordingly. Signed-off-by: Eli Cohen --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 4e3c27e77768..c9d4a024f186 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -226,7 +226,7 @@ static int mlx5_enable_msix(struct mlx5_core_dev *dev) table->msix_arr[i].entry = i; nvec = pci_enable_msix_range(dev->pdev, table->msix_arr, - MLX5_EQ_VEC_COMP_BASE, nvec); + MLX5_EQ_VEC_COMP_BASE + 1, nvec); if (nvec < 0) return nvec;