mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] gpu: nova-core: gsp: fix the PCI location sent to GSP-RM
@ 2026-11-27 11:46 Alexandre Courbot
  2026-11-27 11:46 ` [PATCH 1/3] rust: bitfield: add missing doccomments for associated constants Alexandre Courbot
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Alexandre Courbot @ 2026-11-27 11:46 UTC (permalink / raw)
  To: Yury Norov, Miguel Ojeda, Boqun Feng, Gary Guo,
	Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl,
	Trevor Gross, Danilo Krummrich, Daniel Almeida, Tamir Duberstein,
	Onur Özkan, David Airlie, Simona Vetter, Bjorn Helgaas,
	Krzysztof Wilczyński, Alistair Popple
  Cc: John Hubbard, Timur Tabi, Eliot Courtney, Zhi Wang,
	rust-for-linux, linux-kernel, nova-gpu, dri-devel, linux-pci,
	Alexandre Courbot

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.

Patch 1 documents the constants that `bitfield!` generates for each
field, which otherwise trigger the `missing_docs` lint on public
bitfields like `Bdf`.

This series is based on drm-rust-next.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
---
Alexandre Courbot (2):
      rust: bitfield: add missing doccomments for associated constants
      rust: pci: return a bitfield type for dev_id

John Hubbard (1):
      gpu: nova-core: gsp: send the PCI domain, bus and device to GSP-RM

 drivers/gpu/nova-core/gsp/fw/commands.rs | 30 ++++++++++++++++++++++++++++-
 rust/kernel/bitfield.rs                  |  3 +++
 rust/kernel/pci.rs                       | 33 ++++++++++++++++++++++++++++++--
 samples/rust/rust_driver_sriov/pf.rs     |  2 +-
 4 files changed, 64 insertions(+), 4 deletions(-)
---
base-commit: abfb640b2374e26de8ff81d488c39d8254db538e
change-id: 20261127-nova-gsp-dbd-4f3d26be980e

Best regards,
--  
Alexandre Courbot <acourbot@nvidia.com>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-11-27 14:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-27 11:46 [PATCH 0/3] gpu: nova-core: gsp: fix the PCI location sent to GSP-RM Alexandre Courbot
2026-11-27 11:46 ` [PATCH 1/3] rust: bitfield: add missing doccomments for associated constants Alexandre Courbot
2026-11-27 11:46 ` [PATCH 2/3] rust: pci: return a bitfield type for dev_id Alexandre Courbot
2026-11-27 12:44   ` Danilo Krummrich
2026-11-27 14:40   ` Gary Guo
2026-11-27 11:46 ` [PATCH 3/3] gpu: nova-core: gsp: send the PCI domain, bus and device to GSP-RM Alexandre Courbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®