Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1778393pxp; Mon, 7 Mar 2022 02:06:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzWHCH7/1hiNa777UK7HHTg6tFP+h7ghbSNml18bOoL2ZuoU2NYSW471MGGTAI9f9RGQwAD X-Received: by 2002:a05:6402:5214:b0:415:ef42:69b3 with SMTP id s20-20020a056402521400b00415ef4269b3mr10412063edd.91.1646647579822; Mon, 07 Mar 2022 02:06:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646647579; cv=none; d=google.com; s=arc-20160816; b=S242N9g+EBdWyJ7dFcp9kOtXj6qW87bLRmIvCtI/HhlQJ0W5IgqfEQfnE5faSaNjZR 2dup4y2wbiNJ65BcfQz0pr3f2tfelaIgUx6DnIOcqVsuZMyEcPk8QlQ+GBL6K96k3nLS uAHHqpGUZBXTethTs8pq0X56Nt4y39ejIi9RKTfz1wDGRN8uIngH/+SFSWRL87yCoqsf I+6H6jZseHJqeQ3YVlGFLV5OcUSbUwpOAdkXFIM0fuRajMq76f1EFjDp9J+fCztDutvd PpkZvmPwRfHJIYt5NIvy3JV7R0PYLdmrgJZ5Z8U/7spmSIrnmt8pHc2fmSP9puzq5erU MWqg== 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=tnNRhccJgcMUcoI9bWYGc+iOInXB9vAB50za7neiZI0=; b=f4hMeUXT46MX1W4e/2uPYjgALOblDLN4/ftvfTTLupRDheoiPzme5U/fYyRNHcGqle RsASURI6+4Ci55GSuULNgmToJyNNsyx5jbtbQ3D566G9a1+mdSPGRYnBXjlLrNuIB1QC DZtP1bZo3uxdI0UJHikVBmMLKnSHLnQx4KK8nnWjM/sfmHvGnA3z9UD2oA0DVrIGvu+F f5MBcfrrRkOe73kFfuzLmPt5O1JkIEBChc5e0wk+GbDM0sOm1TPfjCG1kCVBnFAqEoZj HbZYrpshdJ1yNKtliGjv5h4J3BNap2VIE3AYSNpaJ6whq3m5cfU8l3fE+0iBuVWjVfXM Acfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=YmuBHoFM; 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 ky7-20020a170907778700b006cf9ccc9505si7428672ejc.40.2022.03.07.02.05.57; Mon, 07 Mar 2022 02:06:19 -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=YmuBHoFM; 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 S238134AbiCGJdf (ORCPT + 99 others); Mon, 7 Mar 2022 04:33:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238546AbiCGJ3S (ORCPT ); Mon, 7 Mar 2022 04:29:18 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6E3D340D8; Mon, 7 Mar 2022 01:27:36 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2278qQAj024110; Mon, 7 Mar 2022 01:26:51 -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=tnNRhccJgcMUcoI9bWYGc+iOInXB9vAB50za7neiZI0=; b=YmuBHoFM5UGcdW50fFOvSkQbDk6CVTOJM0YByEvQ86z+Iy5ocgjkSCWYipg5om3ECct7 ayCIyvM1PEGWSlVO5TsGURVXxKXukL1PUVpAQovyAE532HN1VncOS+igSQPvIiVTCgOt +AOyojyy2HXTq5wMr3AdbcCK31tJ7YuAMgxaf0G0ERy58zpLYX1LWKWg1MGHg376yNvd Qo9WJtrJ4cS5qD3oaKMl2qwQpuWJJHiJ8+jWYybxKwET9C+FTwnEfktWWgc9Azpoo9Ye z1m3sQLgdnuo37QcQAqGaM4GqBuBv3FbENJn44QD15SHHsCPqMLpX6j3DRYMx1pJTTBl Fw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3em88re1h5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 07 Mar 2022 01:26:51 -0800 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 7 Mar 2022 01:26:49 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 7 Mar 2022 01:26:49 -0800 Received: from sburla-PowerEdge-T630.caveonetworks.com (unknown [10.106.27.217]) by maili.marvell.com (Postfix) with ESMTP id 1BD413F7043; Mon, 7 Mar 2022 01:26:49 -0800 (PST) From: Veerasenareddy Burru To: , , , , , , Subject: [PATCH v3 0/7] Add octeon_ep driver Date: Mon, 7 Mar 2022 01:26:39 -0800 Message-ID: <20220307092646.17156-1-vburru@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: A16DOrOSOnaVJCJHXUG3slUbKU_JxrL4 X-Proofpoint-GUID: A16DOrOSOnaVJCJHXUG3slUbKU_JxrL4 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-03-07_01,2022-03-04_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 -> V3: Fix warnings and errors reported by kernel test robot: Reported-by: kernel test robot V1 -> 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 | 1178 +++++++++++++++++ .../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 | 509 +++++++ .../net/ethernet/marvell/octeon_ep/octep_rx.h | 199 +++ .../net/ethernet/marvell/octeon_ep/octep_tx.c | 335 +++++ .../net/ethernet/marvell/octeon_ep/octep_tx.h | 284 ++++ 21 files changed, 5649 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 base-commit: 669b258a793db9f1c3bff29ce2bbd61b810503ad -- 2.17.1