Message ID | 20221025173110.33192-1-ajit.khaparde@broadcom.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1130930wru; Tue, 25 Oct 2022 10:35:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ogynsmH5cNSv/h+zkc79GtucZO0naYsRpBjoc07D9Z7lbh4si+I67dWQGRuq+6L/9yzV+ X-Received: by 2002:a17:907:7252:b0:791:9fd8:222e with SMTP id ds18-20020a170907725200b007919fd8222emr33356241ejc.729.1666719317349; Tue, 25 Oct 2022 10:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666719317; cv=none; d=google.com; s=arc-20160816; b=WCRYKpWer8gbwBxZU/NuSvzQfToiBUk1lFPzH8wokMqkGqx1uuVCvOGdDerqPSFw+V 9rt1xFzsmAwOR54cZx0xwuRA3sTBo2MH6p2saX4u+Kqzi3hfDdnSuzQKur72XGeL+Fa2 0U80ArWx0w3LAF6c+REwTmPrLa3Ljlqhdav1H3ENJlNRz/YwG3krO/zd3ewr6M4RTTch UGkEyAhdNW8fpIFqMyZTjjRQUjp1XIshghv8NWzprJFlE3dOI/VNO889B4JVWXpgYDRh f2KRADMJWeP7v/zhPbdAOf9UB+nqCF1yh/NT/JTkvgSiXRAEDtANGyPenxfdHSSVLD7g 9DPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7ElRO0TnqE6k4vc6nWDmc1KRZEg3elcKet3Wh3isY2U=; b=QLsPfNgNr0A3wSEoeFIo0XRqWJC0109mn4CwOwtKyMPVRGEn9Xgr+Q8kis0pYonHe6 sctJdJTe9rXtN3KLeuhFR/zx/gSqkMn0ExshZHUvOoZRq0+UEMYYSWjmzSlOQh2uWThO 7G7Y2Ggu95DCteH5jITGCZ217RbsFvNoGWKmLWyu7FNKDSkiQnyov+uqQ09LV1xAYiF2 YaGqYBR/OxfBjeufEcufE2VpnCkPafCYHcfHm4IzqdLwGP5Kq7KxGN5quXAoxvD9Y4Wr HV+8QbtSZPaACApn+jvSnCjx3kINFeXQiyMfdcaF+aRHofm2y2JMMTz30DWui1FnM92z 1g+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=CyQUHn29; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id di9-20020a170906730900b00782a33f2850si3467997ejc.736.2022.10.25.10.34.51; Tue, 25 Oct 2022 10:35:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=CyQUHn29; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231958AbiJYRbV (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Tue, 25 Oct 2022 13:31:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231964AbiJYRbS (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 25 Oct 2022 13:31:18 -0400 Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2EFBF16E2A4 for <linux-kernel@vger.kernel.org>; Tue, 25 Oct 2022 10:31:17 -0700 (PDT) Received: by mail-qk1-x731.google.com with SMTP id b25so8581042qkk.7 for <linux-kernel@vger.kernel.org>; Tue, 25 Oct 2022 10:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=7ElRO0TnqE6k4vc6nWDmc1KRZEg3elcKet3Wh3isY2U=; b=CyQUHn29ni9Qc6Kvlc28FZH1I6ZuC+ohJhKIPETmu5CY/w+izYdDw9O31QfU7HkzrO P7E5qKsVO3SiYLe3ynnPO5dCUxRD4/vWRPRUehKW9lL75tchqhKkjNFAvfenKxP179cE kYYpiTNgbudAPM0YYtJEWbAB6iSAe2reDcTao= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7ElRO0TnqE6k4vc6nWDmc1KRZEg3elcKet3Wh3isY2U=; b=JplH1y58OBolECjXkctdWAhSg3EwyMt+ZDpz3XqyIbsylo3XVWpO3/9uSjEG82s0l/ muldhkA1NkQF9YCcAFOEOMg7TaAN7LAf9lIRZ8FuYnMWVz4PS6kbVDcVLR4K6PGGyeS3 5rE0TO9dPDKCK/JxyvJmKBOZI9lLoSCvlM/7+Q5wuDDfJgdtNoA50ROcVBzkuXxS5NUK z+ztMX9IBPE7TJh60CCAozLqEC5YSdQYgkKqD7s/ZMVpVc767qKECJwKRvuTRNeTetGa y6InEHQ48GhcBLj1A1fX5H7t+bUQoBqYTjeEUImj479ADzIrznO4+8qGXhlhRCUY0PIc G7wg== X-Gm-Message-State: ACrzQf2FPHLD7WtLLcNMg+T26Y+Y/X253m5sbwU+HmakWx3X0w7oNyl9 9bvcT01btzYI/F4aV3FGYiJoHQ== X-Received: by 2002:a05:620a:290d:b0:6b6:1a92:d88a with SMTP id m13-20020a05620a290d00b006b61a92d88amr27957043qkp.58.1666719076285; Tue, 25 Oct 2022 10:31:16 -0700 (PDT) Received: from C02GC2QQMD6T.wifi.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u6-20020a37ab06000000b006eed094dcdasm2329034qke.70.2022.10.25.10.31.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Oct 2022 10:31:14 -0700 (PDT) From: Ajit Khaparde <ajit.khaparde@broadcom.com> To: ajit.khaparde@broadcom.com Cc: andrew.gospodarek@broadcom.com, davem@davemloft.net, edumazet@google.com, jgg@ziepe.ca, kuba@kernel.org, leon@kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, michael.chan@broadcom.com, netdev@vger.kernel.org, pabeni@redhat.com, selvin.xavier@broadcom.com Subject: [PATCH v2 0/6] Add Auxiliary driver support Date: Tue, 25 Oct 2022 10:31:04 -0700 Message-Id: <20221025173110.33192-1-ajit.khaparde@broadcom.com> X-Mailer: git-send-email 2.37.0 (Apple Git-136) In-Reply-To: <20220724231458.93830-1-ajit.khaparde@broadcom.com> References: <20220724231458.93830-1-ajit.khaparde@broadcom.com> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="0000000000007f98a505ebdf46de" X-Spam-Status: No, score=-0.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SORTED_RECIPS,SPF_HELO_NONE,SPF_NONE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747681874679053402?= X-GMAIL-MSGID: =?utf-8?q?1747681874679053402?= |
Series |
Add Auxiliary driver support
|
|
Message
Ajit Khaparde
Oct. 25, 2022, 5:31 p.m. UTC
Add auxiliary device driver for Broadcom devices. The bnxt_en driver will register and initialize an aux device if RDMA is enabled in the underlying device. The bnxt_re driver will then probe and initialize the RoCE interfaces with the infiniband stack. v1->v2: - Incorporated review comments including usage of ulp_id & complex function indirections. - Used function calls provided by auxiliary bus interface instead of proprietary calls. - Refactor code to remove ROCE driver's access to bnxt structure. Please apply. Thanks. Ajit Khaparde (5): bnxt_en: Add auxiliary driver support RDMA/bnxt_re: Use auxiliary driver interface bnxt_en: Remove usage of ulp_id bnxt_en: Use direct API instead of indirection bnxt_en: Use auxiliary bus calls over proprietary calls Hongguang Gao (1): bnxt_en: Remove struct bnxt access from RoCE driver drivers/infiniband/hw/bnxt_re/bnxt_re.h | 9 +- drivers/infiniband/hw/bnxt_re/main.c | 576 +++++++----------- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 10 +- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 8 + drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c | 401 ++++++------ drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h | 51 +- 6 files changed, 494 insertions(+), 561 deletions(-)