]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit194f1c655492f1745d6e4c65f63c1a2562ed7e0c
tree502eab36098f61da5feb2f92c46173be999bdd83
parent90fc5cc5dcec6c7c87cd2c0a6802c31b27c90d5b
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