From patchwork Thu Jan 16 07:59:06 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Pasternak X-Patchwork-Id: 13941395 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2064.outbound.protection.outlook.com [40.107.100.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5D82B18A6C1 for ; Thu, 16 Jan 2025 07:59:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.100.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737014401; cv=fail; b=cliybp8uyLmAItsdh69TxLb25L6QzgoPcnk1jmtFAp31tixVQlgXmNZ2uZS2qlclGaOpVedtCCB4H5hU1xbrTQteXfmDwYhzglhMVqhMOtjfwHhaKchnDD7NJcYRNRjOQG/dJhBjz6Kijdv9RJtkgjv0DqbgCX0Ypd3LV5aJ27A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737014401; c=relaxed/simple; bh=md67oD0gO1JfayBz3tihET+e1mzxivScfHMiXNjUXLk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=akpQSW3eQRQ1mdgRcmoMj24obJ7QTfEyryQNOdzjLY/NO1MIkLkxYiEfadY/I1np1ROyhWerKVhC40k/sK8N7Ef1jGA6aJmTa6hyBfxS4XCfkwwqomTiOJp6l496FTXas/mbea4gOs/4i3+l2Vj9pGN3VhXYkR4ZM10XuZ1uOmg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=fGdp2Nyk; arc=fail smtp.client-ip=40.107.100.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="fGdp2Nyk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aULEjY1ZBRpqfuxoyrr5tduUMLcjX5Q5ShuLdnSd5DwdCNKTgb/7rpbqCc0kwyJUUwJ+YFxX7FEo/v8QIYViCHfOOgFv27ccrUS7uQtWbmEJiHvcJgy6RNc26LoYbN+zWlMMJ9e/axGkvXosClq+tZ7Z46UCBdh3fvTiC5il7NXIkPF5/34oF7MGkKnG91q3fwypsHiXoyITuktjBIwamR2qW3oNJAy8JnFt9DC1dlEpcmFsCSqTpKNbkkoBJcDPrDTEHT6c4sMjRI1LwlxcN1NqYyFKK2eSf5JJydOwsbZsxqYLthCn/TbcdS2HbIRmJ+Gcm05/nPTLHj5EtQP+VA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ROmEHM8iRFVdo2Xo72RNRaY5OHuNBts9ImAnUvdX5XI=; b=S+3HYmwk8UnqClwcUg5ljlzWxBj1YVQDIy9p40AC5N9fV2zYoxtomc9RG0sVOuL3jNtMZtu36KGs4rqlkApznQv7YYU+OQXrBk3JAP33c+AduB7SuToPUh5Cd5rzGzsnY9jpon4k0kHVZWbxbYgHTrD9pojRPrKNR1urtj9R7XciWL/i+UWtGWuufpRernIDNYJ6apFZCoKdm+j5QMN3I0v4edbggvynTsXd+SN6oudS4YrQbzKfOoGyfSwaysIVneCQ3VoUm2RcQb77xlixPq3Dm6ONJFzc8cd85YmRCkIREy+8mKe+ubyIDYWhL78N8J8+H6VypU+9WQ5weo2Nvw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=redhat.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ROmEHM8iRFVdo2Xo72RNRaY5OHuNBts9ImAnUvdX5XI=; b=fGdp2NykD1a2AuEdqGTGYw2Ka2xWysGlTzEGPMYRnCClDBK0VooRKr8POr86TXIV2fZ3s/QDc6tAApilf6J/ts3kpnexujswjmRgwbmyPfxvlhxrIuOFnFxYDqxFHswZPn/Xoym9EUt6JQVPXDeIqWxIHeuH1RhL503gYWH2/BSPpz4yz6GQ7AbrO3vseVmfcGUw/lBus5/BE0PibeRndV0//JHerpIMOmwTzGaIVp+QbzWPkR3oydvBSNk0RvuBclu1qIz6tBGRViZhbWh/LcGo2Z9pLwNUtwF+63hktYprsvLXse4ED4opUZ78kQR4r6LE230Z5P9FokRjqH4w5g== Received: from BL0PR0102CA0050.prod.exchangelabs.com (2603:10b6:208:25::27) by SJ0PR12MB6941.namprd12.prod.outlook.com (2603:10b6:a03:448::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Thu, 16 Jan 2025 07:59:55 +0000 Received: from BL02EPF0001A108.namprd05.prod.outlook.com (2603:10b6:208:25:cafe::60) by BL0PR0102CA0050.outlook.office365.com (2603:10b6:208:25::27) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.20.8356.13 via Frontend Transport; Thu, 16 Jan 2025 07:59:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF0001A108.mail.protection.outlook.com (10.167.241.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.11 via Frontend Transport; Thu, 16 Jan 2025 07:59:55 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 15 Jan 2025 23:59:42 -0800 Received: from r-build-bsp-02.mtr.labs.mlnx (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Wed, 15 Jan 2025 23:59:39 -0800 From: Vadim Pasternak To: CC: , , , , , "Vadim Pasternak" Subject: [PATCH v3 00/10] platform/mellanox: Add support for new systems, amendments, relocate mlx-platform module Date: Thu, 16 Jan 2025 09:59:06 +0200 Message-ID: <20250116075919.34270-1-vadimp@nvidia.com> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: platform-driver-x86@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: rnnvmail203.nvidia.com (10.129.68.9) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A108:EE_|SJ0PR12MB6941:EE_ X-MS-Office365-Filtering-Correlation-Id: 987bed3a-b8fb-44a6-9854-08dd3603c3d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: =?utf-8?q?G/tbdvDBmpkDW36JJ5RwZRWuUFnbR69?= =?utf-8?q?cf5B4hyKV5vW0wYcs8KJ/x1MHH28wQ/T4azKpEA3QhwZ/m0/sOrneHp8FueIa7RXL?= =?utf-8?q?94K0Iy3zQPndeksvr8mYSNkUzGAXMPBQNZ5gQlBE/Jg7m82C9NVJxoOrbCDeotjoe?= =?utf-8?q?LXRtzm+iA3vk8Acd4zxVQyZhGuIv1WZJLH7QQPQgmQI0BV+zf8U63tmhvS0B0YOtY?= =?utf-8?q?fl0u+YC1+NiQq6IUBpScCls8pyuw9QlZCYa5OfI/dRVs6PSPxrqMxzCEaov9VIH9v?= =?utf-8?q?pSrxgRSe0PwIBxFdyFzPMPqrAA9R21xiuMu7yzmy3r8J3IzxZapEb1pdGXa5jzPlY?= =?utf-8?q?kA0+J+NGxlEfE96y5GW+YbYm2VJ7dlKT8ZUkpMunt96UxXoZIgIjIQgZPmvmmaxP9?= =?utf-8?q?UmKT3zL7DDTRYdJY2omsHwlQmGIzd/JuF2VwN1Fvr5+u5QsIgBUhWNvQ9/6Vqx9cE?= =?utf-8?q?GH/65M6Qk0fDLVFIfYPl3glk5hp9OTE93CRqzrnOJuEe7nOeMdIWRWZmToTH0JJ+B?= =?utf-8?q?JPyPiQ/ck0Sx3N0uTp1h/ggvlZSwx7qHcdtfuwSlMcJpW4S5fGXBMhXhXXs71sT4W?= =?utf-8?q?xGiwl9K6pgpkKfUQiMZ6jFOrSuDw+/wZUMtLLi0H5zrBQZTYbI8ZcyVRLWlMvNGnD?= =?utf-8?q?inJwxGoNZARygz8F6bc9f7X7OrgmnsywNDgma37lt9kbvr5GNOLaHKSZuTiejZgod?= =?utf-8?q?AL6B+J2/Uo4vyMlwB1jG1ycCqpRjvrJOU0aaOgEvlS80n7SJam+S+A4CYZAT9I5aa?= =?utf-8?q?X59B1DweGuiXN7szBHkty+YJQbpjTzqb+6s5ObrScNdWRq8fRI8bAoyUgirCHOSZ3?= =?utf-8?q?4ckOguhqoaBxOWokK/3k7CwjMrSzstdznEf3upEUWIzG0j8HrjEmAuP7SaQS8JM7V?= =?utf-8?q?RrrRploT7p1sEe2JkY7T/5mZ/fmLrvxbYLHwd6k2GB0XtgP2l3Wys9tsJpWaWnErB?= =?utf-8?q?ZtFN4OZXB0SAPClijQqlRNhZzdQp1lbKqNI0E3K5OO61N/H7CAga3Y4GcpqLSvntM?= =?utf-8?q?UN2shCNeTWTpW1Sgp9wWT7n4PmScyJsFjhTcGEZR0YSXduHOP+fOVTUfgiGgZ1OQJ?= =?utf-8?q?vpn5DleGLBPwbeFlOtExCxjYaj5aUk0ccOrKtOI3WJQYqx0VYAz4YYLDqlVRiwhui?= =?utf-8?q?d9OnAsyP1Tvi2V2KtxYBcV77tVC17iC+ryhWv0BU/tj8KkIDHaIaeKXr3XD1KGk+/?= =?utf-8?q?2YVRKGorRlZWPe4IZ2I/zXTBnW8zV2H6f5iLj2aSQ2Sex536njkmuQaux8vMh+tPe?= =?utf-8?q?tIQSVRnx8C/zvPojYlZJeiSUo6+H6OB/iRw2W0pcgfuiQKt+8PESWGjooDK0Xbx4J?= =?utf-8?q?hO7D1sDOl/tPwzwr9muRItQFit4KcBtFB+K5Dkn8vMkrs1PM83LgLk8dcNNDQ74cS?= =?utf-8?q?b5ao0as38jSL+bq6PPKpWhZ1roDArW9bw=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(376014)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2025 07:59:55.2804 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 987bed3a-b8fb-44a6-9854-08dd3603c3d5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF0001A108.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6941 The patchset contains: Patch #1: Relocation mlx-platform driver. Change of MAINTANERS list after relocation of mlx-platform. Patch #2: Add cosmetic changes - removing spaces. Patch #3: Repurposing of one register. Patches #4 - #5: Add new field. Patches #6- #9: Introduce systems: new SN428 smart switch equipped with DPU for offloading, new 2U systems SN5610 and SN5640, new compact system SN2200 OCP rack complained. Patch #10 - Add documentation. Vadim Pasternak (10): mellanox: Relocate mlx-platform driver platform: mellanox: mlx-platform: Cosmetic changes platform: mellanox: mlx-platform: Change register name platform_data/mlxreg: Add capability bit and mask fields platform/mellanox: mlxreg-hotplug: Add support for new flavor of capability registers platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU platform: mellanox: Introduce support of Nvidia smart switch platform: mellanox: mlx-platform: Add support for new Nvidia system platform: mellanox: nvsw-sn2200: Add support for new system flavour Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces v2->v3: Comments pointed out by Ilpo: - Added inside pacthes. v0->v2: Comments pointed out by Krzysztof: - Merge changes of MAINTANERS to the 1-st patch. - Change order between SoB and RB. Vadim Pasternak (10): mellanox: Relocate mlx-platform driver platform: mellanox: mlx-platform: Cosmetic changes platform: mellanox: mlx-platform: Change register name platform_data/mlxreg: Add capability bit and mask fields platform/mellanox: mlxreg-hotplug: Add support for new flavor of capability registers platform/mellanox: mlxreg-dpu: Add initial support for Nvidia DPU platform: mellanox: Introduce support of Nvidia smart switch platform: mellanox: mlx-platform: Add support for new Nvidia system platform: mellanox: nvsw-sn2200: Add support for new system flavour Documentation/ABI: Add new attribute for mlxreg-io sysfs interfaces .../ABI/stable/sysfs-driver-mlxreg-io | 96 + MAINTAINERS | 7 +- drivers/platform/mellanox/Kconfig | 25 + drivers/platform/mellanox/Makefile | 2 + .../platform/{x86 => mellanox}/mlx-platform.c | 3665 ++++++++++++----- drivers/platform/mellanox/mlxreg-dpu.c | 615 +++ drivers/platform/mellanox/mlxreg-hotplug.c | 22 +- drivers/platform/mellanox/nvsw-sn2201.c | 110 +- drivers/platform/x86/Kconfig | 13 - drivers/platform/x86/Makefile | 1 - include/linux/platform_data/mlxreg.h | 8 + 11 files changed, 3483 insertions(+), 1081 deletions(-) rename drivers/platform/{x86 => mellanox}/mlx-platform.c (81%) create mode 100644 drivers/platform/mellanox/mlxreg-dpu.c