On Wed Sep 10, 2025 at 9:02 PM CEST, Joel Fernandes wrote:
> On Wed, Sep 10, 2025 at 02:09:55PM -0400, Joel Fernandes wrote:
> [...]
>> > > +/// Allocate IRQ vectors for this PCI device.
>> > > +///
>> > > +/// Allocates between `min_vecs` and `max_vecs` interrupt vectors
>> > > for t
On Mon, Sep 15, 2025 at 11:48:19AM +0200, Danilo Krummrich wrote:
> On Wed Sep 10, 2025 at 9:02 PM CEST, Joel Fernandes wrote:
> > On Wed, Sep 10, 2025 at 02:09:55PM -0400, Joel Fernandes wrote:
> > [...]
> >> > > +/// Allocate IRQ vectors for this PCI device.
> >> > > +///
> >> > > +/
On Wed, Sep 10, 2025 at 10:47:05AM +0200, Danilo Krummrich wrote:
> On Wed Sep 10, 2025 at 5:54 AM CEST, Joel Fernandes wrote:
> > impl Device {
>
> The Bound context is not enough for some of the methods below, some of them
> require the Core context, more below.
Actually my patch already does
910-115528
base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next
patch link:
https://lore.kernel.org/r/20250910035415.381753-1-joelagnelf%40nvidia.com
patch subject: [PATCH] rust: pci: add PCI interrupt allocation and management
support
config: x86_64-rhel-9.4-rust
(https://d
On Wed, Sep 10, 2025 at 02:09:55PM -0400, Joel Fernandes wrote:
[...]
> > > +/// Allocate IRQ vectors for this PCI device.
> > > +///
> > > +/// Allocates between `min_vecs` and `max_vecs` interrupt vectors
> > > for the device.
> > > +/// The allocation will use MSI-X, MSI, or le
On Wed Sep 10, 2025 at 5:54 AM CEST, Joel Fernandes wrote:
> impl Device {
The Bound context is not enough for some of the methods below, some of them
require the Core context, more below.
> +/// Free all allocated IRQ vectors for this device.
> +///
> +/// This should be called to r
Add support for allocating and managing PCI interrupts (MSI-X, MSI, and
legacy) in the Rust PCI abstractions. This provides an interface for
drivers to allocate interrupt vectors and obtain their Linux IRQ
numbers.
Add the following methods to PCI device:
- alloc_irq_vectors() for allocating inter