From patchwork Mon Dec 31 06:10:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 10745305 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 75DAA13AD for ; Mon, 31 Dec 2018 06:10:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6360A286F7 for ; Mon, 31 Dec 2018 06:10:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57C2D287B6; Mon, 31 Dec 2018 06:10:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 10B28286F7 for ; Mon, 31 Dec 2018 06:10:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727050AbeLaGKc (ORCPT ); Mon, 31 Dec 2018 01:10:32 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:34117 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbeLaGKc (ORCPT ); Mon, 31 Dec 2018 01:10:32 -0500 Received: by mail-pg1-f194.google.com with SMTP id j10so12398216pga.1 for ; Sun, 30 Dec 2018 22:10:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=q+MyzDgezTlsf5Poz59DtLNSCEB0RYUy2LElsl4xe2I=; b=EVxTWBfARL9xkU37SD8vpsym50HGODg+8oqEVKWHVWblihqIMjZcKp6PCPfbvqUkcv 93TATYJL3Aeby3KOXIyhcLHP7NAWtzoZqbPB/5j6EPhmmL1mVDabJlhLY2XuqH51nM+7 meMBjxPbXhgHhTZ4I1rFb+nJYTNy0rmiswzlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=q+MyzDgezTlsf5Poz59DtLNSCEB0RYUy2LElsl4xe2I=; b=oHf/ledauwGbn4T3g4ks5KXRUgPOvbpPWq2JjVjxYHrL5j7plGcCf4IxfIitA9exDx UdisBPMPVUkaTWW47XsG/Og10d8Vk1XYQFSTM+0yoXXR9P5qJZkLOCJbglSIGeqZ6cgL I4fTapvCEwcqiid1i0jTmICibYP5mDloEbNzN0zPajV8+Iaatn4qDoahBu7peeURvCNd piju8YEos2soIxjM8fHjlin2wpCiERCqnDWz10kYL0636OYJt/DD46ILHlGCDLXmP28I WEJUN3gC5Q9DIvx9Jgk+sDv6GsUb6Wacod8JpQhkgp1YvP6anFs5dewKvjgz/xQsnUOS f4tw== X-Gm-Message-State: AJcUukdKJNYzIdLmfhP3PCT/wzuez3Ge7Y59I6KKKpSsm3rWkTZ9YwMb tWZEAY/Nkrbpqr85lt1QCJs1e9T/XYA= X-Google-Smtp-Source: ALg8bN6pM8l81JW/8hCtXsxIcFcP+UV8+E16CDmSAVpXS7715EIRR5w15wuQulxL9LOZ68FlmCN7wQ== X-Received: by 2002:a63:c303:: with SMTP id c3mr6574130pgd.268.1546236631819; Sun, 30 Dec 2018 22:10:31 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id z9sm135941786pfd.99.2018.12.30.22.10.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 30 Dec 2018 22:10:31 -0800 (PST) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@mellanox.com, Devesh Sharma , Michael Chan Subject: [PATCH 7/7] RDMA/bnxt_en: Enable RDMA driver support for 57500 chip Date: Mon, 31 Dec 2018 01:10:07 -0500 Message-Id: <1546236607-15948-8-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1546236607-15948-1-git-send-email-devesh.sharma@broadcom.com> References: <1546236607-15948-1-git-send-email-devesh.sharma@broadcom.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Re-enabling RDMA driver support on 57500 chips. Removing the forced error code for 57500 chip. Signed-off-by: Devesh Sharma Signed-off-by: Michael Chan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c index 0a3097b..22d92fa 100644 --- a/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c +++ b/drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c @@ -43,9 +43,6 @@ static int bnxt_register_dev(struct bnxt_en_dev *edev, int ulp_id, if (ulp_id == BNXT_ROCE_ULP) { unsigned int max_stat_ctxs; - if (bp->flags & BNXT_FLAG_CHIP_P5) - return -EOPNOTSUPP; - max_stat_ctxs = bnxt_get_max_func_stat_ctxs(bp); if (max_stat_ctxs <= BNXT_MIN_ROCE_STAT_CTXS || bp->num_stat_ctxs == max_stat_ctxs)