Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp302058rwb; Mon, 28 Nov 2022 21:21:17 -0800 (PST) X-Google-Smtp-Source: AA0mqf4BiPe0GGzKP9g+AQpmhY1LeZaR7EwgtE4CuK3/Nui2iJIBqiA8GC3RhrIyx3N8+Me1/Zdw X-Received: by 2002:a17:907:767a:b0:7ad:e518:13fd with SMTP id kk26-20020a170907767a00b007ade51813fdmr46645698ejc.323.1669699277141; Mon, 28 Nov 2022 21:21:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669699277; cv=none; d=google.com; s=arc-20160816; b=O7vLKqDxFcc6nKmKtCOY/wL79E+kf/9MBgg5pxNhuqN/kYNgr4ee8b/RXq1WnS7NX4 GJx5p/b9TCMr9egzCYFf03hct+ha9XzAflruwu1Ebge/d4vyxIkLbR2nOnksdiuhctDW 77OVE2FJbUBospgjViD9mxmvcFBkJdY0d1slgIVRqramPqymyLquvzRnD5lDT3FAtvOZ 95a3wRJYid+VrSUmYBMCc1Ewc9urm8aa5ONgOp1yxgHmN+1Cvt/iXmFSe3CLxeIYwZI5 mBxwUNo3wb1ayIMPzdJ65MpybFYBpXXyC6fShe5R/Xp1z2Wn2TdqveSEOBXsuvoC5wJi H8Jw== 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:cc:to:from :dkim-signature; bh=IoPRbkY/MlPR1tnHdwbhaAfp4JsczIk/OwmFzWgEIc8=; b=Vag6h/KNi24OeI5eEHlW54PX3LLb73JcJw0VfOs1M+dwzxqCsymgMK2ijRRiDGsPEm dVr0gJrxVpGXzTX47THK0t25+4Jq56xKnYCvFIK7KrTobBpM2zxaB3kQ/F5LO6wR5JHa YKUdeowdrGfK+Y62Es76eYHZkAr53q5z9Oqj0qdB8NAIjidbLirCeFO6Yom1Fd0CIlYp fthSgy5O11zQ+GK6FVPfZnNrinWevXpKibPKS72Y/1g5G2sfw9I70QwNEv5lM4AcB2c6 tgJKQthrUkrCFTM4j3V5+PcTmzFR0IVe4wxo+S3EtiHImV3X4vZBldVWEs2A8yCZY6zz hOFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=HjTawK3h; 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 y6-20020a056402440600b0045d292ef641si13083922eda.493.2022.11.28.21.20.57; Mon, 28 Nov 2022 21:21:17 -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=HjTawK3h; 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 S235356AbiK2FOd (ORCPT + 82 others); Tue, 29 Nov 2022 00:14:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233673AbiK2FOb (ORCPT ); Tue, 29 Nov 2022 00:14:31 -0500 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A537419BF; Mon, 28 Nov 2022 21:14:30 -0800 (PST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2ASNXEwQ020462; Mon, 28 Nov 2022 21:14:16 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=IoPRbkY/MlPR1tnHdwbhaAfp4JsczIk/OwmFzWgEIc8=; b=HjTawK3hPx24crttcHU+GUspX9NxPIbQMQKz8B3uAkXFvBpMrfirQQMgNHg62ExnHg19 SBXoBm8ImKXcT03gQNgAoSLLXBqSuQLXZexPDohEoSEhta4uueedgJcrrx8DjO14mvxO wDSsco22P1bffDTjpVmjT4lddUVolNEZzt1+3yyDO3zfqKEprZq3JRfOah4x+oXoPnWh FX0UjsAw5FIbt971ppJDRp5vahiHZ9dc7DpgwZ8K0ChEBrrMA75lpGzH1cAdys4NJ4H2 ylUDsprnMTslhsg2eSs8YBo/6jwAblFhCCod1qgZ+hN1gaRof+j4uonl7T3k5u7DITdk gw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3m3k6w9qw8-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 28 Nov 2022 21:14:16 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 28 Nov 2022 21:14:14 -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 Nov 2022 21:14:14 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 079553F7086; Mon, 28 Nov 2022 21:14:10 -0800 (PST) From: Hariprasad Kelam To: , CC: , , , , , , , , Subject: [net-next PATCH V2 0/4] CN10KB MAC block support Date: Tue, 29 Nov 2022 10:44:05 +0530 Message-ID: <20221129051409.20034-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: mGrNWFAlgNSRbIZot3I0FBLbEX3z2fnP X-Proofpoint-ORIG-GUID: mGrNWFAlgNSRbIZot3I0FBLbEX3z2fnP X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-11-29_04,2022-11-28_02,2022-06-22_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_NONE 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 OcteonTx2's next gen platform the CN10KB has RPM_USX MAC which has a different serdes when compared to RPM MAC. Though the underlying HW is different, the CSR interface has been designed largely inline with RPM MAC, with few exceptions though. So we are using the same CGX driver for RPM_USX MAC as well and will have a different set of APIs for RPM_USX where ever necessary. The RPM and RPM_USX blocks support a different number of LMACS. RPM_USX support 8 LMACS per MAC block whereas legacy RPM supports only 4 LMACS per MAC. with this RPM_USX support double the number of DMAC filters and fifo size. This patchset adds initial support for CN10KB's RPM_USX MAC i.e registering the driver and defining MAC operations (mac_ops). With these changes PF and VF netdev packet path will work and PF and VF netdev drivers are able to configure MAC features like pause frames,PFC and loopback etc. Also implements FEC stats for CN10K Mac block RPM and CN10KB Mac block RPM_USX and extends ethtool support for PF and VF drivers by defining get_fec_stats API to display FEC stats. Hariprasad Kelam (3): octeontx2-af: cn10kb: Add RPM_USX MAC support octeontx2-pf: ethtool: Implement get_fec_stats octeontx2-af: Add FEC stats for RPM/RPM_USX block Rakesh Babu Saladi (1): octeontx2-af: Support variable number of lmacs .../net/ethernet/marvell/octeontx2/af/cgx.c | 78 ++++-- .../net/ethernet/marvell/octeontx2/af/cgx.h | 9 +- .../marvell/octeontx2/af/lmac_common.h | 15 +- .../net/ethernet/marvell/octeontx2/af/rpm.c | 262 ++++++++++++++++-- .../net/ethernet/marvell/octeontx2/af/rpm.h | 36 ++- .../net/ethernet/marvell/octeontx2/af/rvu.h | 12 +- .../ethernet/marvell/octeontx2/af/rvu_cgx.c | 49 +++- .../marvell/octeontx2/af/rvu_debugfs.c | 2 +- .../ethernet/marvell/octeontx2/af/rvu_nix.c | 10 +- .../marvell/octeontx2/af/rvu_npc_hash.c | 4 +- .../marvell/octeontx2/nic/otx2_ethtool.c | 75 ++--- 11 files changed, 435 insertions(+), 117 deletions(-) -- 2.17.1