drm/i915/guc: Change values for i915_guc_log_control
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 11 Jan 2018 15:24:41 +0000 (15:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 18 Jan 2018 17:15:49 +0000 (17:15 +0000)
commit35fe703c3161ac9e723c845d425814a02cfda140
tree3e521e822aa151b40fb530edaee281a38446c4cf
parent0ed8795353265259b3c891d0626fed5f257dc527
drm/i915/guc: Change values for i915_guc_log_control

Today we have format mismatch between read/write operations
of i915_guc_log_control entry. For read we return (0, 1..4)
that represents disable/verbosity levels, but for write we
force user to follow internal structure format (0,1,9,11,13).
Let's hide internals from the user and accept same values
as we support for read and related guc_log_level modparam.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180111152441.21676-2-michal.wajdeczko@intel.com
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_guc_log.c