drm/xe/guc: Separate full CTB content from guc_info debugfs
authorJohn Harrison <John.C.Harrison@Intel.com>
Thu, 24 Oct 2024 00:25:54 +0000 (17:25 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 29 Oct 2024 20:11:34 +0000 (13:11 -0700)
commitdb38fdb7bf5fe72fbebc3357c8844a5101a16f21
tree727e1e2ffbb8b9b26b1ef1a95be63def0fdcd9cc
parent833b2ec3bd5d18b85d8a3f416ca590a44bc4f58c
drm/xe/guc: Separate full CTB content from guc_info debugfs

The guc_info debugfs file is meant to be a quick view of the current
software state of the GuC interface. Including the full CTB contents
makes the file as a whole much less human readable and is not
partiular useful in the general case. So don't pollute the info dump
with the full buffers. Instead, move those into a separate debugfs
entry that can be read when that information is actually required.

Also, improve the human readability by adding a few extra blank lines
to delimt the sections.

v2: Hide the internal capture/print params from external callers that
don't need to know (review feedback from Matthew Brost).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241024002554.1983101-3-John.C.Harrison@Intel.com
drivers/gpu/drm/xe/xe_devcoredump.c
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc_ct.c
drivers/gpu/drm/xe/xe_guc_ct.h
drivers/gpu/drm/xe/xe_guc_debugfs.c