✗ CI.checkpatch: warning for drm/xe/guc: Improve GuC log dumping and add to devcoredump
Patchwork
patchwork at emeril.freedesktop.org
Fri Aug 30 06:59:46 UTC 2024
== Series Details ==
Series: drm/xe/guc: Improve GuC log dumping and add to devcoredump
URL : https://patchwork.freedesktop.org/series/137985/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
9fe5037901cabbcdf27a6fe0dfb047ca1474d363
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 8036f2304d4d7eaf18f4dd85f854a7f45beb4aec
Author: John Harrison <John.C.Harrison at Intel.com>
Date: Thu Aug 29 23:23:10 2024 -0700
drm/xe/guc: Add a helper function for dumping GuC log to dmesg
Create a helper function that can be used to dump the GuC log to dmesg
in a manner that is reliable for extraction and decode. The intention
is that calls to this can be added by developers when debugging
specific issues that require a GuC log but do not allow easy capture
of the log - e.g. failures in selftests and failues that lead to
kernel hangs.
Also note that this is really a temporary stop-gap. The aim is to
allow on demand creation and dumping of devcoredump captures (which
includes the GuC log and much more). Currently this is not possible as
much of the devcoredump code requires a 'struct xe_sched_job' and
those are not available at many places that might want to do the dump.
v2: Add kerneldoc - review feedback from Michal W.
Signed-off-by: John Harrison <John.C.Harrison at Intel.com>
+ /mt/dim checkpatch d6714e4e0e19fa8eac4d75293eaae7e479b590a3 drm-intel
32923f639216 drm/xe/guc: Remove spurious line feed in debug print
2a5498b80730 drm/xe: Add ASCII85 dump helper function
2e5bd91033f0 drm/xe/guc: Copy GuC log prior to dumping
a259f51fe66c drm/xe/guc: Use a two stage dump for GuC logs and add more info
53c459c23278 drm/print: Introduce drm_line_printer
2a5f4d64d671 drm/xe/guc: Dead CT helper
-:83: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'ct' - possible side-effects?
#83: FILE: drivers/gpu/drm/xe/xe_guc_ct.c:55:
+#define CT_DEAD(ct, ctb, reason_code) \
+ do { \
+ struct guc_ctb *_ctb = (ctb); \
+ if (_ctb) \
+ _ctb->info.broken = true; \
+ if (!(ct)->dead.reported) { \
+ struct xe_guc *guc = ct_to_guc(ct); \
+ spin_lock_irq(&ct->dead.lock); \
+ (ct)->dead.reason |= 1 << CT_DEAD_##reason_code; \
+ (ct)->dead.snapshot_log = xe_guc_log_snapshot_capture(&guc->log, true); \
+ (ct)->dead.snapshot_ct = xe_guc_ct_snapshot_capture((ct), true); \
+ spin_unlock_irq(&ct->dead.lock); \
+ queue_work(system_unbound_wq, &(ct)->dead.worker); \
+ } \
+ } while (0)
-:99: WARNING:MACRO_ARG_UNUSED: Argument 'ct' is not used in function-like macro
#99: FILE: drivers/gpu/drm/xe/xe_guc_ct.c:71:
+#define CT_DEAD(ct, ctb, reason) \
+ do { \
+ struct guc_ctb *_ctb = (ctb); \
+ if (_ctb) \
+ _ctb->info.broken = true; \
+ } while (0)
-:99: WARNING:MACRO_ARG_UNUSED: Argument 'reason' is not used in function-like macro
#99: FILE: drivers/gpu/drm/xe/xe_guc_ct.c:71:
+#define CT_DEAD(ct, ctb, reason) \
+ do { \
+ struct guc_ctb *_ctb = (ctb); \
+ if (_ctb) \
+ _ctb->info.broken = true; \
+ } while (0)
total: 0 errors, 2 warnings, 1 checks, 504 lines checked
622d9916a054 drm/xe/guc: Dump entire CTB on errors
941b3d93a6b8 drm/xe/guc: Add GuC log to devcoredump captures
8036f2304d4d drm/xe/guc: Add a helper function for dumping GuC log to dmesg
More information about the Intel-xe
mailing list