[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0c3630727945f806610da8c43211242b9c6162d2.camel@nvidia.com>
Date: Sat, 8 Nov 2025 05:09:27 +0000
From: Timur Tabi <ttabi@...dia.com>
To: "dakr@...nel.org" <dakr@...nel.org>, John Hubbard <jhubbard@...dia.com>
CC: Alexandre Courbot <acourbot@...dia.com>, "lossin@...nel.org"
<lossin@...nel.org>, "a.hindborg@...nel.org" <a.hindborg@...nel.org>,
"boqun.feng@...il.com" <boqun.feng@...il.com>, "aliceryhl@...gle.com"
<aliceryhl@...gle.com>, Zhi Wang <zhiw@...dia.com>, "simona@...ll.ch"
<simona@...ll.ch>, "alex.gaynor@...il.com" <alex.gaynor@...il.com>,
"ojeda@...nel.org" <ojeda@...nel.org>, "tmgross@...ch.edu"
<tmgross@...ch.edu>, "nouveau@...ts.freedesktop.org"
<nouveau@...ts.freedesktop.org>, "linux-kernel@...r.kernel.org"
<linux-kernel@...r.kernel.org>, "rust-for-linux@...r.kernel.org"
<rust-for-linux@...r.kernel.org>, "bjorn3_gh@...tonmail.com"
<bjorn3_gh@...tonmail.com>, Edwin Peer <epeer@...dia.com>,
"airlied@...il.com" <airlied@...il.com>, Joel Fernandes
<joelagnelf@...dia.com>, "bhelgaas@...gle.com" <bhelgaas@...gle.com>,
"gary@...yguo.net" <gary@...yguo.net>, Alistair Popple <apopple@...dia.com>
Subject: Re: [PATCH v6 4/4] gpu: nova-core: add boot42 support for next-gen
GPUs
On Fri, 2025-11-07 at 20:39 -0800, John Hubbard wrote:
> + // Turing and later:
> + //
> + // Supported by Nova. Identified by first checking boot0 to ensure that the GPU
> is not
> + // from an earlier (pre-Fermi) era, and then using boot42 to precisely identify
> the GPU.
> + // Somewhere in the Rubin timeframe, boot0 will no longer have space to add new
> GPU IDs.
> +
> let boot0 = regs::NV_PMC_BOOT_0::read(bar);
>
> - Spec::try_from(boot0)
> + if boot0.use_boot42_instead() {
> + Spec::try_from(regs::NV_PMC_BOOT_42::read(bar))
> + } else {
> + Spec::try_from(boot0)
> + }
> }
Spec::try_from(boot0) will always fail, because we can't generate a Spec from a pre-Turing GPU,
so it seems weird that we have it as an else condition.
I don't think the comment and the code aligns. The code implies that sometimes we'll be using
boot0 to generate the Spec, but that isn't true. However, the comment makes it clear that we'll
be using boot42 only.
Powered by blists - more mailing lists