Re: [PATCH v3 0/3] gpu: nova-core: gsp: fix the PCI location sent to GSP-RM
From: Alexandre Courbot
Date: Tue Dec 01 2026 - 10:08:55 EST
On Tue, 01 Dec 2026 16:16:18 +0900, Alexandre Courbot wrote:
> nova-core sends the PCI device ID of the GPU (bus, device, function)
> where GSP-RM expects the layout built by OpenRM's
> gpuEncodeDomainBusDevice() (domain, bus, device). Both only match for a
> GPU at device 0, function 0 of domain 0. Patch 3 fixes this.
>
> Doing so requires extracting the bus and device numbers from the value
> returned by `pci::Device::dev_id`. Rather than doing this in the driver
> (and in every other driver that needs that information), patch 2 adds a
> `Bdf` bitfield to the PCI abstractions and makes `dev_id` return it.
>
> [...]
Applied to drm-rust-next, thanks!
[1/3] rust: bitfield: add missing doccomments for associated constants
commit: d2abe8631d272ae5661613a4defe03fdc7317a6c
[2/3] rust: pci: return a bitfield type for dev_id
commit: 76f1a24fac86482088d1d7d9e18e0951729e0466
[3/3] gpu: nova-core: gsp: send the PCI domain, bus and device to GSP-RM
commit: c9a623455da336120f2aa54176e81e42c19c6020