Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5509772rwb; Sun, 4 Dec 2022 23:23:12 -0800 (PST) X-Google-Smtp-Source: AA0mqf4HebEFccvIel1Mo5u1SPRT2mpVCGpNLN5nFIzm75XaJTf20VSuEfQuu4GtGomJXB6xNbiH X-Received: by 2002:aa7:c509:0:b0:46c:42b8:b3b8 with SMTP id o9-20020aa7c509000000b0046c42b8b3b8mr10412355edq.37.1670224992322; Sun, 04 Dec 2022 23:23:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670224992; cv=none; d=google.com; s=arc-20160816; b=I+LsQ9YpD/xLm/2dMQ7x/eq7z54XM7RnZEa7I/R3JP/HALYJ/3tgoq/hk5CHhAdOG/ tUSayef927C4YEsVuzA/FIcVc1/Jr/E1mN/VnZ+9C2iKsdMM15aEjQSAKIc2Mlzyx20R Swb/E3Pz4z47AsB0W5zwO7UTUpjzKZERtTV0lOduBfJWC1syx8xV07eDS6SEno3oPu4y /og/tR5Fk0MKpF6J7EzANGaVdnut58sk+9TBlIt0whB0Y8iXBhiOV4+8x172jJXuAibt Rvac3f0F1lQErLaRPbAAns/chl5kprRADz651eu6Y34purySmDSrZKE7WiypDryzCVfq KwYA== 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=J51TjlbGZxngqrd64GNJBARAUG5iCA1resE94iExrZI=; b=pGMrumiBBMqA1FlsKYAkCuPV5Rnba77AL7NtW+9q+Ey8Fbk4x2gmmPEI1faZshpWiI RnTf9lpJw0nAhXPXxnDFesgdMLMdLT2IgO8PcvZPik0pThpA3PXrmhtyQQA1T79Hvy8U FBZUHg6iZD44EpfEs/ti3Vi6qjBRgoOIU5c9IxLtZyBJLJWwTFoUwww1y7U9wxRt9kM6 d8D1dTPIbjDGTEHVtyUFgHuJ6ntjeDk1KXo0fFQR34McZhPIOovw9QbcZHTGu2ETLIpC K7sUx8pA6psS3zwfGoEubAomTWIHXk3zyo5qDqsI7cMPyLTaANtmSJZV46SYY/zxv7Fw NjeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=graz+9WY; 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 sc31-20020a1709078a1f00b007c07cb9ce06si11627770ejc.315.2022.12.04.23.22.51; Sun, 04 Dec 2022 23:23:12 -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=graz+9WY; 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 S231579AbiLEHFl (ORCPT + 82 others); Mon, 5 Dec 2022 02:05:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231365AbiLEHFj (ORCPT ); Mon, 5 Dec 2022 02:05:39 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF391BC93; Sun, 4 Dec 2022 23:05:38 -0800 (PST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B4NRLY5032413; Sun, 4 Dec 2022 23:05:29 -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=J51TjlbGZxngqrd64GNJBARAUG5iCA1resE94iExrZI=; b=graz+9WY4V4jVIBgF8J13Wbqua4vlwGjdfyen6dUjHuUosJGyg9cbkQDbq0z7bR6j+2o tnO+/Rn+nJRQ8/Fti8dQKLVz6Pasm3C6GAlwJzvcsc+dghhjRcVybzdMGPyiJVuviusi GqH0HMWVD5cI8JeMPSXr1rNYu/c8qHaJM2CmWmRZsWyNNqZ43uxSQE43rAngWtEj7+7b uZijmlZf0U5DuCGDkdcLuvW5Qosk/NIAFtrRIXr0nBhFrm7m0xuw/iy7KhiyuAUbITNH 8B/2H+khYIfE5dGAuKxx1R4+FtSHQ/qWXQWmdX/VAhpKJVClnizt1fYskoIe/qy3hdtu dg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m84pumnvr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Sun, 04 Dec 2022 23:05:29 -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; Sun, 4 Dec 2022 23:05:25 -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; Sun, 4 Dec 2022 23:05:25 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 7EE803F707A; Sun, 4 Dec 2022 23:05:22 -0800 (PST) From: Hariprasad Kelam To: , CC: , , , , , , , , Subject: [net-next Patch v4 0/4] CN10KB MAC block support Date: Mon, 5 Dec 2022 12:35:17 +0530 Message-ID: <20221205070521.21860-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-ORIG-GUID: TAQatKYat40nPoe5_SEq1ZpJkPPOeftT X-Proofpoint-GUID: TAQatKYat40nPoe5_SEq1ZpJkPPOeftT X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-05_01,2022-12-01_01,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 | 34 +++ 11 files changed, 428 insertions(+), 83 deletions(-) -- 2.17.1