drm/i915/guc: Use dedicated flag to track submission mode
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 31 Jul 2019 22:33:20 +0000 (22:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Aug 2019 20:13:29 +0000 (21:13 +0100)
commit724df646c80374f0d6e76c160a248547a042082b
tree502eab36098f61da5feb2f92c46173be999bdd83
parentdb81bc6eb9c01598782599ecf6797adfb167f801
drm/i915/guc: Use dedicated flag to track submission mode

Instead of relying on enable_guc modparam to represent actual
GuC submission mode, use dedicated flag and look at modparam
only to check if submission was explicitly disabled by the user.

v2: rebased, simplified condition (Chris)

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/20190731223321.36436-4-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc.c
drivers/gpu/drm/i915/gt/uc/intel_guc.h
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.h
drivers/gpu/drm/i915/gt/uc/intel_uc.h