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

From: Eliot Courtney

Date: Mon Nov 30 2026 - 07:56:38 EST


On Fri Nov 27, 2026 at 8:46 PM JST, 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>