drm/i915/guc: Don't try to enable GuC logging when we're not using GuC
authorMichał Winiarski <michal.winiarski@intel.com>
Tue, 20 Mar 2018 11:55:17 +0000 (12:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Mar 2018 14:55:58 +0000 (14:55 +0000)
commit03380d173a697475c747e4cd6ea2be739005dedc
tree7ee3b8430fdc91265064f99d917e7e056c457aa7
parentd3d57927995f872e5786ff6ae517a6c3e7a94d75
drm/i915/guc: Don't try to enable GuC logging when we're not using GuC

When changing the default values for guc_log_level, we accidentally left
the log enabled on non-guc platforms. Let's fix that.

v2: Define the levels used and remove (now obsolete) comments (Chris)
v3: Use "IS" rather than "TO" for booleans (Chris)

Fixes: 9605d1ce7c6b ("drm/i915/guc: Default to non-verbose GuC logging")
Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180320115517.20423-1-michal.winiarski@intel.com
drivers/gpu/drm/i915/intel_guc.c
drivers/gpu/drm/i915/intel_guc_log.c
drivers/gpu/drm/i915/intel_guc_log.h
drivers/gpu/drm/i915/intel_uc.c