]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Enable guc logging on guc log relay write
authorRobert M. Fosha <robert.m.fosha@intel.com>
Tue, 22 Oct 2019 16:37:52 +0000 (09:37 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 23 Oct 2019 22:05:00 +0000 (15:05 -0700)
commitebeb1730a9d4f6061f0de53f06dfa256b0b99da9
tree56687aa624157f1ca67f5b9abb660151c1a30ff2
parent078bb1aaf5d6f2280b6bd03e0ee23e45df6067e7
drm/i915/guc: Enable guc logging on guc log relay write

Creating and opening the GuC log relay file enables and starts
the relay potentially before the caller is ready to consume logs.
Change the behavior so that relay starts only on an explicit call
to the write function (with a value of '1'). Other values flush
the log relay as before.

v2: Style changes and fix typos. Add guc_log_relay_stop()
function. (Daniele)

Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Robert M. Fosha <robert.m.fosha@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191022163754.23870-1-robert.m.fosha@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
drivers/gpu/drm/i915/gt/uc/intel_guc_log.h
drivers/gpu/drm/i915/i915_debugfs.c