OSDN Git Service

drm/i915/selftests: Always hold a reference on a waited upon request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 07:10:43 +0000 (07:10 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 16:14:57 +0000 (16:14 +0000)
commit1ff2f9e26c56a18d78507ac88f52bfd0a9e8ed99
tree354459ab60cff46aa737846bc1c59a4e768ba849
parent93b0e8fe4753e052d415284a0849ae878d852bf1
drm/i915/selftests: Always hold a reference on a waited upon request

Whenever we wait on a request, make sure we actually hold a reference to
it and that it cannot be retired/freed on another CPU!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191121071044.97798-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c