From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4122ACAC5B0 for ; Fri, 3 Oct 2025 17:33:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 76EF110E952; Fri, 3 Oct 2025 17:33:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="BZGct/NC"; dkim-atps=neutral Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8C98310E951; Fri, 3 Oct 2025 17:33:26 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 3D48D44B42; Fri, 3 Oct 2025 17:33:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E510DC4CEF5; Fri, 3 Oct 2025 17:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1759512806; bh=YBxUepfkckAj5IwP5nRU1R79rwNPtTxPrmIYM0ip2TU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=BZGct/NC6j5y1kDVLEt2rL44/BmKTgEood0kPUydXjqv42lBHx3Rw1iUZ5hHx0dwp tIor3GiB5TeGigjM+s3RTP6wyssy6PrksAVtLtAjazx3LHVd9XHSJA58NOuAt3gRLX EpGNbNonLZoq7EytAEtA2GbZjQQTeorcxrPQvHiwyVn9U+9RuamZ51NUgn4JRofVzj NlxxzZxEy8Aan7QDpHJo+NITtXHLpUECSgkcwqWo4r54l6J+0JNudKB1eYT3BXAhnz mO6GPGsg2zr7ZDg9kvUU+uNHUKUwVODRK8AREULm3ZalvhI9aB/e9sFjrqF1OF2A/z stAI0BLB6c38w== Date: Fri, 3 Oct 2025 12:33:24 -0500 From: Bjorn Helgaas To: Joel Fernandes Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-pci@vger.kernel.org, dakr@kernel.org, acourbot@nvidia.com, Alistair Popple , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?utf-8?B?QmrDtnJu?= Roy Baron , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , David Airlie , Simona Vetter , John Hubbard , Timur Tabi , joel@joelfernandes.org, Daniel Almeida , Bjorn Helgaas , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= Subject: Re: [PATCH v2] rust: pci: Allocate and manage PCI interrupt vectors Message-ID: <20251003173324.GA361946@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251002183912.1096508-1-joelagnelf@nvidia.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Oct 02, 2025 at 02:39:12PM -0400, Joel Fernandes wrote: > Add support to PCI rust module to allocate, free and manage IRQ vectors. > Integrate with devres for managing the allocated resources. > +/// IRQ type flags for PCI interrupt allocation. > +#[derive(Debug, Clone, Copy)] > +pub enum IrqType { > + /// Legacy INTx interrupts > + Legacy, FWIW, when I can, I try to use "INTx" instead of "legacy" because "INTx" has a specific meaning and is used in the PCIe specs, while "legacy" by itself has no intrinsic meaning. > + /// Message Signaled Interrupts (MSI) > + Msi, > + /// Extended Message Signaled Interrupts (MSI-X) > + MsiX, > +}