drm/i915/guc: Don't open log relay if GuC is not running
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sun, 18 Aug 2019 09:52:02 +0000 (09:52 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Aug 2019 10:58:40 +0000 (11:58 +0100)
commit1ce5ba970cb713b8336ef4074c7a42a21c4e82e1
tree77c32105cc699d8f7d137223f0316bdffa5433a3
parent0075a20a6dd150e12d9fcb8f22eb7bc4ba241baf
drm/i915/guc: Don't open log relay if GuC is not running

As we plan to continue driver load after GuC initialization
failure, we can't assume that GuC log data will be available
just because GuC was initially enabled. We must check that
GuC is still running instead.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20190818095204.31568-2-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_log.c
drivers/gpu/drm/i915/i915_debugfs.c