drm/i915/gt: Hold request reference while waiting for w/a verification
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 09:33:26 +0000 (09:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 11:54:46 +0000 (11:54 +0000)
commit090a82e9166fbefdb8d371431d4a7f514b3acb86
tree5ff20f7bca7be787a21c4ff2d824bfcf317f561a
parent2d0fb251360ab7eccbffd99f6933a2a4de678d52
drm/i915/gt: Hold request reference while waiting for w/a verification

As we wait upon a request, we must be holding a reference to it, and be
wary that i915_request_add() consumes the passed in reference.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191121093326.134774-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_workarounds.c