drm/i915/selftests: Hold request reference over waits
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Oct 2019 06:17:59 +0000 (07:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 9 Oct 2019 07:58:39 +0000 (08:58 +0100)
commit41f0bc49f7f2014feab8b278fea2adaea6ccaf4e
tree17ce851c2be618a157ae40e13dc926210682c73c
parent6ad145fe0246abe31a312ce19321bb5b11635802
drm/i915/selftests: Hold request reference over waits

Take a reference on the request before submitting it to the HW and then
waiting on it for selftest_workarounds. Once submitted, the request may
be freed by a background worker, unless we take an extra reference for
ourselves.

References: https://bugs.freedesktop.org/show_bug.cgi?id=111926
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191009061759.3189-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_workarounds.c