drm/i915/guc: Split guc_wq_item_append
authorMichał Winiarski <[email protected]>
Wed, 25 Oct 2017 20:00:14 +0000 (22:00 +0200)
committerChris Wilson <[email protected]>
Thu, 26 Oct 2017 20:35:21 +0000 (21:35 +0100)
commita0991e1d2801c5d3e7d98abdefcb8032e09bde6d
treed394285cd11ded7dbadb4eb2271c4c0ae4f0fdb8
parente12ab16907252ebc3ec956932eb40ed88105346b
drm/i915/guc: Split guc_wq_item_append

We're using a special preempt context for HW to preempt into. We don't
want to emit any requests there, but we still need to wrap this context
into a valid GuC work item.
Let's cleanup the functions operating on GuC work items.
We can extract guc_request_add - responsible for adding GuC work item and
ringing the doorbell, and guc_wq_item_append - used by the function
above, not tied to the concept of gem request.

Signed-off-by: Michał Winiarski <[email protected]>
Cc: Chris Wilson <[email protected]>
Cc: Jeff McGee <[email protected]>
Cc: Michal Wajdeczko <[email protected]>
Cc: Oscar Mateo <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Reviewed-by: Jeff McGee <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_guc_submission.c