On Tue Dec 1, 2026 at 7:16 AM GMT, Alexandre Courbot wrote:
> From: John Hubbard <[email protected]>
> 
> 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 <[email protected]>
> Co-developed-by: Alexandre Courbot <[email protected]>
> Signed-off-by: Alexandre Courbot <[email protected]>
> Reviewed-by: Eliot Courtney <[email protected]>
> Reviewed-by: Danilo Krummrich <[email protected]>

Reviewed-by: Gary Guo <[email protected]>

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

Reply via email to