drm/i915: Dump error capture to kernel log
authorJohn Harrison <John.C.Harrison@Intel.com>
Tue, 18 Apr 2023 18:17:43 +0000 (11:17 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 16 May 2023 19:26:46 +0000 (12:26 -0700)
commit6197cff30df44e4db85fed545fecb7df00ff8cd0
tree139109054a57321e11eb84f836e5716d37da7883
parent621b6783c73100067c844c3be0b254c2f350e8ec
drm/i915: Dump error capture to kernel log

This is useful for getting debug information out in certain
situations, such as failing kernel selftests and CI runs that don't
log error captures. It is especially useful for things like retrieving
GuC logs as GuC operation can't be tracked by adding printk or ftrace
entries.

v2: Add CONFIG_DRM_I915_DEBUG_GEM wrapper (review feedback by Rodrigo).

Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230418181744.3251240-2-John.C.Harrison@Intel.com
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/i915_gpu_error.h