From patchwork Thu Dec 1 18:00:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hariprasad Kelam X-Patchwork-Id: 2495 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp411909wrr; Thu, 1 Dec 2022 10:12:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7a3zoOgEdkkmAcrkxKgAt7uKNLFlC0UO4B8jomt6mawNyx7XEf/SCQx31RZyQ+TFHJZ0jy X-Received: by 2002:a17:907:d60b:b0:7bc:dbd8:184b with SMTP id wd11-20020a170907d60b00b007bcdbd8184bmr26868807ejc.110.1669918371594; Thu, 01 Dec 2022 10:12:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669918371; cv=none; d=google.com; s=arc-20160816; b=lSRAq+wkg2NhoG94x/RFJfbWUQ6HZlZk0PjLTXQisIppYH8S+aQVAKGeUL/HhhigDN rrkgWwrEQnDWWKdfRX/Hb/iu/ds9F33c/R9W6Li48PMEDeeijbvuoU7akFQ5OgMtKrw3 D9anCxYXRxPQ8pn6MejLLX3ef30aytg42/+eTd6UnfpX5kKhvp1b+bxMghIye0rkdO2X WLJPp/fJmo/WdHt7SLxCUU6wGwRXYpJv2I4pcCveDTM1eTaHgHhLSc4Z6A0tt6BvMy57 kGNu9L9DYtPTgyY7JOrUvlrNfZllGBNJGLsm17Br9yrSGNvNGrDZUfA9xWpoHsfIIJ1L xHjg== 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=PbepnRQ8Mtbd6ZEottlav0DTF44g1GzanbdlHhp41eU=; b=BcC1qCJcz6iYos1ajjY9+FQQt5gBLAWKxug7LyJ/wW/bdvLDS+/ciaPeXPNS2SDMP5 TWJgknUdWVNTz7iMt5fRnJrN5vdp+19P9HxcMAKHBE3Ilm0+Y2mrVcBkWfClyShyYN+t iPJ6cJmOGAyLx/E5eqCpTV1iMA0TFVGs20c9BX1wT26ZzYCyBVuadgTBRDi57CJIy4tp yh8yanHskrskn0KuyBOfavNnomR846824tGI6LrNdWSMYh8SJOgek0MwoSpDa5Wm+s/5 SV4jpfQcaesz61cZNtgD4vFEstcq8CFjcrv4Ca2+dc+e4qyzT+H3IP+gwLgDtM/mhMK/ 2cbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=c2tQzWn5; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e8-20020a056402190800b00458b71488bdsi4601998edz.388.2022.12.01.10.12.26; Thu, 01 Dec 2022 10:12:51 -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=c2tQzWn5; 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 S230196AbiLASBF (ORCPT + 99 others); Thu, 1 Dec 2022 13:01:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229999AbiLASA7 (ORCPT ); Thu, 1 Dec 2022 13:00:59 -0500 Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79E8B2765; Thu, 1 Dec 2022 10:00:58 -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 2B1E4xcU015735; Thu, 1 Dec 2022 10:00:46 -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=PbepnRQ8Mtbd6ZEottlav0DTF44g1GzanbdlHhp41eU=; b=c2tQzWn5j0ulYZ35YfJNfgxg9hpspn0O6SMNQII2mLegtGvoSej01fxHHbvWs2R7X5n0 ZOVhLl+LAnvF7fjoMA1pGXuJjCbr75tpGKQnp+KbmocVJaqrg1kOgYn8F4N3bJE/6MJn oKtK3cs0joXOAonM871DM3wmxtPkRUHUoGNq07OnFXqr6/W7NpO04BC4hVk2ACzun5Ay PAT0I6UvsGOSCss/hPE8U1nySJmlkgrchlzuxDFAuMDj6If48q1kZVr2fcK4zJGoAffJ 8zgilU+LYE4FLVCh27L9XoRaAW7Jy4t1HSzB3ePk4ONYzYyCitAvGDs98tZ9A/0v9Qxa mw== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3m6k712xx9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Thu, 01 Dec 2022 10:00:46 -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; Thu, 1 Dec 2022 10:00:44 -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; Thu, 1 Dec 2022 10:00:44 -0800 Received: from hyd1soter3.marvell.com (unknown [10.29.37.12]) by maili.marvell.com (Postfix) with ESMTP id 991445B6927; Thu, 1 Dec 2022 10:00:41 -0800 (PST) From: Hariprasad Kelam To: , CC: , , , , , , , , Subject: [net-next PATCH v3 0/4] CN10KB MAC block support Date: Thu, 1 Dec 2022 23:30:36 +0530 Message-ID: <20221201180040.14147-1-hkelam@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-ORIG-GUID: ZCdELoiY8BnKelmKRM315YBQIjipu6Pj X-Proofpoint-GUID: ZCdELoiY8BnKelmKRM315YBQIjipu6Pj X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-01_12,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751036326550906215?= X-GMAIL-MSGID: =?utf-8?q?1751036326550906215?= 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 --- v2 * remove debugfs entry to display FEC stats rather display same over ethtool APIs v3 * Dont remove existing FEC stats support over ethtool statistics (ethtool -S) --- .../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 | 40 +++ 11 files changed, 434 insertions(+), 83 deletions(-) -- 2.17.1