]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915/guc: Tidy guc_log_control
authorMichał Winiarski <michal.winiarski@intel.com>
Thu, 8 Mar 2018 15:46:53 +0000 (16:46 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Mar 2018 22:21:41 +0000 (22:21 +0000)
commit86aa82476cffdfa2cb85c2dc8b198e1675773982
tree53095c33638119c494463deb768e1b0ca9eca3c6
parentdf9471689685857c38d5e095652a1bc867ee11cf
drm/i915/guc: Tidy guc_log_control

We plan to decouple log runtime (mapping + relay) from verbosity control.
Let's tidy the code now to reduce the churn in the following patches.

v2: Tidy macros, keep debug messages, use helper var for enable,
    correct typo (Michał)
    Fix incorrect input validaction (Sagar)

Signed-off-by: Michał Winiarski <michal.winiarski@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180308154707.21716-1-michal.winiarski@intel.com
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/intel_guc_log.c
drivers/gpu/drm/i915/intel_guc_log.h