Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2638268pxb; Sat, 30 Jan 2021 09:04:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzmFdlNv0UOEeT88xL+EmhRrNpJDdZzct6V7NP1W1vHh9rcQ1T9OCV78nmAAYmIL28uLL0p X-Received: by 2002:a50:9ee9:: with SMTP id a96mr10884507edf.343.1612026276349; Sat, 30 Jan 2021 09:04:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612026276; cv=none; d=google.com; s=arc-20160816; b=UUTnTUtvLkIDzveuWKxnNHekf+95Oq0ZjmAmFv0sYidAIyPu3JJ3fe0laDmgYcRKaT SJluuCI7sjS84T7M5z3eoiFPgKLafde18qfBcXKEkc8wCrGbhYT68TkgOCKOs0E76MKP FMmuxkW/oct43OTBhAwZV9P+NvxjrvMGgEsrO7QNeGPbHI5vpaDxsdyRRZgjZsAwF2bL 6vzuSKlcl+fd8hHRcQcAXYMPgKf1xSUvmAkfTx5M0Obwb+Cjn+xxTNWrkEa93ulzX8cF JixzdgtfYcFykBfUIyd7rrMNwbHvfhQKVf2xcG44gcgkqCEBspnpBUIh3Uxx45KXCcLk ap7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=EbPgAO/D8HsjZ2+nMuFlQyVF0aFxayCq3VL58VXu/r0=; b=Mky39elzQI0Tkn1+YSZfLhAEwdd1BwePkYRJGVJnNwY+L2rpYu9AOwvKRbhoCcSery P3xjVWaIxMbFolCgB1L3zcFY+G9qXaEmcEsAvzOYemTg+CMp3cp3ORfqfU/tgAx/gjF4 6VTIewsTnsTiDx6ggOXx8fpXtEfFdhms5Xm1I4AOwNOo4BDof/UsIm2O9lOVS5i2muc0 +Q5BT/Fb8SElULQ2s+9UiEsc30t2qm55+KtaxUykw74qk8WvfYucEAZMTXBV0bkNyTV6 9hSTUbBv8BWtBnkKp2m6SVBeLeclbI1AQGjUOLOrMazPXXePCYi2HDUFR6/99tXrA7u+ UArg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si6788834ejr.344.2021.01.30.09.04.11; Sat, 30 Jan 2021 09:04:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230525AbhA3RCZ (ORCPT + 99 others); Sat, 30 Jan 2021 12:02:25 -0500 Received: from [1.6.215.26] ([1.6.215.26]:38272 "EHLO hyd1soter2" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229468AbhA3RCY (ORCPT ); Sat, 30 Jan 2021 12:02:24 -0500 X-Greylist: delayed 575 seconds by postgrey-1.27 at vger.kernel.org; Sat, 30 Jan 2021 12:02:22 EST Received: from hyd1soter2.caveonetworks.com (localhost [127.0.0.1]) by hyd1soter2 (8.15.2/8.15.2/Debian-3) with ESMTP id 10UGppDN091753; Sat, 30 Jan 2021 22:21:51 +0530 Received: (from geetha@localhost) by hyd1soter2.caveonetworks.com (8.15.2/8.15.2/Submit) id 10UGpoj1091752; Sat, 30 Jan 2021 22:21:50 +0530 From: Geetha sowjanya To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: sgoutham@marvell.com, davem@davemloft.net, kuba@kernel.org, Geetha sowjanya Subject: [net-next 00/14] Add Marvell CN10K support Date: Sat, 30 Jan 2021 22:21:41 +0530 Message-Id: <1612025501-91712-1-git-send-email-gakula@marvell.com> X-Mailer: git-send-email 2.7.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current admin function (AF) driver and the netdev driver supports OcteonTx2 silicon variants. The same OcteonTx2's Resource Virtualization Unit (RVU) is carried forward to the next-gen silicon ie OcteonTx3, with some changes and feature enhancements. This patch set adds support for OcteonTx3 (CN10K) silicon and gets the drivers to the same level as OcteonTx2. No new OcteonTx3 specific features are added. Changes cover below HW level differences - PCIe BAR address changes wrt shared mailbox memory region - Receive buffer freeing to HW - Transmit packet's descriptor submission to HW - Programmable HW interface identifiers (channels) - Increased MTU support - A Serdes MAC block (RPM) configuration Geetha sowjanya (6): octeontx2-af: cn10k: Update NIX/NPA context structure octeontx2-af: cn10k: Update NIX and NPA context in debugfs octeontx2-pf: cn10k: Initialise NIX context octeontx2-pf: cn10k: Map LMTST region octeontx2-pf: cn10k: Use LMTST lines for NPA/NIX operations Hariprasad Kelam (5): octeontx2-af: cn10k: Add RPM MAC support octeontx2-af: cn10K: Add MTU configuration octeontx2-pf: cn10k: Get max mtu supported from admin function octeontx2-af: cn10k: Add RPM Rx/Tx stats support octeontx2-af: cn10k: MAC internal loopback support Rakesh Babu (1): octeontx2-af: cn10k: Add RPM LMAC pause frame support Subbaraya Sundeep (2): octeontx2-af: cn10k: Add mbox support for CN10K platform octeontx2-pf: cn10k: Add mbox support for CN10K octeontx2-af: cn10k: Add support for programmable channels drivers/net/ethernet/marvell/octeontx2/af/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 315 ++++++++--- drivers/net/ethernet/marvell/octeontx2/af/cgx.h | 15 +- .../net/ethernet/marvell/octeontx2/af/cgx_fw_if.h | 1 + drivers/net/ethernet/marvell/octeontx2/af/common.h | 5 + .../ethernet/marvell/octeontx2/af/lmac_common.h | 129 +++++ drivers/net/ethernet/marvell/octeontx2/af/mbox.c | 59 +- drivers/net/ethernet/marvell/octeontx2/af/mbox.h | 70 ++- drivers/net/ethernet/marvell/octeontx2/af/rpm.c | 272 ++++++++++ drivers/net/ethernet/marvell/octeontx2/af/rpm.h | 57 ++ drivers/net/ethernet/marvell/octeontx2/af/rvu.c | 157 +++++- drivers/net/ethernet/marvell/octeontx2/af/rvu.h | 70 +++ .../net/ethernet/marvell/octeontx2/af/rvu_cgx.c | 135 ++++- .../net/ethernet/marvell/octeontx2/af/rvu_cn10k.c | 261 +++++++++ .../ethernet/marvell/octeontx2/af/rvu_debugfs.c | 339 +++++++++++- .../net/ethernet/marvell/octeontx2/af/rvu_nix.c | 112 +++- .../net/ethernet/marvell/octeontx2/af/rvu_npc.c | 4 +- .../net/ethernet/marvell/octeontx2/af/rvu_reg.h | 24 + .../net/ethernet/marvell/octeontx2/af/rvu_struct.h | 604 ++++++--------------- .../net/ethernet/marvell/octeontx2/nic/Makefile | 2 +- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c | 182 +++++++ drivers/net/ethernet/marvell/octeontx2/nic/cn10k.h | 17 + .../ethernet/marvell/octeontx2/nic/otx2_common.c | 144 +++-- .../ethernet/marvell/octeontx2/nic/otx2_common.h | 105 +++- .../net/ethernet/marvell/octeontx2/nic/otx2_pf.c | 67 ++- .../net/ethernet/marvell/octeontx2/nic/otx2_reg.h | 4 + .../ethernet/marvell/octeontx2/nic/otx2_struct.h | 10 +- .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.c | 70 ++- .../net/ethernet/marvell/octeontx2/nic/otx2_txrx.h | 8 +- .../net/ethernet/marvell/octeontx2/nic/otx2_vf.c | 52 +- include/linux/soc/marvell/octeontx2/asm.h | 8 + 31 files changed, 2573 insertions(+), 727 deletions(-) create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/lmac_common.h create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rpm.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rpm.h create mode 100644 drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c create mode 100644 drivers/net/ethernet/marvell/octeontx2/nic/cn10k.h -- 2.7.4