Re: [PATCH v3 3/3] gpu: nova-core: gsp: send the PCI domain, bus and device to GSP-RM

From: Gary Guo

Date: Tue Dec 01 2026 - 07:51:07 EST


On Tue Dec 1, 2026 at 7:16 AM GMT, Alexandre Courbot wrote:
> From: John Hubbard <jhubbard@xxxxxxxxxx>
>
> Open RM sends the PCI location of the GPU to GSP-RM as one word, which
> gpuEncodeDomainBusDevice() builds: the domain in bits 63:32, the bus
> number in bits 15:8 and the device number in bits 7:0.
>
> Nova-core's system-info command sends the PCI device ID in that word
> instead: the bus number, the device number and the function number, with
> no domain. The two words are equal only for a GPU at device 0, function
> 0 of domain 0, so GSP-RM receives a wrong location for a GPU anywhere
> else.
>
> Send the domain, the bus number and the device number instead, in the
> layout that Open RM uses.
>
> Fixes: edcb134264f7 ("gpu: nova-core: gsp: Add SetSystemInfo command")
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
> Co-developed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
> Reviewed-by: Danilo Krummrich <dakr@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> drivers/gpu/nova-core/gsp/fw/commands.rs | 30 +++++++++++++++++++++++++++++-
> 1 file changed, 29 insertions(+), 1 deletion(-)