[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <xlcggztkxvt3wx46ldusrnkened3u4rutdw577drzoxaakfp43@u6o6hevrfey4>
Date: Tue, 23 Sep 2025 14:40:32 +1000
From: Alistair Popple <apopple@...dia.com>
To: Timur Tabi <ttabi@...dia.com>
Cc: "dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
Alexandre Courbot <acourbot@...dia.com>, "dakr@...nel.org" <dakr@...nel.org>,
"rust-for-linux@...r.kernel.org" <rust-for-linux@...r.kernel.org>, "lossin@...nel.org" <lossin@...nel.org>,
"ojeda@...nel.org" <ojeda@...nel.org>, "boqun.feng@...il.com" <boqun.feng@...il.com>,
"a.hindborg@...nel.org" <a.hindborg@...nel.org>, "tzimmermann@...e.de" <tzimmermann@...e.de>,
"tmgross@...ch.edu" <tmgross@...ch.edu>, "alex.gaynor@...il.com" <alex.gaynor@...il.com>,
"simona@...ll.ch" <simona@...ll.ch>, "mripard@...nel.org" <mripard@...nel.org>,
"maarten.lankhorst@...ux.intel.com" <maarten.lankhorst@...ux.intel.com>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
John Hubbard <jhubbard@...dia.com>, "nouveau@...ts.freedesktop.org" <nouveau@...ts.freedesktop.org>,
"bjorn3_gh@...tonmail.com" <bjorn3_gh@...tonmail.com>, "airlied@...il.com" <airlied@...il.com>,
"aliceryhl@...gle.com" <aliceryhl@...gle.com>, Joel Fernandes <joelagnelf@...dia.com>,
"gary@...yguo.net" <gary@...yguo.net>
Subject: Re: [PATCH v2 07/10] gpu: nova-core: gsp: Create RM registry and
sysinfo commands
On 2025-09-23 at 05:10 +1000, Timur Tabi <ttabi@...dia.com> wrote...
> On Mon, 2025-09-22 at 21:30 +1000, Alistair Popple wrote:
>
>
> > +const GSP_REGISTRY_NUM_ENTRIES: usize = 2;
> > +struct RegistryEntry {
> > + key: &'static str,
> > + value: u32,
> > +}
>
> Probably should add a comment saying that although GSP-RM technically supports strings as values, we
> don't intend to use that feature. You just have REGISTRY_TABLE_ENTRY_TYPE_DWORD defined without any
> explanation that there are other entry types.
I think at some point we will want to extend this to support setting arbitrary registry values.
> Maybe REGISTRY_TABLE_ENTRY_TYPE_DWORD should be an enum instead of a const.
Yeah, although in this case it comes from the bindings so it's not really
possible until we can get some richer generation of them.
> > +pub(crate) fn build_registry(cmdq: &mut GspCmdq, bar: &Bar0) -> Result {
> > + let registry = RegistryTable {
> > + entries: [
> > + RegistryEntry {
> > + key: "RMSecBusResetEnable",
> > + value: 1,
> > + },
> > + RegistryEntry {
> > + key: "RMForcePcieConfigSave",
> > + value: 1,
> > + },
> > + ],
> > + };
>
> You might want to add another field to RegistryEntry that adds documentation for each of these
> files? Nouveau documents them as comments.
Yeah, good idea. In general the comments in this series are probably lacking so
will update for v3.
> Also, you're missing RMDevidCheckIgnore. See
> https://lore-kernel.gnuweeb.org/nouveau/c34ccc23-5550-4f26-af66-47979afd197e@kernel.org/T/
Thanks
Powered by blists - more mailing lists