From patchwork Tue Sep 14 06:13:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ido Schimmel X-Patchwork-Id: 12491769 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6370C433EF for ; Tue, 14 Sep 2021 06:14:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 83269610FB for ; Tue, 14 Sep 2021 06:14:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240055AbhINGPo (ORCPT ); Tue, 14 Sep 2021 02:15:44 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34699 "EHLO out2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237875AbhINGPh (ORCPT ); Tue, 14 Sep 2021 02:15:37 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 2E88A5C00AF; Tue, 14 Sep 2021 02:14:20 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 14 Sep 2021 02:14:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=5g6rNfPFO0w75scfB g1+WHDKK6CS7jA7faBPfpMic1A=; b=hS+EvHrFSyAe+PytvW5UjHj9E98m+C/hd rKiNXVnZe1aZvJwKuZz+8asV51pPE7Yvqppmy0PCs9YfK1Q8KY3bfVUpGBQeNWQh vg7RbwOGRPa54hma5IrLAc8bLG1N6e8pRpytrl8RLBpqKMbX2Ep72LqOs+rouZBT EUNQPwGOMqsov2IWtxvmF6qDK84NR5RQ14KPSD4J+VBoYk1MurdWhvM41hubnb6H cJkwXN/KxISePq8Ew7R8UoLtpIQITk9U76TKwvpdh7SPOui/MYsJCcDX1D57Hz8x Sef5v8ibmuVk0cnzA8P/mJMukzdVLM3aN66IF4YZNeSM0TsRrryeg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudegkedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkffoggfgsedtkeertd ertddtnecuhfhrohhmpefkughoucfutghhihhmmhgvlhcuoehiughoshgthhesihguohhs tghhrdhorhhgqeenucggtffrrghtthgvrhhnpeetveeghfevgffgffekueffuedvhfeuhe ehteffieekgeehveefvdegledvffduhfenucevlhhushhtvghrufhiiigvpedtnecurfgr rhgrmhepmhgrihhlfhhrohhmpehiughoshgthhesihguohhstghhrdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 14 Sep 2021 02:14:18 -0400 (EDT) From: Ido Schimmel To: netdev@vger.kernel.org Cc: davem@davemloft.net, kuba@kernel.org, jiri@nvidia.com, mlxsw@nvidia.com, Ido Schimmel Subject: [PATCH net-next 0/8] mlxsw: spectrum: Adjustments to port split and label port Date: Tue, 14 Sep 2021 09:13:22 +0300 Message-Id: <20210914061330.226000-1-idosch@idosch.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org From: Ido Schimmel Jiri says: This patchset includes patches that prepare the driver to support modular systems. PLLP register is introduced to get front panel port label which is no longer equivalent to "module + 1" for modular systems, where the numbering is per line card. So far for all systems all front panel ports had same format and could be split to the same number of subports. This is no longer true for modular systems, where every line card can have different types of front panel ports. The PMTDB register is introduced to easily query FW for split capabilities of particular front panel port. It is generic for use in modular and non-modular systems. Jiri Pirko (8): mlxsw: spectrum: Bump minimum FW version to xx.2008.3326 mlxsw: spectrum: Move port module mapping before core port init mlxsw: spectrum: Move port SWID set before core port init mlxsw: reg: Add Port Local port to Label Port mapping Register mlxsw: spectrum: Use PLLP to get front panel number and split number mlxsw: reg: Add Port Module To local DataBase Register mlxsw: spectrum: Use PMTDB register to obtain split info mlxsw: reg: Remove PMTM register drivers/net/ethernet/mellanox/mlxsw/core.c | 38 --- drivers/net/ethernet/mellanox/mlxsw/core.h | 1 - drivers/net/ethernet/mellanox/mlxsw/reg.h | 146 ++++++--- .../net/ethernet/mellanox/mlxsw/resources.h | 6 - .../net/ethernet/mellanox/mlxsw/spectrum.c | 290 +++++++++--------- .../net/ethernet/mellanox/mlxsw/spectrum.h | 4 +- 6 files changed, 239 insertions(+), 246 deletions(-)