From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.10 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796299825; b=ZS5WPHMIInHGr9jjPAm1GreYL8KWgL1uSUw6ExVYpLgfY6jOsKK5UHT43uN80pSTQv2X PFf4e4mdn3OGTLLkyEMCFBslCRDYNu0TRU2Rl4Bh3iyy13eWJgeXxiGDaQ3yH5L3q8WCf OmTpKtzGzo3KZzb7E0K0EOicShP0yUvIFhM607B5PKV1cG5o3bgiXOHKD8iX7ZWQn2xJr YofdLylAoBocecyfjjWD+Fatu+MjwhTQeJioQDEMTLnjs0dsGzIYMZDfsNiCxCb4aaD6E ChvyycS4m+GqtiuKjh2iAczXvnsO1llh2oL6M+7ceJl4UwscQ3nKPI0Mkd2vsnQnXjw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796299825; h=DMARC-Filter:DKIM-Signature:Received:Received:From:Date:Subject: Content-Type:Content-Transfer-Encoding:Message-Id:References: In-Reply-To:To:Cc:X-Mailer:X-ClientProxiedBy:MIME-Version: X-MS-PublicTrafficType:X-MS-TrafficTypeDiagnostic: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0: X-MS-Exchange-AntiSpam-MessageData-1:X-OriginatorOrg: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-CrossTenant-Id:X-MS-Exchange-CrossTenant-MailboxType: X-MS-Exchange-CrossTenant-UserPrincipalName: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=YjmCF69mhd88QqQF3UAb0QgyLLpjrJa7SeoilksA7p4=; b=DThVCMzeW9x+i28cUNWx8GLmkZjqq+sTLlNsgSQZl6/97fg17rd7GE8Uw2+bqsGqcIKZ Uc+NU+de7E576mIfC6Cy3U6uRtm+6CW1PJGhGCwoYvykN6INTCv/vIJcJijZGR/ia8FGH w1GVCxvhmYtVCLqGVEskyP2KtbGQwoT8QeZ2Q2AcChHr3wxop5ZH1trsys3sXU5iZr7ug RutAS1iArDLEqYPdRiTb8zyIb4/b64ITvcTDlx4F7Zx4tXCRG1aAC5QhtG1QCO+aF+fJ5 67qUoRl/f9XsLYIYknE4Jy42NnKqskH0UC23TqXEfUTVpFQJk2yfzrXWiQQZmBYfyqQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=gZb2d1G0; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.57.10 Received: from BN8PR05CU002.outbound.protection.outlook.com (mail-eastus2azon11011010.outbound.protection.outlook.com [52.101.57.10]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 12753607CF21; Thu, 3 Dec 2026 12:10:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 12753607CF21 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, unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=gZb2d1G0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=h2vCDBWpC0fvqaXxTFoKyxYjdr/682YPbc70XbudufdQFDtn1rw+blp6U3mJyYDYxey2UYkWt6+CHYQDdLP0KVCX5Nk7aQEnp3IHVzvW1MsMLSk2ARkPU/y/LSjvTrzQAPdufhT4mCldGXEWkDgO6tf+wYN7diEYfPb5sFn/AQdLlYmT6+AexKUG9R9TSQdt6hiD9VP+ciDbckYbIFlaB8XS2w8gxlCopHRmCbIT/uzeAldKLWUUw36p42mE20uYT71tlBIQy27p0ZsFv0Og/y11+Os57MTNeEcMAGEUR6fUpz+eT8Db9+qHSiAqNG1SsVnUHLTw+q8RmujMxDStpg== 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=YjmCF69mhd88QqQF3UAb0QgyLLpjrJa7SeoilksA7p4=; b=DYu0HJvvduWho5sRxtsXeEYG134DecYKNyyWn90qMriGqNgTSRosRflk7TDROIJ31kgfl4MUr1XPT0XxZBFOTB+F7PeKuJz/69arZOZp/Vd75Dq/6JaRq7LbbOZjvzMAwILuNzcCk1cCSYQ8YISXbl7zWTfXUhFY+NRxbXJnMhS17/8GUI0eDOfOqmjD6OLhK/vkLy66d/02EZHyMd9Jw4pDeuJat5mps1+TObUFWmZVDCaXoeaV2yVWUQlgUFKN5q2yI13dfVsvnmJOI4sUtJ6bGXlNl9OSrRSAtNbq4zziPJFkzUu39qOQ+rstvrd2bHFAOnykmRtZDOQFElzt1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none 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=YjmCF69mhd88QqQF3UAb0QgyLLpjrJa7SeoilksA7p4=; b=gZb2d1G0M9+1VSJ/g6kpGfFEb07U48TIHUKdeDnACLQhdPdRseNM3U4jg5X6oelAmOn4R8tuJrn/vIWwFuYsfPWSRrVF+s9nGGi8HSQoV/pZfaADA/T/zLmnBjt/opDQpWNEnyo5ZuxioUUflg0IiTvWIsAdjEdncbvYw7IDqi0WwQWEa0Q/FOFEsCSz/UUyiTZ0Im1Wd6+cWQXkDP3Dy7jt7xUYbhdeOs/nlQ+7Cs5eFzWYSzIbwhamTwYv8yhSpN36eZzBK/Exkc3oX9dxzCp0ZD7hD3dru5Qmp0BOWLMqoucKAfO52Y0gpVlwLvm+pmuifIVINs8rA9WWWtMNxA== Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from PH7PR12MB6858.namprd12.prod.outlook.com (2603:10b6:510:1b4::20) by IA0PR12MB8984.namprd12.prod.outlook.com (2603:10b6:208:492::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.13; Thu, 3 Dec 2026 12:10:19 +0000 Received: from PH7PR12MB6858.namprd12.prod.outlook.com ([fe80::a550:dbcf:2fcf:463d]) by PH7PR12MB6858.namprd12.prod.outlook.com ([fe80::a550:dbcf:2fcf:463d%6]) with mapi id 15.21.0688.009; Thu, 3 Dec 2026 12:10:19 +0000 From: Alexandre Courbot Date: Thu, 03 Dec 2026 21:09:30 +0900 Subject: [PATCH 13/15] gpu: nova-core: gsp: delete the GSP sequencer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261203-b4-r000-switch-v1-13-b1463ec6dae2@nvidia.com> References: <20261203-b4-r000-switch-v1-0-b1463ec6dae2@nvidia.com> In-Reply-To: <20261203-b4-r000-switch-v1-0-b1463ec6dae2@nvidia.com> To: Danilo Krummrich , Alice Ryhl , David Airlie , Simona Vetter , Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , Daniel Almeida , Tamir Duberstein , =?utf-8?q?Onur_=C3=96zkan?= , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Jonathan Corbet , Shuah Khan , Randy Dunlap Cc: John Hubbard , Alistair Popple , Timur Tabi , Eliot Courtney , Zhi Wang , Alok Kumar , nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Alexandre Courbot X-Mailer: b4 0.16.0 X-ClientProxiedBy: TYCPR01CA0139.jpnprd01.prod.outlook.com (2603:1096:400:2b7::16) To PH7PR12MB6858.namprd12.prod.outlook.com (2603:10b6:510:1b4::20) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PH7PR12MB6858:EE_|IA0PR12MB8984:EE_ X-MS-Office365-Filtering-Correlation-Id: 023c1b45-78de-4945-dd16-08df513665b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|10070799003|23010399003|366016|376014|1800799024|7416014|11063799006|6133799003|261009223027099003|18002099003|22082099003|3023799007|921020|10067099003|56012099006|261026121527099003|261102123227099003|261021123027099003|261028144727099003|261021121427099003|261022105027099003|261022075727099003|261102124527099003|261026140227099003; X-Microsoft-Antispam-Message-Info: QcIRlTzYMNp7aRg7DeISxHgeC8x9YoMetCPv8mvfh5bglWwD909dx3tEn3UpXxJlWRBKhPtKm9ai7UVA44V5i1E4FgzmMKTz7O/OxcQQWP14Tzwl5So3E7NNDg42zZoyyMFTUoyec+oj3uJL8x8R8/Es1zb7XI9GhQa4ZPale0AisKly0Uyu6gSP2md5C85mZUaSE/bWwlN+r6q3QLCrjZlh27MPFgOUPxSgYTn1uY208iXGW6S7cN4YVtQ9qnyrYqYpRGbPUycvOLPunDhusK3eC70UcbcUxzOaCsJguHuQZELzYcRrofbQRAA+VjBUZX5QtUGd/irad0BH1mO+/e422DM5J6lz1jOHw+NRCtiEkR5YzU8ddW7ujhVKCiOYx0psdf9fJrP1VXVUd0Da9W2Z+L+hMcHJrn1qHMJCCudlLb4AInse8Yf1Zgg/6otLv4onw7gjHeQZSh56Yu0eVJhJ7v7LNNynaV8YSVNE+uJM0DKcIHXR9mS9vUfGLyZOy3nlz4sKndjvPX1rDeoxGAN3uEYZ318mdVmDRFg945nYHs7RSD1xwUrkLwkqdtX6cO9kpIrQQWQDWXBpPuFDOntHpc88QUpaJTbMjoCB053zNcSgRTmRetB1+Zd79MbeM8Kv8r09xSQG+wCJeb+AZNaSdaTlwdDVCFoXjCqOC87D/a0n2kizSLzV/tNUSqbn+LEOLwhBlcTh+AeGcAe8Zg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH7PR12MB6858.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(10070799003)(23010399003)(366016)(376014)(1800799024)(7416014)(11063799006)(6133799003)(261009223027099003)(18002099003)(22082099003)(3023799007)(921020)(10067099003)(56012099006)(261026121527099003)(261102123227099003)(261021123027099003)(261028144727099003)(261021121427099003)(261022105027099003)(261022075727099003)(261102124527099003)(261026140227099003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 2 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?QVhDclV1Z213WExxZENpUzIvcGVsL0R2UDcrUGVmRmx3WGVaWHpZR09USk1G?= =?utf-8?B?Q0JBVFQzUmJkdzIzZUdUb0lFZWFQOERwSHptTVU3NWUycXpZdmxWaDB5cWlQ?= =?utf-8?B?RFRqaXphU1FCVGx5eDdFUE1qa2wwYmZyYmljSHNISElPd3UrUjRBdndKaHc3?= =?utf-8?B?MzdFWVRZWHFlZVBsYklaTTFLWEdhdlA4dkxXanVGVlg1TzFjM3Z5VkRHcE1I?= =?utf-8?B?cEVQSnZJSzZHWGFPY1lNQkppbWVFdFd1U1F1VXh4ZWZacG9kUWIrbVBYNjM4?= =?utf-8?B?ZGh2ZEs4RjVTdDZwZStlVWlUQXBhdTFXTFlSbmtrVGlWK1lXV2JGVzVoK2JH?= =?utf-8?B?dWlpTWRaOVFyQmdRRmNqbTl0ZXY2T3lCbGhmbDVGNEhPQ1ZsRnF0aXYxRlhM?= =?utf-8?B?OWVwSmVHQXlxS0c1dVZWOW5vMGVyNXp1VmY2TFJTS2VJVzhUT0FMWjNjRTBC?= =?utf-8?B?M281alV4QzEzODFwU1FsVUZKYm85SS82eVdXUWJYQjhmQ3NZMWcxcjNzZC9U?= =?utf-8?B?TFN1SEVzTExkeGtrSzBobVlnUUNtR2ZkMzU2U0lRRnYrQXBKL1FYckxvVm5D?= =?utf-8?B?MGI2NFY3QlNtdnMvd2lvU3g1c0pONS9VS1ovWFNPTXRpWHFzUWg0RnRaN3d1?= =?utf-8?B?ZUhwd0hKTldJNDNPczhUb3FKM3FaRmdwR1p6bjNMN0lVVWd1cWdHNVU5NTlw?= =?utf-8?B?cGJhSGZqbERLOUR2Y3IyMEpwa0plMDQzMGxNeXFwZXVld0hDZERlaUJ1aUU2?= =?utf-8?B?azdwNjUrNFdnaUZQNGo3MjRVL1JTOTJxRlhlSjZtZzNsdXQ0cUVWQTlFWXJn?= =?utf-8?B?WWJUMS9WYTVDb2M3Z1RobkZaQkZ4dDBnVWJQcmdnWVcxQ1FFNFhmS1FNTkpS?= =?utf-8?B?dzlrbForRkdNNFpyUXA5V09GdVpuZnlidzdvb0xVQjVLaFNxNUhoQ2RoU0xM?= =?utf-8?B?ZG4wbjlDWDBJRkx0SitZcm0yTGszZGtyMFlWbW1YVmFSZys1SzFRL1YzeFFV?= =?utf-8?B?VnptZ0RQaXZud0xPWERuLzJaKyt2ZHUvN2tmWjk4eGhQQStpZ1hRT1paVnB0?= =?utf-8?B?MmpsT3hoTGJoYlBDZm5GZllOaGUwSTB0cGRsdWxRMGk1b2NReDR5ajFOWTUz?= =?utf-8?B?Y2lEUC8vR0ZPYURzZ0lJejhsaTEyVjVaa2dlVG00bDNWeHM5ZElNMUJnME1P?= =?utf-8?B?SVV4Y29wditybGRFSVJNZjlYWXUvTmdBT1JGSDNia0NDZU9yTXI2YlJ0Wkw5?= =?utf-8?B?bWtZRW1oZXE3eTJNYnhTNmdISVNrdzhyVWNCelAvUm9TY1QzWGkwQ0dMdllL?= =?utf-8?B?N3FSc2ExSksxejlDODFib0RQVXhSSXpxdXZwT2FFbWcwTCsreGgvS3RxaUNW?= =?utf-8?B?TitYMERaRHp2aEVvUUJxRkdWNlBRN1hxaXJaTThITFVPQTlPOTNvQ2VDenA0?= =?utf-8?B?cUg0enJ3V1hwSVpiZkVJeldXeTZ3bHZ5U2U1ekxCL2x1WDhsZjNBOUdaRkVQ?= =?utf-8?B?L05tOHQ0OC8wVlQ4R0RRNnNwSnJubThTaW4yTlZqeWxtRkQ2MDUxUXBrU003?= =?utf-8?B?NWpBbXhvL3BNOUNUNlhTQ1kwQkFYVk1IK1c5NWcxWkU3Q01IaTRmUENzMlBr?= =?utf-8?B?UjFyQ0E5ajdpYUdBN3RpbG5FS2Yzdm9oOTJiTW5BUnQ5aXNCYUkwL1RRbGxM?= =?utf-8?B?VHFUU3RTZU9DSDdwUW9IQ0JVU1FTY0pUUGJ2TCtGNTB5NzllbFZHSG1pcTNm?= =?utf-8?B?N1JKUnVRVnhRWmZQMVQ0THcveXR3UDNsd3JVNlVoYWhOQXpITEdHMXJOSjY4?= =?utf-8?B?MXBlak5mZDVPYWxoL2xxTEtnYW04djRKeXF3MkVtWTNzcVlydnFXaVpSMjho?= =?utf-8?B?aUlHMGpwN0ZqbVRqRFh4SmlXTUZtSVlrdjNyTXB4cCtkSGNhamRkZmRpaXIy?= =?utf-8?B?TVM4cVRmUXg0eExDWStUMlgzaEhqRHZoMDQzT24xWHVhS2MzeEpYbnpndXRz?= =?utf-8?B?dUdZSVNVUDUxclBUZGl5Z1FnVjk3Q2hpUGQrN2Q5ZVg2TXdZOVdPL3hxbngz?= =?utf-8?B?R1lQNk1zaWNVV2V5TGQvaFhheCtSSldnckgxWXhQbkFYbzJrc0o5NnM3OVdX?= =?utf-8?B?M1gwR2xxbzFSWUR6YlB6cm5rV1N6K29UaUJ3Y09idjhJLzNaRDBUMTV0SDFx?= =?utf-8?B?UFJLZmc5T0NlRkNZd09WSmwzMlI2T2lzY1QwcHhyaFdzK0JJekd0Wm04RTlF?= =?utf-8?B?YTVBVzJiN1VpeWx1U01QYmNLVmM5cWNIR1V4NWU5YlpDWTFCeEwzekEzTGNq?= =?utf-8?B?dHlvYW1veENvd3RMaldLOU10ZnczcGFuOU4rbDRWUkdQdmg3d2N6OUNyOUtX?= =?utf-8?Q?U1KT6HKayjdf/XLt+smbcp94K+pWjAEN9jr/ZsneVX90J?= X-MS-Exchange-AntiSpam-MessageData-1: W1SZujIlligP9w== X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 023c1b45-78de-4945-dd16-08df513665b2 X-MS-Exchange-CrossTenant-AuthSource: PH7PR12MB6858.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Dec 2026 12:10:19.2874 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: btk9+ZAnn+VnLcvtvV8wRGotXwKasGRdLoVlOv5Rasa2IZpIDUtKJ6+GuVoyU5V0D7+sM5ZS7TipJp904j5KDQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8984 From: John Hubbard With the switch to the r000 GSP firmware, load-and-execute GMC events replaced the command sequences that the r570 GSP-RM sent for the GSP sequencer to run, leaving the sequencer module unused. Delete the GSP sequencer module along with its firmware wrapper types, RPC event variant, and the post_boot HAL hook. Also mark `SBufferIter::flush_into_kvec` as dead code now that its last caller is gone. Signed-off-by: John Hubbard Signed-off-by: Alexandre Courbot --- drivers/gpu/nova-core/gsp.rs | 1 - drivers/gpu/nova-core/gsp/fw.rs | 275 ------------------------- drivers/gpu/nova-core/gsp/hal.rs | 14 -- drivers/gpu/nova-core/gsp/hal/tu102.rs | 12 -- drivers/gpu/nova-core/gsp/sequencer.rs | 353 --------------------------------- drivers/gpu/nova-core/sbuffer.rs | 1 + 6 files changed, 1 insertion(+), 655 deletions(-) diff --git a/drivers/gpu/nova-core/gsp.rs b/drivers/gpu/nova-core/gsp.rs index 05c1aa9d2159..a43e76609485 100644 --- a/drivers/gpu/nova-core/gsp.rs +++ b/drivers/gpu/nova-core/gsp.rs @@ -24,7 +24,6 @@ mod logbuffer; mod nvkv; mod regs; -mod sequencer; use logbuffer::LogBuffers; pub(crate) use logbuffer::RetainedLogs; diff --git a/drivers/gpu/nova-core/gsp/fw.rs b/drivers/gpu/nova-core/gsp/fw.rs index c51f0c6913df..c5ed5d47918a 100644 --- a/drivers/gpu/nova-core/gsp/fw.rs +++ b/drivers/gpu/nova-core/gsp/fw.rs @@ -304,7 +304,6 @@ pub(crate) enum MsgFunction { GspInitDone = bindings::NV_VGPU_MSG_EVENT_GSP_INIT_DONE, GspLockdownNotice = bindings::NV_VGPU_MSG_EVENT_GSP_LOCKDOWN_NOTICE, GspPostNoCat = bindings::NV_VGPU_MSG_EVENT_GSP_POST_NOCAT_RECORD, - GspRunCpuSequencer = r570_144::NV_VGPU_MSG_EVENT_GSP_RUN_CPU_SEQUENCER, MmuFaultQueued = bindings::NV_VGPU_MSG_EVENT_MMU_FAULT_QUEUED, OsErrorLog = bindings::NV_VGPU_MSG_EVENT_OS_ERROR_LOG, PostEvent = bindings::NV_VGPU_MSG_EVENT_POST_EVENT, @@ -351,9 +350,6 @@ fn try_from(value: u32) -> Result { bindings::NV_VGPU_MSG_EVENT_GSP_INIT_DONE => Ok(MsgFunction::GspInitDone), bindings::NV_VGPU_MSG_EVENT_GSP_LOCKDOWN_NOTICE => Ok(MsgFunction::GspLockdownNotice), bindings::NV_VGPU_MSG_EVENT_GSP_POST_NOCAT_RECORD => Ok(MsgFunction::GspPostNoCat), - r570_144::NV_VGPU_MSG_EVENT_GSP_RUN_CPU_SEQUENCER => { - Ok(MsgFunction::GspRunCpuSequencer) - } bindings::NV_VGPU_MSG_EVENT_MMU_FAULT_QUEUED => Ok(MsgFunction::MmuFaultQueued), bindings::NV_VGPU_MSG_EVENT_OS_ERROR_LOG => Ok(MsgFunction::OsErrorLog), bindings::NV_VGPU_MSG_EVENT_POST_EVENT => Ok(MsgFunction::PostEvent), @@ -371,277 +367,6 @@ fn from(value: MsgFunction) -> Self { } } -/// Sequencer buffer opcode for GSP sequencer commands. -#[derive(Copy, Clone, Debug, PartialEq)] -#[repr(u32)] -pub(crate) enum SeqBufOpcode { - // Core operation opcodes - CoreReset = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESET, - CoreResume = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESUME, - CoreStart = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_START, - CoreWaitForHalt = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_WAIT_FOR_HALT, - - // Delay opcode - DelayUs = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_DELAY_US, - - // Register operation opcodes - RegModify = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_MODIFY, - RegPoll = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_POLL, - RegStore = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_STORE, - RegWrite = r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_WRITE, -} - -impl TryFrom for SeqBufOpcode { - type Error = kernel::error::Error; - - fn try_from(value: u32) -> Result { - match value { - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESET => { - Ok(SeqBufOpcode::CoreReset) - } - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_RESUME => { - Ok(SeqBufOpcode::CoreResume) - } - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_START => { - Ok(SeqBufOpcode::CoreStart) - } - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_CORE_WAIT_FOR_HALT => { - Ok(SeqBufOpcode::CoreWaitForHalt) - } - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_DELAY_US => Ok(SeqBufOpcode::DelayUs), - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_MODIFY => { - Ok(SeqBufOpcode::RegModify) - } - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_POLL => Ok(SeqBufOpcode::RegPoll), - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_STORE => Ok(SeqBufOpcode::RegStore), - r570_144::GSP_SEQ_BUF_OPCODE_GSP_SEQ_BUF_OPCODE_REG_WRITE => Ok(SeqBufOpcode::RegWrite), - _ => Err(EINVAL), - } - } -} - -impl From for u32 { - fn from(value: SeqBufOpcode) -> Self { - // CAST: `SeqBufOpcode` is `repr(u32)` and can thus be cast losslessly. - value as u32 - } -} - -/// Wrapper for GSP sequencer register write payload. -#[repr(transparent)] -#[derive(Copy, Clone, Debug)] -pub(crate) struct RegWritePayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_WRITE); - -impl RegWritePayload { - /// Returns the register address. - pub(crate) fn addr(&self) -> u32 { - self.0.addr - } - - /// Returns the value to write. - pub(crate) fn val(&self) -> u32 { - self.0.val - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for RegWritePayload {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for RegWritePayload {} - -/// Wrapper for GSP sequencer register modify payload. -#[repr(transparent)] -#[derive(Copy, Clone, Debug)] -pub(crate) struct RegModifyPayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_MODIFY); - -impl RegModifyPayload { - /// Returns the register address. - pub(crate) fn addr(&self) -> u32 { - self.0.addr - } - - /// Returns the mask to apply. - pub(crate) fn mask(&self) -> u32 { - self.0.mask - } - - /// Returns the value to write. - pub(crate) fn val(&self) -> u32 { - self.0.val - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for RegModifyPayload {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for RegModifyPayload {} - -/// Wrapper for GSP sequencer register poll payload. -#[repr(transparent)] -#[derive(Copy, Clone, Debug)] -pub(crate) struct RegPollPayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_POLL); - -impl RegPollPayload { - /// Returns the register address. - pub(crate) fn addr(&self) -> u32 { - self.0.addr - } - - /// Returns the mask to apply. - pub(crate) fn mask(&self) -> u32 { - self.0.mask - } - - /// Returns the expected value. - pub(crate) fn val(&self) -> u32 { - self.0.val - } - - /// Returns the timeout in microseconds. - pub(crate) fn timeout(&self) -> u32 { - self.0.timeout - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for RegPollPayload {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for RegPollPayload {} - -/// Wrapper for GSP sequencer delay payload. -#[repr(transparent)] -#[derive(Copy, Clone, Debug)] -pub(crate) struct DelayUsPayload(r570_144::GSP_SEQ_BUF_PAYLOAD_DELAY_US); - -impl DelayUsPayload { - /// Returns the delay value in microseconds. - pub(crate) fn val(&self) -> u32 { - self.0.val - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for DelayUsPayload {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for DelayUsPayload {} - -/// Wrapper for GSP sequencer register store payload. -#[repr(transparent)] -#[derive(Copy, Clone, Debug)] -pub(crate) struct RegStorePayload(r570_144::GSP_SEQ_BUF_PAYLOAD_REG_STORE); - -impl RegStorePayload { - /// Returns the register address. - pub(crate) fn addr(&self) -> u32 { - self.0.addr - } - - /// Returns the storage index. - #[allow(unused)] - pub(crate) fn index(&self) -> u32 { - self.0.index - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for RegStorePayload {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for RegStorePayload {} - -/// Wrapper for GSP sequencer buffer command. -#[repr(transparent)] -pub(crate) struct SequencerBufferCmd(r570_144::GSP_SEQUENCER_BUFFER_CMD); - -impl SequencerBufferCmd { - /// Returns the opcode as a `SeqBufOpcode` enum, or error if invalid. - pub(crate) fn opcode(&self) -> Result { - self.0.opCode.try_into() - } - - /// Returns the register write payload by value. - /// - /// Returns an error if the opcode is not `SeqBufOpcode::RegWrite`. - pub(crate) fn reg_write_payload(&self) -> Result { - if self.opcode()? != SeqBufOpcode::RegWrite { - return Err(EINVAL); - } - // SAFETY: Opcode is verified to be `RegWrite`, so union contains valid `RegWritePayload`. - Ok(RegWritePayload(unsafe { self.0.payload.regWrite })) - } - - /// Returns the register modify payload by value. - /// - /// Returns an error if the opcode is not `SeqBufOpcode::RegModify`. - pub(crate) fn reg_modify_payload(&self) -> Result { - if self.opcode()? != SeqBufOpcode::RegModify { - return Err(EINVAL); - } - // SAFETY: Opcode is verified to be `RegModify`, so union contains valid `RegModifyPayload`. - Ok(RegModifyPayload(unsafe { self.0.payload.regModify })) - } - - /// Returns the register poll payload by value. - /// - /// Returns an error if the opcode is not `SeqBufOpcode::RegPoll`. - pub(crate) fn reg_poll_payload(&self) -> Result { - if self.opcode()? != SeqBufOpcode::RegPoll { - return Err(EINVAL); - } - // SAFETY: Opcode is verified to be `RegPoll`, so union contains valid `RegPollPayload`. - Ok(RegPollPayload(unsafe { self.0.payload.regPoll })) - } - - /// Returns the delay payload by value. - /// - /// Returns an error if the opcode is not `SeqBufOpcode::DelayUs`. - pub(crate) fn delay_us_payload(&self) -> Result { - if self.opcode()? != SeqBufOpcode::DelayUs { - return Err(EINVAL); - } - // SAFETY: Opcode is verified to be `DelayUs`, so union contains valid `DelayUsPayload`. - Ok(DelayUsPayload(unsafe { self.0.payload.delayUs })) - } - - /// Returns the register store payload by value. - /// - /// Returns an error if the opcode is not `SeqBufOpcode::RegStore`. - pub(crate) fn reg_store_payload(&self) -> Result { - if self.opcode()? != SeqBufOpcode::RegStore { - return Err(EINVAL); - } - // SAFETY: Opcode is verified to be `RegStore`, so union contains valid `RegStorePayload`. - Ok(RegStorePayload(unsafe { self.0.payload.regStore })) - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for SequencerBufferCmd {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for SequencerBufferCmd {} - -/// Wrapper for GSP run CPU sequencer RPC. -#[repr(transparent)] -pub(crate) struct RunCpuSequencer(r570_144::rpc_run_cpu_sequencer_v17_00); - -impl RunCpuSequencer { - /// Returns the command index. - pub(crate) fn cmd_index(&self) -> u32 { - self.0.cmdIndex - } -} - -// SAFETY: This struct only contains integer types for which all bit patterns are valid. -unsafe impl FromBytes for RunCpuSequencer {} - -// SAFETY: Padding is explicit and will not contain uninitialized data. -unsafe impl AsBytes for RunCpuSequencer {} - /// Struct containing the arguments required to pass a memory buffer to the GSP /// for use during initialisation. /// diff --git a/drivers/gpu/nova-core/gsp/hal.rs b/drivers/gpu/nova-core/gsp/hal.rs index caf249f37445..49f5752cc71a 100644 --- a/drivers/gpu/nova-core/gsp/hal.rs +++ b/drivers/gpu/nova-core/gsp/hal.rs @@ -41,20 +41,6 @@ fn boot<'gpu>( ctx: &mut GspBootContext<'_, 'gpu>, gsp_fw: &GspFirmware<'gpu>, ) -> Result>>; - - /// Performs HAL-specific post-GSP boot tasks. - /// - /// This method is called by the GSP boot code after the GSP is confirmed to be running, and - /// after the initialization commands have been pushed onto its queue. - #[expect(dead_code)] - fn post_boot( - &self, - _gsp: &Gsp<'_>, - _ctx: &mut GspBootContext<'_, '_>, - _gsp_fw: &GspFirmware<'_>, - ) -> Result { - Ok(()) - } } /// Returns the names of the firmware files required to boot the GSP of `chipset`, in addition to diff --git a/drivers/gpu/nova-core/gsp/hal/tu102.rs b/drivers/gpu/nova-core/gsp/hal/tu102.rs index 2c95d178b020..8742910aa623 100644 --- a/drivers/gpu/nova-core/gsp/hal/tu102.rs +++ b/drivers/gpu/nova-core/gsp/hal/tu102.rs @@ -40,7 +40,6 @@ UnloadBundle, // }, regs, - sequencer::GspSequencer, Gsp, GspBootContext, GspFwWprMeta, // @@ -313,17 +312,6 @@ fn boot<'gpu>( Ok(unload_guard.dismiss()) } - - fn post_boot( - &self, - gsp: &Gsp<'_>, - ctx: &mut GspBootContext<'_, '_>, - gsp_fw: &GspFirmware<'_>, - ) -> Result { - GspSequencer::run(&gsp.cmdq, ctx, &gsp.libos, gsp_fw.bootloader.app_version)?; - - Ok(()) - } } /// The TU102 HAL requires the use of the FWSEC bootloader. diff --git a/drivers/gpu/nova-core/gsp/sequencer.rs b/drivers/gpu/nova-core/gsp/sequencer.rs deleted file mode 100644 index bd83dd924244..000000000000 --- a/drivers/gpu/nova-core/gsp/sequencer.rs +++ /dev/null @@ -1,353 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 - -//! GSP Sequencer implementation for Pre-hopper GSP boot sequence. - -use core::array; - -use kernel::{ - device, - dma::Coherent, - io::{ - poll::read_poll_timeout, - Io, // - }, - prelude::*, - time::{ - delay::fsleep, - Delta, // - }, - transmute::FromBytes, // -}; - -use crate::{ - driver::Bar0, - falcon::{ - gsp::Gsp, - sec2::Sec2, - Falcon, // - }, - gsp::{ - cmdq::{ - rpc::MessageFromGsp, - Cmdq, // - }, - fw, - load_exec, - GspBootContext, - LibosMemoryRegionInitArgument, // - }, - num::FromSafeCast, - sbuffer::SBufferIter, -}; - -/// GSP Sequencer information containing the command sequence and data. -struct GspSequence { - /// Current command index for error reporting. - cmd_index: u32, - /// Command data buffer containing the sequence of commands. - cmd_data: KVec, -} - -impl MessageFromGsp for GspSequence { - const FUNCTION: fw::MsgFunction = fw::MsgFunction::GspRunCpuSequencer; - type InitError = Error; - type Message = fw::RunCpuSequencer; - - fn read( - msg: &Self::Message, - sbuffer: &mut SBufferIter>, - ) -> Result { - let cmd_data = sbuffer.flush_into_kvec(GFP_KERNEL)?; - Ok(GspSequence { - cmd_index: msg.cmd_index(), - cmd_data, - }) - } -} - -const CMD_SIZE: usize = size_of::(); - -/// GSP Sequencer Command types with payload data. -/// Commands have an opcode and an opcode-dependent struct. -#[allow(clippy::enum_variant_names)] -#[derive(Debug)] -pub(crate) enum GspSeqCmd { - RegWrite(fw::RegWritePayload), - RegModify(fw::RegModifyPayload), - RegPoll(fw::RegPollPayload), - DelayUs(fw::DelayUsPayload), - RegStore(fw::RegStorePayload), - CoreReset, - CoreStart, - CoreWaitForHalt, - CoreResume, -} - -impl GspSeqCmd { - /// Creates a new `GspSeqCmd` from raw data returning the command and its size in bytes. - pub(crate) fn new(data: &[u8], dev: &device::Device) -> Result<(Self, usize)> { - let fw_cmd = fw::SequencerBufferCmd::from_bytes(data).ok_or(EINVAL)?; - let opcode_size = core::mem::size_of::(); - - let (cmd, size) = match fw_cmd.opcode()? { - fw::SeqBufOpcode::RegWrite => { - let payload = fw_cmd.reg_write_payload()?; - let size = opcode_size + size_of_val(&payload); - (GspSeqCmd::RegWrite(payload), size) - } - fw::SeqBufOpcode::RegModify => { - let payload = fw_cmd.reg_modify_payload()?; - let size = opcode_size + size_of_val(&payload); - (GspSeqCmd::RegModify(payload), size) - } - fw::SeqBufOpcode::RegPoll => { - let payload = fw_cmd.reg_poll_payload()?; - let size = opcode_size + size_of_val(&payload); - (GspSeqCmd::RegPoll(payload), size) - } - fw::SeqBufOpcode::DelayUs => { - let payload = fw_cmd.delay_us_payload()?; - let size = opcode_size + size_of_val(&payload); - (GspSeqCmd::DelayUs(payload), size) - } - fw::SeqBufOpcode::RegStore => { - let payload = fw_cmd.reg_store_payload()?; - let size = opcode_size + size_of_val(&payload); - (GspSeqCmd::RegStore(payload), size) - } - fw::SeqBufOpcode::CoreReset => (GspSeqCmd::CoreReset, opcode_size), - fw::SeqBufOpcode::CoreStart => (GspSeqCmd::CoreStart, opcode_size), - fw::SeqBufOpcode::CoreWaitForHalt => (GspSeqCmd::CoreWaitForHalt, opcode_size), - fw::SeqBufOpcode::CoreResume => (GspSeqCmd::CoreResume, opcode_size), - }; - - if data.len() < size { - dev_err!(dev, "Data is not enough for command\n"); - return Err(EINVAL); - } - - Ok((cmd, size)) - } -} - -/// GSP Sequencer for executing firmware commands during boot. -pub(crate) struct GspSequencer<'a> { - /// `Bar0` for register access. - bar: Bar0<'a>, - /// SEC2 falcon for core operations. - sec2_falcon: &'a Falcon<'a, Sec2>, - /// GSP falcon for core operations. - gsp_falcon: &'a Falcon<'a, Gsp>, - /// LibOS memory region init arguments. - libos: &'a Coherent<'a, [LibosMemoryRegionInitArgument]>, - /// Bootloader application version. - bootloader_app_version: u32, - /// Device for logging. - dev: &'a device::Device, -} - -impl fw::RegWritePayload { - fn run(&self, sequencer: &GspSequencer<'_>) -> Result { - let addr = usize::from_safe_cast(self.addr()); - - sequencer.bar.try_write32(self.val(), addr) - } -} - -impl fw::RegModifyPayload { - fn run(&self, sequencer: &GspSequencer<'_>) -> Result { - let addr = usize::from_safe_cast(self.addr()); - - sequencer.bar.try_read32(addr).and_then(|val| { - sequencer - .bar - .try_write32((val & !self.mask()) | self.val(), addr) - }) - } -} - -impl fw::RegPollPayload { - fn run(&self, sequencer: &GspSequencer<'_>) -> Result { - let addr = usize::from_safe_cast(self.addr()); - - // Default timeout to 4 seconds. - let timeout_us = if self.timeout() == 0 { - 4_000_000 - } else { - i64::from(self.timeout()) - }; - - // First read. - sequencer.bar.try_read32(addr)?; - - // Poll the requested register with requested timeout. - read_poll_timeout( - || sequencer.bar.try_read32(addr), - |current| (current & self.mask()) == self.val(), - Delta::ZERO, - Delta::from_micros(timeout_us), - ) - .map(|_| ()) - } -} - -impl fw::DelayUsPayload { - fn run(&self, _sequencer: &GspSequencer<'_>) -> Result { - fsleep(Delta::from_micros(i64::from(self.val()))); - Ok(()) - } -} - -impl fw::RegStorePayload { - fn run(&self, sequencer: &GspSequencer<'_>) -> Result { - let addr = usize::from_safe_cast(self.addr()); - - sequencer.bar.try_read32(addr).map(|_| ()) - } -} - -impl GspSeqCmd { - fn run(&self, seq: &GspSequencer<'_>) -> Result { - match self { - GspSeqCmd::RegWrite(cmd) => cmd.run(seq), - GspSeqCmd::RegModify(cmd) => cmd.run(seq), - GspSeqCmd::RegPoll(cmd) => cmd.run(seq), - GspSeqCmd::DelayUs(cmd) => cmd.run(seq), - GspSeqCmd::RegStore(cmd) => cmd.run(seq), - GspSeqCmd::CoreReset => { - seq.gsp_falcon.reset()?; - seq.gsp_falcon.dma_reset(); - Ok(()) - } - GspSeqCmd::CoreStart => { - seq.gsp_falcon.start()?; - Ok(()) - } - GspSeqCmd::CoreWaitForHalt => { - seq.gsp_falcon.wait_till_halted()?; - Ok(()) - } - GspSeqCmd::CoreResume => { - // At this point, 'SEC2-RTOS' has been loaded into SEC2 by the sequencer - // but neither SEC2-RTOS nor GSP-RM is running yet. This part of the - // sequencer will start both. - load_exec::resume_gsp_rm( - seq.dev, - seq.gsp_falcon, - seq.sec2_falcon, - seq.libos.dma_address(), - seq.bootloader_app_version, - ) - } - } - } -} - -/// Iterator over GSP sequencer commands. -struct GspSeqIter<'a> { - /// Command data buffer. - cmd_data: &'a [u8], - /// Current position in the buffer. - current_offset: usize, - /// Total number of commands to process. - total_cmds: u32, - /// Number of commands processed so far. - cmds_processed: u32, - /// Device for logging. - dev: &'a device::Device, -} - -impl<'a> GspSeqIter<'a> { - fn new(seq: &'a GspSequence, dev: &'a device::Device) -> Self { - Self { - cmd_data: &seq.cmd_data, - current_offset: 0, - total_cmds: seq.cmd_index, - cmds_processed: 0, - dev, - } - } -} - -impl<'a> Iterator for GspSeqIter<'a> { - type Item = Result; - - fn next(&mut self) -> Option { - // Stop if we've processed all commands or reached the end of data. - if self.cmds_processed >= self.total_cmds || self.current_offset >= self.cmd_data.len() { - return None; - } - - // Check if we have enough data for opcode. - if self.current_offset + core::mem::size_of::() > self.cmd_data.len() { - return Some(Err(EIO)); - } - - let offset = self.current_offset; - - // Handle command creation based on available data, - // zero-pad if necessary (since last command may not be full size). - let mut buffer = [0u8; CMD_SIZE]; - let copy_len = if offset + CMD_SIZE <= self.cmd_data.len() { - CMD_SIZE - } else { - self.cmd_data.len() - offset - }; - buffer[..copy_len].copy_from_slice(&self.cmd_data[offset..offset + copy_len]); - let cmd_result = GspSeqCmd::new(&buffer, self.dev); - - cmd_result.map_or_else( - |_err| { - dev_err!(self.dev, "Error parsing command at offset {}\n", offset); - None - }, - |(cmd, size)| { - self.current_offset += size; - self.cmds_processed += 1; - Some(Ok(cmd)) - }, - ) - } -} - -impl<'a> GspSequencer<'a> { - pub(crate) fn run( - cmdq: &Cmdq<'_>, - ctx: &'a GspBootContext<'_, '_>, - libos: &'a Coherent<'a, [LibosMemoryRegionInitArgument]>, - bootloader_app_version: u32, - ) -> Result { - let seq_info = cmdq.await_rpc_msg::()?; - - let sequencer = GspSequencer { - bar: ctx.bar, - sec2_falcon: ctx.sec2_falcon, - gsp_falcon: ctx.gsp_falcon, - libos, - bootloader_app_version, - dev: ctx.dev(), - }; - - dev_dbg!(sequencer.dev, "Running CPU Sequencer commands\n"); - - for cmd_result in GspSeqIter::new(&seq_info, sequencer.dev) { - match cmd_result { - Ok(cmd) => cmd.run(&sequencer)?, - Err(e) => { - dev_err!( - sequencer.dev, - "Error running command at index {}\n", - seq_info.cmd_index - ); - return Err(e); - } - } - } - - dev_dbg!( - sequencer.dev, - "CPU Sequencer commands completed successfully\n" - ); - Ok(()) - } -} diff --git a/drivers/gpu/nova-core/sbuffer.rs b/drivers/gpu/nova-core/sbuffer.rs index b8c01104c255..b6e77788c338 100644 --- a/drivers/gpu/nova-core/sbuffer.rs +++ b/drivers/gpu/nova-core/sbuffer.rs @@ -164,6 +164,7 @@ pub(crate) fn read_exact(&mut self, mut dst: &mut [u8]) -> Result { /// Read all the remaining data into a [`KVec`]. /// /// `self` will be empty after this operation. + #[expect(dead_code)] pub(crate) fn flush_into_kvec(&mut self, flags: kernel::alloc::Flags) -> Result> { let mut buf = KVec::::new(); -- 2.56.1