OSDN Git Service

drm/i915: Remove local timeline var from submit/unsubmit
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Mar 2018 13:10:34 +0000 (13:10 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 22 Mar 2018 13:50:30 +0000 (13:50 +0000)
commit4ccfee92f4b6fbbedee1eb68f110a66f03edf7c6
tree2e6ccf8500b212b84c9b51407e37959e9b7cd7d0
parent0e59c209f4ccf9f9d505babdb04731294e18c4ed
drm/i915: Remove local timeline var from submit/unsubmit

Both request_submit and request_unsubmit deal with transferring the
request from the client's timeline onto the execution timeline and back
again. As both functions deal with a pair of timeline's, using a
shorthand for just one of them is slightly confusing, especially as the
different functions use the shorthand for the alternate timeline.
Instead, use the full version of each timeline so it should be easier to
keep track of the transfer between the request/client and the engine.

v2: Refactor the common lock+list_move
v3: Be clear we require the other timeline list to be locked as well.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180322131034.6036-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c