mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: John Hubbard <jhubbard@nvidia.com>
To: Danilo Krummrich <dakr@kernel.org>,
	Alexandre Courbot <acourbot@nvidia.com>
Cc: "Timur Tabi" <ttabi@nvidia.com>,
	"Alistair Popple" <apopple@nvidia.com>,
	"Eliot Courtney" <ecourtney@nvidia.com>,
	"Zhi Wang" <zhiw@nvidia.com>, "David Airlie" <airlied@gmail.com>,
	"Simona Vetter" <simona@ffwll.ch>,
	"Bjorn Helgaas" <bhelgaas@google.com>,
	"Miguel Ojeda" <ojeda@kernel.org>,
	"Alex Gaynor" <alex.gaynor@gmail.com>,
	"Boqun Feng" <boqun.feng@gmail.com>,
	"Gary Guo" <gary@garyguo.net>,
	"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
	"Benno Lossin" <lossin@kernel.org>,
	"Andreas Hindborg" <a.hindborg@kernel.org>,
	"Alice Ryhl" <aliceryhl@google.com>,
	"Trevor Gross" <tmgross@umich.edu>,
	nova-gpu@lists.linux.dev, LKML <linux-kernel@vger.kernel.org>,
	"John Hubbard" <jhubbard@nvidia.com>
Subject: [PATCH 0/4] gpu: nova-core: debug logging essentials for r000
Date: Thu, 17 Sep 2026 19:12:45 -0700	[thread overview]
Message-ID: <20260918021249.1187837-1-jhubbard@nvidia.com> (raw)

Following up on the r000 v3 patchset that I just posted, this provides
some key logging enhancements for dmesg output, as well as re-enabling
decoding of GSP logs with the new r000 firmware (which has a new log
system that needs a little bit more information; specifically, Build
IDs).

These are a reworked and refreshed version of the debug-logging patches
of the r000 v2 series [1], which Alex asked to be moved into their own
patchset.

* Each log dump carries the header that the log decoder expects, with
  the firmware's build ID, so the decoder matches the dump to the right
  firmware ELF instead of the user guessing.

* Each GMC debug line prints the command by name and labels a received
  message as an event or a response, so that this line:

      GSP GMC: receive: seq# 9223372036854775808, command_id=0x10002, length=0xb0

  becomes this one:

      GSP GMC: event: seq# 0, command=EXEC_GENERIC_BOOTLOADER (0x10002), length=0xb0

A small preparatory patch keeps the NV_PMC_BOOT_42 implementation
field in the GPU spec, so that the log header takes the GPU's
architecture and implementation from the register fields, as Open RM
does.

The series applies on top of v3 of the r000 series [2], which in turn
applies on top of drm-rust-next plus:

* the interrupt tree series for GIN, the GPU Interrupt and Notification
  unit [3]
* Eliot Courtney's NVKV codec series [4]
* the three-patch radix3 cleanup [5]
* two lint fixes for the generated bindings, both already in mainline

A branch with everything applied:

    https://github.com/johnhubbard/linux/tree/nova-core-r615-plus-log-decoding-v0/

[1] https://lore.kernel.org/all/20260822015448.238214-1-jhubbard@nvidia.com/
[2] https://github.com/johnhubbard/linux/tree/nova-core-run-on-r615-or-later-v3/
[3] https://lore.kernel.org/all/20260912044400.677097-1-jhubbard@nvidia.com/
[4] https://lore.kernel.org/all/20260827-b4-nvkv-v2-0-0de9d5c8658c@nvidia.com/
[5] https://lore.kernel.org/all/20260913195413.742143-1-jhubbard@nvidia.com/

John Hubbard (4):
  gpu: nova-core: record the BOOT_42 implementation field in the GPU
    spec
  gpu: nova-core: enable decoding of the GSP firmware logs
  gpu: nova-core: gsp: print GMC command names in debug logs
  gpu: nova-core: gsp: distinguish GMC events from responses in debug
    logs

 drivers/gpu/nova-core/firmware/gsp.rs |  54 ++++++-
 drivers/gpu/nova-core/gpu.rs          |   9 +-
 drivers/gpu/nova-core/gsp.rs          | 212 ++++++++++++++++++++++----
 drivers/gpu/nova-core/gsp/boot.rs     |  11 +-
 drivers/gpu/nova-core/gsp/cmdq.rs     |  42 +++--
 drivers/gpu/nova-core/gsp/fw.rs       |  81 +++++++++-
 6 files changed, 355 insertions(+), 54 deletions(-)

-- 
2.55.0


             reply	other threads:[~2026-09-18  2:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18  2:12 John Hubbard [this message]
2026-09-18  2:12 ` [PATCH 1/4] gpu: nova-core: record the BOOT_42 implementation field in the GPU spec John Hubbard
2026-09-18  2:12 ` [PATCH 2/4] gpu: nova-core: enable decoding of the GSP firmware logs John Hubbard
2026-09-18  2:12 ` [PATCH 3/4] gpu: nova-core: gsp: print GMC command names in debug logs John Hubbard
2026-09-18  2:12 ` [PATCH 4/4] gpu: nova-core: gsp: distinguish GMC events from responses " John Hubbard

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=20260918021249.1187837-1-jhubbard@nvidia.com \
    --to=jhubbard@nvidia.com \
    --cc=a.hindborg@kernel.org \
    --cc=acourbot@nvidia.com \
    --cc=airlied@gmail.com \
    --cc=alex.gaynor@gmail.com \
    --cc=aliceryhl@google.com \
    --cc=apopple@nvidia.com \
    --cc=bhelgaas@google.com \
    --cc=bjorn3_gh@protonmail.com \
    --cc=boqun.feng@gmail.com \
    --cc=dakr@kernel.org \
    --cc=ecourtney@nvidia.com \
    --cc=gary@garyguo.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lossin@kernel.org \
    --cc=nova-gpu@lists.linux.dev \
    --cc=ojeda@kernel.org \
    --cc=simona@ffwll.ch \
    --cc=tmgross@umich.edu \
    --cc=ttabi@nvidia.com \
    --cc=zhiw@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

all inboxes | Powered by JetHome®