]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: New lock to serialize the Host2GuC actions
authorAkash Goel <akash.goel@intel.com>
Wed, 12 Oct 2016 16:24:35 +0000 (21:54 +0530)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Tue, 25 Oct 2016 08:34:23 +0000 (09:34 +0100)
commit4f94335c9b71abde84a904ec5e525d6eb01001ea
tree218fe14343b88c3efc2ea33ef2a8dd38f9014196
parent9083604fac08039ec0450242f55a8952b5d77a6f
drm/i915: New lock to serialize the Host2GuC actions

With the addition of new Host2GuC actions related to GuC logging, there
is a need of a lock to serialize them, as they can execute concurrently
with each other and also with other existing actions.

v2: Use mutex in place of spinlock to serialize, as sleep can happen
    while waiting for the action's response from GuC. (Tvrtko)

v3: To conform to the general rules, acquire mutex before taking the
    forcewake. (Tvrtko)

Signed-off-by: Akash Goel <akash.goel@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c
drivers/gpu/drm/i915/intel_guc.h