From patchwork Thu Jan 17 18:55:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devesh Sharma X-Patchwork-Id: 10768801 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 CD6421390 for ; Thu, 17 Jan 2019 18:55:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BEB3F2ACFF for ; Thu, 17 Jan 2019 18:55:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B2BA52B5B7; Thu, 17 Jan 2019 18:55:31 +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 6C2842ACFF for ; Thu, 17 Jan 2019 18:55:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727588AbfAQSzb (ORCPT ); Thu, 17 Jan 2019 13:55:31 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:43340 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727396AbfAQSzb (ORCPT ); Thu, 17 Jan 2019 13:55:31 -0500 Received: by mail-pf1-f195.google.com with SMTP id w73so5246649pfk.10 for ; Thu, 17 Jan 2019 10:55:30 -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=WNzBW8W4uQrrJtLg4RMTIMXIZoPMH/bpqyKyS1pLzQs=; b=JYU5LfcOVjGCjQvijL/wzMuAintt8Nlk8kKTkWdmxgjnmQiror0KAQiH3Fqri8GH8p dDEcgQHAXyYAwhP4mM15CI7IZZlaBnLj7gL3+VjITK3TgS4C9ym+dzNWYoLQFgd94FNR 6Odb1NrmDrtbVb1nXtnSJy48qkLLX6ff3WBus= 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=WNzBW8W4uQrrJtLg4RMTIMXIZoPMH/bpqyKyS1pLzQs=; b=NI2d+g+pheOMFoxruEETnA2zMtl6VCkkPe+Ql9uBFQZ9HTqSI4pA+MNtCC3sTEpI24 LA9gmyTUWcPXkqtXgEarkKFEv6IF513K5Y1AuNxEdreTviuRnfvFKCcw0saf40LKU1A6 w6KJAXD2H8cplRqZjSqbpyJRsl0lZiEVukhAhrzjLbFbRxnZAt5kGIWP91ZuVGR9RxmI ZOuOp4ViRjYQ+q6kK8EtHhpnNkdyfoqQO/aKf8QcSKrI3uhCqoOI4ihyleQ2T/GqSJ6S Otq0zgYlzJKcxg9NxxtEGq+kTMRtIakgXcoUuIs63UZb8RY1seIwSTku0RPKG885h2ms A+pA== X-Gm-Message-State: AJcUukff1kaKWX2IB1J21vL/FikN6cv5IF+HBzY6gLYI07l5ycrfzWyO 1NonN81d9BKjrfprPw2Ynle10cPZ+dEmpkm/fkzJOeDEBOoNZaLBWPlxMrIC4ZfdWQxxZQTfOul NVFi4IblWZVKVEklDHfsgf5jd4JotoN+nl1L+miwcLZ1k9bCsjbGl4dGwixX1vSmAbwt0meUmT0 4l67s= X-Google-Smtp-Source: ALg8bN6YxpegUagn1moQqYbOj6zwgUr+xLBRicfkqNHvzg2aHvuFhNTpC2zzgDktx67hizrgHUEZNw== X-Received: by 2002:a63:6207:: with SMTP id w7mr14087894pgb.90.1547751330172; Thu, 17 Jan 2019 10:55:30 -0800 (PST) Received: from neo00-el73.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id y191sm5882258pfg.56.2019.01.17.10.55.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 17 Jan 2019 10:55:29 -0800 (PST) From: Devesh Sharma To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, jgg@mellanox.com, Devesh Sharma , Michael Chan Subject: [for-next V3 7/7] RDMA/bnxt_en: Enable RDMA driver support for 57500 chip Date: Thu, 17 Jan 2019 13:55:00 -0500 Message-Id: <1547751300-23887-8-git-send-email-devesh.sharma@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1547751300-23887-1-git-send-email-devesh.sharma@broadcom.com> References: <1547751300-23887-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: Michael Chan Signed-off-by: Devesh Sharma --- 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 ea45a9b..cf47587 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->cp_nr_rings == max_stat_ctxs)