From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 7D5DC2F3C3F; Tue, 11 Nov 2025 08:26:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762849614; cv=none; b=SEOwX6fJVtlM3UoX7aXL9rJxiwI0tIM/cUeHlxIIDjftVB7acBYHiGEub9W5f96QiWWJh9w6dy1M7Rq8wPrTarib0a9Jr6Rv10nV5qYO3PT+fVANymXshMALJeDcEAvHskkMSdmW34vUyTyJyq4kIzfqpn4qZSk+eTax1G4C4Ik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762849614; c=relaxed/simple; bh=96FM0MY01nX4wL/hTTKuey+IyAjZgiStHLdV7xlzeuA=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=I4Zs0u0Qy80n+8BaElzLn7CZfxtmNRDPJbJ+wT3fBhX4bHzlpsk9h61M1WYId7rEZIZcfWgTk0xtFoJxsyMTKZbkxF9iNdUE2pew0vyYJduiolQ5MYmyhfMPv8BzH2+UT8kiNfWhMKfxhb5096/GgzrI4jv3Pc/NDHxH1KcOR04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f2v6Wg8v; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f2v6Wg8v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BDD0C4CEFB; Tue, 11 Nov 2025 08:26:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1762849614; bh=96FM0MY01nX4wL/hTTKuey+IyAjZgiStHLdV7xlzeuA=; h=Date:Subject:Cc:To:From:References:In-Reply-To:From; b=f2v6Wg8vBqxPTA2MkjJ9Gf051kS6sRBZVpTJ/7hgE8CGegU3SvCYU3DSF7cWuYWjD pOoDkwO6GD46bNUHL+TCkZqLYTy3ZG0XoGuFW00cKT1u1Aq1YD+GVIjBIYjtLqcKIj CO/+m/3YBe78BBQrCnP+uB9UJVHCjY7T/TIP7l3KcKQVHiWVCSzwUz63vIF0hIdP3E MmfLxME31u/vq/JlhSOlrzZeC/KtCobBDE/d8BMdvXsI7uTDmpC4GualxJ86kX6hTI 80Wkh1Paezkq8Tufsr9czK1JyYkKiFJiaRdYtwpU/yxkofBie/jDv6IyFnBNxYNFNE 2Coaynkj6ERIw== Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 11 Nov 2025 19:26:42 +1100 Message-Id: Subject: Re: [RFC PATCH v1 0/2] rust: pci: Introduce PCIe error handler support and sample usage Cc: "Miguel Ojeda" , "Alex Gaynor" , "Boqun Feng" , "Gary Guo" , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , "Benno Lossin" , "Andreas Hindborg" , "Alice Ryhl" , "Trevor Gross" , "Greg Kroah-Hartman" , "Bjorn Helgaas" , =?utf-8?q?Krzysztof_Wilczy=C5=84ski?= , , To: "Guangbo Cui" From: "Danilo Krummrich" References: <20251108165511.98546-1-jckeep.cuiguangbo@gmail.com> In-Reply-To: <20251108165511.98546-1-jckeep.cuiguangbo@gmail.com> On Sun Nov 9, 2025 at 3:55 AM AEDT, Guangbo Cui wrote: > Hi all, > > This RFC patchset introduces basic PCIe Advanced Error Reporting (AER) > support for Rust PCI drivers and provides a simple example to demonstrate > it's usage. > > The first patch adds the necessary infrastructure in the Rust PCI layer t= o > support device-specific PCI error handlers, mirroring the existing C > `struct pci_error_handlers` callbacks. > > The second patch updates the Rust PCI sample driver to implement a set of > dummy error handlers. These callbacks simply print messages and return > predefined results, serving as a guide for future Rust PCI driver authors > who want to handle PCIe AER events safely. > > This series is an RFC for discussion and not intended for merging yet. Thanks for the series, I will have a detailed look in a few weeks. I think this will be useful in the nova-core driver for instance. However, = I wonder if you have another use-case you wrote this code for? Thanks, Danilo