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)
commit7c2c270d27dd4e52529deee9814493c27f956218
tree5a90f236ceb22a59008471512a9ac0827e9217d3
parentfce91f22ff31601a03bdeb5f09b525b035021259
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