From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 142BD606A31A for ; Wed, 2 Dec 2026 09:43:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=cTdb1aeR Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 62931112003; Wed, 2 Dec 2026 09:43:39 +0000 (UTC) Received: from CH1PR05CU001.outbound.protection.outlook.com (mail-northcentralusazon11010003.outbound.protection.outlook.com [52.101.193.3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2AB59112003 for ; Wed, 2 Dec 2026 09:43:33 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mTBo5qJsqiTYwGNfXbdtDg/RZcCrn2LPGkCoPRW0yT3usl7T3Xx9ntdle2wAEcmKT/GNXWFKxT4rxFRo0CaKzqh8+aezgpKQVHT9ILfY3SGIR6ZTgpZRFvS4rcOIuVVg4+xJO8IizSZkf7Gy4n5FexQnelJyEs2QipIiXYg1nm2DFf99suBQXTofp9SZFwOVnWR2PXo2NIKO0czOGzaRu7MSwZu8lZvIcYNPDI1EVJiVU1XSZgNVk7iYhgUZTMMxsdNADI5udF4/49+DOvSM6MvHnVmUk1J+BmHQ5fUeVVEXDAxQfjxSgnmXoHkfQyloaz/Ri5rvu/IHzApuG9RaKQ== 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=6i9E9TlQsb6zw58DkvcjQJxTr7nJkbfkWF21kALLUqQ=; b=gdaKLQTCSv7M/uWZo0BmHbE1ukTCIDaPeJsYMXJm9GCxlAM/fX6wQGw+7pvosvtJFwrHbFE8ie647LpR/c6GYbyzNr9WVvkjHnOm04ousC1piHy8pZskEm40ibsaDIvUsRkWLiUAuN1JcNUsjOrvjqkQDA8XkHPMIhfPnnPC1etZHuuj7Epd+KfoH75nHPI07AJDa30YaoYV83BsGclvkA36+H34Mi0o4H1gv2f9+2XHYLmF7ygOz4dSAkDhImPPNZE300rnVDJ70rStU40an8F7R4A7Q1V1oes0Ibi9ITsarJZpSyf+eCieuzdYrUPnJPqFPSukwiRJR0ikSU6K5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=kernel.org 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=6i9E9TlQsb6zw58DkvcjQJxTr7nJkbfkWF21kALLUqQ=; b=cTdb1aeRy3dxV+CcZkm1x+R4lU392INTnnyqUxXTEkFsnk7PkNmxwK6cKfINz0cpdK42XutVWr/EPhHzcEIUDVUaMYqJXpTAERj0ty/pybGbUACY9/2vYINrDJwwP5ZSqp7ZMQR8TirytzR7qjniXjH3oMQEMAq4pRyo9qS8BrkMYzWUPcE/88f9M6/dPH6WcDMDdnIa3kwuTukX6p6YD4vBDt9tS5iB2gqGfiYUWxz4ywzigKOi837FxXmvHyIMWEbTS7k/6yaa1uDHuRALI7Ui2tM5jAwOkDvjCzVKfc0jMKdK0ns5ufOSozcIq3vvrknxY92Bv2reoMJWRPKRmw== Received: from CY5PR19CA0086.namprd19.prod.outlook.com (2603:10b6:930:83::11) by SJ5PPFC41ACEE7B.namprd12.prod.outlook.com (2603:10b6:a0f:fc02::9a0) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.11; Wed, 2 Dec 2026 09:43:27 +0000 Received: from MWH0EPF000DD30D.namprd05.prod.outlook.com (2603:10b6:930:83:cafe::6a) by CY5PR19CA0086.outlook.office365.com (2603:10b6:930:83::11) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.11 via Frontend Transport; Wed, 2 Dec 2026 09:43:27 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; 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 MWH0EPF000DD30D.mail.protection.outlook.com (10.167.249.5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Wed, 2 Dec 2026 09:43:27 +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.2562.57; Wed, 2 Dec 2026 01:43:07 -0800 Received: from kalok-SPC741D16QM3.nvidia.com (10.126.230.37) 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.2562.57; Wed, 2 Dec 2026 01:42:54 -0800 From: Alok Kumar To: , , , , , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [PATCH v4 0/1] gpu: nova-core: add fwctl driver for firmware control interface Date: Wed, 2 Dec 2026 15:12:18 +0530 Message-ID: X-Mailer: git-send-email 2.53.0 X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000DD30D:EE_|SJ5PPFC41ACEE7B:EE_ X-MS-Office365-Filtering-Correlation-Id: 496bc29e-507a-4966-8ca7-08df5058b73e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|82310400026|376014|7416014|36860700016|1800799024|23010399003|6133799003|261009223027099003|18002099003|3023799007|13003099007|261022075727099003|56012099006|260925021911599003|260925022911599003|5023799004|260925021311599003|11063799006|261102123227099003|10067099003|261022105027099003|261026140227099003|261028144727099003|261021121427099003; X-Microsoft-Antispam-Message-Info: enfCbisTcJVG6j9F/92O+dHwTv/m3gWiQh/Sg/LP9g6ci2NH30FUs3Ju5cRPBYZY3+hLxlZ+aCNVkpXtAIDlXayXxpcBs42G5weLhPJtV6P0je8MWWeCg7E9m9ELDaQaQrg2RUa4v5+DYIvwcrWlS/i0Rjy44gBn2FaTQv+JFn3pPwbwHZEwDGd1jGFR6KuTGpIoajK58NVQSzrKEndRM97letw0E9juSfgu4SaVeA+EfeSAbfeCz/nj9VzzZr89qho2j7c3qni9HnLuTHW/tbuf7t4ExJz3s6yDl1gtbnbga31XfPZ7J2fQZJpi+WpVbmSCpwvlXb3hx4l1XiG0Q9ZaSHRvXqjWUPA8H9tlKdBSxVyhoJNYOr4bDCmNcNswt4aHRdhmJNSYEWzBjKeMV8W3ntqelHolPeP1NHjFZx++ULHcexBOwvvNkfVh2Ia79LCCxkljRm7wjQcvjWdW3Xub6jtVKA51+zO2kCRWyDDqUaOeRi/WZ+89b66fo8NO+x2ZTSo8uLFNHZSd9ZEKBm9s2S4T4b/st2+fPZJbvxsqIouM7uFVEjTzEJKPJqZ6jV+ZmZUP1D6xAf0vfqv171R7KhDoihaa+5MVkp1n+Jd5GChYFbkuKbxJPlN27G/X2uRHzMMH7kXcfHNa5Txmfa+NcVyJmuQstHlbdN1XJZKFCJWptZ/BRJIXZAmK04PQSAKjOTuwSVXCrXp1cJovgw== 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)(82310400026)(376014)(7416014)(36860700016)(1800799024)(23010399003)(6133799003)(261009223027099003)(18002099003)(3023799007)(13003099007)(261022075727099003)(56012099006)(260925021911599003)(260925022911599003)(5023799004)(260925021311599003)(11063799006)(261102123227099003)(10067099003)(261022105027099003)(261026140227099003)(261028144727099003)(261021121427099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6GoxR/Gp5ly/SmzsjdLXWE5/rj1pPGLM9DuE12IDzh6RjQiYER+LEmxQ6ucriEreTjJAF8r17DKaB17hmCc1MNi/oiS93SW06iDsB+ffyS/K46q1AxWRels2mdIyp5MqtyqVcOUsYdVOZP86FfokAVFScJTmMgHrF2z4lg44QZ4jWHuFOSaahGmoCQmByeFNn5RSbpw74EEzMUNm6Wbx7PQEZd67VB+VQLfNSyGsqefL1cR1LcHFlSXDeKznsdFPt7bOOA1J3bd3tNiiL8yNC4pVH3zaByqe1HaqK3lyFwDPmLQVoesnGiupBCPXuaHNDnvYD6oUMShkozucDqZc3oZfHUh1wXr2Kxz7XjH8UwjN5Muas0F0hGofO5+Vd16gGDVQVg09P1f2nK9zpos3QYjxCXc79eP0TlLJlyE2jc1uBsCCGcBsoV6+CUC3NlwF X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2026 09:43:27.0912 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 496bc29e-507a-4966-8ca7-08df5058b73e 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: MWH0EPF000DD30D.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ5PPFC41ACEE7B X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "dri-devel" X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Add a fwctl endpoint to nova-core for the GSP GMC API commands used to manage vGPU types on a physical GPU. The request path is: userspace | | FWCTL_RPC (FWCTL_RPC_CONFIGURATION) v nova-core command allowlist | | typed GMC request v GSP command queue -> GSP-RM Userspace supplies the native GMC command ID and command-specific payload. nova-core constructs the transport headers and permits only the seven vGPU management commands for adding, querying, assigning and deassigning vGPU types. Other commands and scopes are rejected. The request starts with an eight-byte header containing command_id and a zero reserved field, followed by the command-specific payload. The response echoes this header and appends the firmware response payload. This series is based on: [PATCH v6 00/34] Introduce NVIDIA vGPU manager [1] Userspace tools: https://github.com/alokk-nvidia/vgpu-tools/tree/m1-nvkv/fwctl Changes since v3 [2]: - Use the generated fwctl_rpc_nova_core UAPI binding to decode and encode the request/response header instead of manual byte offsets. - Copy the incoming header so unaligned buffers remain supported, and derive its size from the bound structure. The userspace request/response format, seven-command allowlist, configuration scope restriction and response-capacity limit are unchanged. GMC, MCTP and NVDM transport headers remain inside nova-core. The complete integration tree, including the prerequisites and the companion VFIO series, is available at: https://github.com/alokk-nvidia/nova-core/tree/nova-vgpu-wip-20261201 Previous postings: v3 posting: [2] v2 posting: [3] v1 posting: [4] [1] https://lore.kernel.org/all/cover.1796191007.git.alkumar@nvidia.com/ [2] https://lore.kernel.org/nova-gpu/20261124144204.19072-1-alkumar@nvidia.com/ [3] https://lore.kernel.org/nova-gpu/cover.1793906674.git.alkumar@nvidia.com/ [4] https://lore.kernel.org/rust-for-linux/20260305190936.398590-1-zhiw@nvidia.com/ Zhi Wang (1): gpu: nova-core: add fwctl driver for firmware control interface MAINTAINERS | 1 + drivers/gpu/nova-core/Kconfig | 2 + drivers/gpu/nova-core/driver.rs | 23 ++++ drivers/gpu/nova-core/fwctl.rs | 168 +++++++++++++++++++++++++++++ drivers/gpu/nova-core/gsp/fw.rs | 5 + drivers/gpu/nova-core/nova_core.rs | 2 + include/uapi/fwctl/fwctl.h | 1 + include/uapi/fwctl/nova-core.h | 34 ++++++ rust/kernel/fwctl.rs | 2 + rust/uapi/uapi_helper.h | 2 + 10 files changed, 240 insertions(+) create mode 100644 drivers/gpu/nova-core/fwctl.rs create mode 100644 include/uapi/fwctl/nova-core.h base-commit: 9386dc0bd7b777272e001b830892ce1a3fa90aa1