From: "Danilo Krummrich" <dakr@kernel.org>
To: "Timur Tabi" <ttabi@nvidia.com>
Cc: "gary@garyguo.net" <gary@garyguo.net>,
"nouveau@lists.freedesktop.org" <nouveau@lists.freedesktop.org>,
"Joel Fernandes" <joelagnelf@nvidia.com>,
"Alexandre Courbot" <acourbot@nvidia.com>,
"mmaurer@google.com" <mmaurer@google.com>,
"John Hubbard" <jhubbard@nvidia.com>,
"rust-for-linux@vger.kernel.org" <rust-for-linux@vger.kernel.org>
Subject: Re: [PATCH v4 0/9] gpu: nova-core: expose the logging buffers via debugfs
Date: Wed, 14 Jan 2026 00:50:10 +0100 [thread overview]
Message-ID: <DFNV4H6O06OJ.1KU1PGYYQ1PBU@kernel.org> (raw)
In-Reply-To: <7951d14aa8c2aa0b55834cdaf6ddee3d30302421.camel@nvidia.com>
On Wed Jan 14, 2026 at 12:26 AM CET, Timur Tabi wrote:
> On Wed, 2026-01-14 at 00:11 +0100, Danilo Krummrich wrote:
>> On Tue Jan 13, 2026 at 11:53 PM CET, Timur Tabi wrote:
> Sorry, I couldn't find these messages in my inbox. I will address them in v5.
Sounds good, thanks.
>> > gpu: nova-core: use pin projection in method boot()
>> > rust: debugfs: implement Directory trait for Dir
>> > rust: debugfs: wrap Entry in an enum to prep for LookupDir
>> > rust: debugfs: add LookupDir
>>
>> https://lore.kernel.org/all/DF18RFX3IHVP.3GYNJIYAFFJU6@kernel.org/
>>
>> Especially this one is a concern, I don't want to add this infrastructure as a
>> workaround until we land the feature Gary works on.
>>
>> As mentioned in this reply, I think that debugfs_lookup() rarely is the correct
>> solution and more often indicates some kind of (design) issue, like it does in
>> this case.
>
> Well, I'm at a loss how to proceed, then. I had a global variable, which is the approach that
> Nouveau uses, it was recommended instead that I use debugfs_lookup(). So I implemented that, but
> that is also rejected.
Yeah, the global is not a good approach for a final solution. But as temporary
workaround it's probably fine.
Maybe Gary has an alternative idea for a temporary workaround since he's working
on the proper solution to safely access module fields.
But again, I think a simple global with a FIXME comment should be fine.
> Danilo, you are the one who has been pushing for this code. Please note that the logging buffers
> can only be parsed by Nvidia employees anyway, and we can just use this patchset in house to debug
> GSP-RM as needed. So if you want to wait until Gary's work is ready (I don't know anything about
> what he's doing), please let me know now and I will just keep these patches internally.
I can't remember pushing for it, but I do think it would be good to land.
next prev parent reply other threads:[~2026-01-13 23:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-13 22:53 [PATCH v4 0/9] gpu: nova-core: expose the logging buffers via debugfs Timur Tabi
2026-01-13 22:54 ` [PATCH v4 1/9] rust: pci: add PCI device name method Timur Tabi
2026-01-13 22:54 ` [PATCH v4 2/9] gpu: nova-core: implement BinaryWriter for LogBuffer Timur Tabi
2026-01-13 22:54 ` [PATCH v4 3/9] gpu: nova-core: Replace module_pci_driver! with explicit module init Timur Tabi
2026-01-13 22:54 ` [PATCH v4 4/9] gpu: nova-core: use pin projection in method boot() Timur Tabi
2026-01-13 22:54 ` [PATCH v4 5/9] rust: debugfs: implement Directory trait for Dir Timur Tabi
2026-01-15 17:27 ` kernel test robot
2026-01-13 22:54 ` [PATCH v4 6/9] rust: debugfs: wrap Entry in an enum to prep for LookupDir Timur Tabi
2026-01-13 22:54 ` [PATCH v4 7/9] rust: debugfs: add LookupDir Timur Tabi
2026-01-13 22:54 ` [PATCH v4 8/9] gpu: nova-core: create debugfs root when driver loads Timur Tabi
2026-01-13 22:54 ` [PATCH v4 9/9] gpu: nova-core: create GSP-RM logging buffers debugfs entries Timur Tabi
2026-01-13 23:11 ` [PATCH v4 0/9] gpu: nova-core: expose the logging buffers via debugfs Danilo Krummrich
2026-01-13 23:26 ` Timur Tabi
2026-01-13 23:50 ` Danilo Krummrich [this message]
2026-01-13 23:59 ` Timur Tabi
2026-01-14 1:09 ` Gary Guo
2026-01-14 11:17 ` Danilo Krummrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DFNV4H6O06OJ.1KU1PGYYQ1PBU@kernel.org \
--to=dakr@kernel.org \
--cc=acourbot@nvidia.com \
--cc=gary@garyguo.net \
--cc=jhubbard@nvidia.com \
--cc=joelagnelf@nvidia.com \
--cc=mmaurer@google.com \
--cc=nouveau@lists.freedesktop.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=ttabi@nvidia.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox