OSDN Git Service

drm/i915: Compile out engine debug for release
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Apr 2018 10:32:19 +0000 (11:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Apr 2018 14:13:35 +0000 (15:13 +0100)
commit7f961d799fe4e0e515225c10b19177280d72c25e
tree3e25d2312b2b06ae6bedf3ab028548bdffcc24c5
parent741258cdd297e94b5f7167408b958b55795abaf8
drm/i915: Compile out engine debug for release

The majority of the engine state dumping is too voluminous to be useful
outside of a controlled setup, though a few do accompany severe errors.
Keep the debug dumps next to the errors, but hide the others behind a CI
compile flag. This becomes more useful when adding more dumps to latency
sensitive paths.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180426103219.22181-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem.h
drivers/gpu/drm/i915/intel_breadcrumbs.c
drivers/gpu/drm/i915/intel_hangcheck.c