Skip to content

gpu: nova-core: debug logging essentials for r000

John Hubbard lkml nova-gpu 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4gpu: nova-core: record the BOOT_42 implementation field in the GPU specdrivers/gpu/nova-core/gpu.rs+7 -10 replies
2/4gpu: nova-core: enable decoding of the GSP firmware logsdrivers/gpu/nova-core/firmware/gsp.rs drivers/gpu/nova-core/gpu.rs drivers/gpu/nova-core/gsp.rs +1 more+234 -370 replies
3/4gpu: nova-core: gsp: print GMC command names in debug logsdrivers/gpu/nova-core/gsp/boot.rs drivers/gpu/nova-core/gsp/cmdq.rs drivers/gpu/nova-core/gsp/fw.rs+82 -100 replies
4/4gpu: nova-core: gsp: distinguish GMC events from responses in debug logsdrivers/gpu/nova-core/gsp/cmdq.rs drivers/gpu/nova-core/gsp/fw.rs+36 -100 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchTimur Tabi
1/4
2/4R-b
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] gpu: nova-core: debug logging essentials for r000

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/[email protected]/
[2] https://github.com/johnhubbard/linux/tree/nova-core-run-on-r615-or-later-v3/
[3] https://lore.kernel.org/all/[email protected]/
[4] https://lore.kernel.org/all/[email protected]/
[5] https://lore.kernel.org/all/[email protected]/

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(-)
Signature · 1 line
2.55.0