Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3511664pxm; Mon, 28 Feb 2022 22:58:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzi9VXgSO1I4sI3HvHpYU6GRDqjMXa716Yf6X3cfxIbewUxc3Yw6nyBM7jLfQg3AAwku7yJ X-Received: by 2002:a05:6402:b62:b0:3e2:a75f:b949 with SMTP id cb2-20020a0564020b6200b003e2a75fb949mr22851480edb.62.1646117909386; Mon, 28 Feb 2022 22:58:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646117909; cv=none; d=google.com; s=arc-20160816; b=L+cF2HaooqThleGq1Bx3k68mLo5Wl5r4Rz+2TdSCZJ8IoNx8eE/06MCxn1+t1lkMcm DRc09hSk3rkdwdM5GC0TjPRAxGwcfB7iOp1BBpbpk0tR+M4eb3yr+HG0nP3NvluLiiZR IA/jzcnkEMiWGyOJFn9KB6JZje8OZgitM6kPdxRE+doJvI6Remx8oh9AUyimNtbfIRSO I9ipkKhEdpXXAU9AuZ8MbB9TVfYV/K/a+IORe+wvEZPSYbCH1Mk6eVhIFpRhKEqhEeux TExusa5UIW8jx3UL2GMr74lz6ynVrn7uaeZB2Wg4gYcA1eh1JLWX6RveoeKjRpt1/Di6 VCkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:to:from :dkim-signature; bh=wi5o7Y7sCRxccy4y24dsqi8UOjoJfYnZnegCjPxpeSc=; b=XPh2Rd/uOsx/K+oX3AL0Hf/Q2Wum/gwpDi/QyIGqOFznnxNTuVFjmsJ6oCZ7300jJp C8r64D8eyq/VvTYJAD6TbZbzE6Sgu/XlOz6frpIbAjreLZgTrseRebC8+Muwm740E4Vd 30oC/U7fk5XxqQ5FwvHfCpFIy5s4CpZYXlnunBWNiC6hKf+/4fzA8/WzQjj5JpmST8pE 1UumQEhGbEFuBnK117WNgfTrmgOkj7VOXVf7Z2KXk5jADJt5444+PNixpjsc+fpSTy98 iCps9jmMe6oRP5BnIOoh/uDyUBiUDMNyXb7kmYNTrF6zhljCQAVGm4XMW9aVOlLGG+lp XPJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=ZcfvDLQ3; 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=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f20-20020a17090660d400b006d0fbdd284dsi7323412ejk.414.2022.02.28.22.58.05; Mon, 28 Feb 2022 22:58:29 -0800 (PST) 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=@marvell.com header.s=pfpt0220 header.b=ZcfvDLQ3; 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=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232326AbiCAFEy (ORCPT + 99 others); Tue, 1 Mar 2022 00:04:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229584AbiCAFEw (ORCPT ); Tue, 1 Mar 2022 00:04:52 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24312506DC; Mon, 28 Feb 2022 21:04:10 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 21SNdCPM004837; Mon, 28 Feb 2022 21:04:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=wi5o7Y7sCRxccy4y24dsqi8UOjoJfYnZnegCjPxpeSc=; b=ZcfvDLQ3SFSx8LmyTgs2pDVB4gz8QwIMaIf0akM798CgiwgZNBJxZ6DywXD0idNjj2iT 8HfCwndgGkq6qsbhpbSoKx61adjKKh0s8P4mq+knCRcgpgkqQyb6tGNkffOa862vuheB 96ePw0Y4s6her5YebFeQhjQyqnj8jpemPZmQ4ly9Sq5dkdzV6tVV9ZaFpp9g1L6opyM6 axFYSRLN3r1gQF4Erl/fQSyQ6l9CIZmLB5BkMeQ0uaGIuygfXIk2opPB8NRVEcsg6HGu 09aJvFGq0Esnat99Id4peT3nWw4KQpzGu8FBgCIN19xJhszqNu/2r8L6nmMgK/oNauLD hA== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3eh88ps3s1-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 28 Feb 2022 21:04:07 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 28 Feb 2022 21:04:06 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 28 Feb 2022 21:04:06 -0800 Received: from sburla-PowerEdge-T630.caveonetworks.com (unknown [10.106.27.217]) by maili.marvell.com (Postfix) with ESMTP id CE9483F7152; Mon, 28 Feb 2022 21:04:05 -0800 (PST) From: Veerasenareddy Burru To: , , , , , , Subject: [PATCH v2 0/7] Add octeon_ep driver Date: Mon, 28 Feb 2022 21:03:52 -0800 Message-ID: <20220301050359.19374-1-vburru@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: _xPZvfw9tvnmpmF0mPO_gwim-ieUIx8Q X-Proofpoint-ORIG-GUID: _xPZvfw9tvnmpmF0mPO_gwim-ieUIx8Q X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-28_10,2022-02-26_01,2022-02-23_01 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org This driver implements networking functionality of Marvell's Octeon PCI Endpoint NIC. This driver support following devices: * Network controller: Cavium, Inc. Device b200 v2: address review comments on original patch series. Divide PATCH 1/4 from the original series into 4 patches in v2 patch series: PATCH 1/7 to PATCH 4/7. Fix clang build errors. Veerasenareddy Burru (7): octeon_ep: Add driver framework and device initialization octeon_ep: add hardware configuration APIs octeon_ep: Add mailbox for control commands octeon_ep: add Tx/Rx ring resource setup and cleanup octeon_ep: add support for ndo ops octeon_ep: add Tx/Rx processing and interrupt support octeon_ep: add ethtool support for Octeon PCI Endpoint NIC .../device_drivers/ethernet/index.rst | 1 + .../ethernet/marvell/octeon_ep.rst | 35 + MAINTAINERS | 7 + drivers/net/ethernet/marvell/Kconfig | 1 + drivers/net/ethernet/marvell/Makefile | 1 + .../net/ethernet/marvell/octeon_ep/Kconfig | 20 + .../net/ethernet/marvell/octeon_ep/Makefile | 9 + .../marvell/octeon_ep/octep_cn9k_pf.c | 737 +++++++++++ .../ethernet/marvell/octeon_ep/octep_config.h | 204 +++ .../marvell/octeon_ep/octep_ctrl_mbox.c | 254 ++++ .../marvell/octeon_ep/octep_ctrl_mbox.h | 170 +++ .../marvell/octeon_ep/octep_ctrl_net.c | 197 +++ .../marvell/octeon_ep/octep_ctrl_net.h | 299 +++++ .../marvell/octeon_ep/octep_ethtool.c | 463 +++++++ .../ethernet/marvell/octeon_ep/octep_main.c | 1177 +++++++++++++++++ .../ethernet/marvell/octeon_ep/octep_main.h | 379 ++++++ .../marvell/octeon_ep/octep_regs_cn9k_pf.h | 367 +++++ .../net/ethernet/marvell/octeon_ep/octep_rx.c | 508 +++++++ .../net/ethernet/marvell/octeon_ep/octep_rx.h | 199 +++ .../net/ethernet/marvell/octeon_ep/octep_tx.c | 334 +++++ .../net/ethernet/marvell/octeon_ep/octep_tx.h | 284 ++++ 21 files changed, 5646 insertions(+) create mode 100644 Documentation/networking/device_drivers/ethernet/marvell/octeon_ep.rst create mode 100644 drivers/net/ethernet/marvell/octeon_ep/Kconfig create mode 100644 drivers/net/ethernet/marvell/octeon_ep/Makefile create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_cn9k_pf.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_config.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_net.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_ethtool.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_main.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_main.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_rx.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_rx.h create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_tx.c create mode 100644 drivers/net/ethernet/marvell/octeon_ep/octep_tx.h -- 2.17.1