[Intel-gfx] [PATCH 2/4] drm/i915: Enable pr_debug() for CI debugging

Chris Wilson chris at chris-wilson.co.uk
Fri Oct 27 11:06:15 UTC 2017


pr_debug() is compiled out normally, and has to be selected in by
enabling dynamic-debug in Kconfig, or by code #define DEBUG. As we are
making more use of central debugging facilities using pr_debug, we need
to opt-in and enable the output for CI.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 drivers/gpu/drm/i915/i915_utils.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_utils.h b/drivers/gpu/drm/i915/i915_utils.h
index af3d7cc53fa1..afd9569aaac2 100644
--- a/drivers/gpu/drm/i915/i915_utils.h
+++ b/drivers/gpu/drm/i915/i915_utils.h
@@ -25,6 +25,11 @@
 #ifndef __I915_UTILS_H
 #define __I915_UTILS_H
 
+/* Enable pr_debug on request */
+#if IS_ENABLED(CONFIG_DRM_I915_DEBUG)
+#define DEBUG
+#endif
+
 #undef WARN_ON
 /* Many gcc seem to no see through this and fall over :( */
 #if 0
-- 
2.15.0.rc2



More information about the Intel-gfx mailing list