]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: pass request (not client) to i915_guc_{wq_check_space, submit}()
authorDave Gordon <david.s.gordon@intel.com>
Fri, 13 May 2016 14:36:32 +0000 (15:36 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 23 May 2016 13:21:53 +0000 (14:21 +0100)
commit2aac76dcf73ce4190aeabc740ed7c92f66cb9ce1
tree5a90f236ceb22a59008471512a9ac0827e9217d3
parent4cd6f6929a5c5e4608b3e867320301f00c2834d5
drm/i915/guc: pass request (not client) to i915_guc_{wq_check_space, submit}()

The knowledge of how to derive the relevant client from the request
should be localised within i915_guc_submission.c; the LRC code shouldn't
have to know about the internal details of the GuC submission process.
And all the information the GuC code needs should be encapsulated in (or
reachable from) the request.

v2:
    GEM_BUG_ON() for bad GuC client (Tvrtko Ursulin).
    Add/update kerneldoc explaining check_space/submit protocol

Signed-off-by: Dave Gordon <david.s.gordon@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
drivers/gpu/drm/i915/intel_lrc.c