OSDN Git Service

drm/i915/selftests: Also wait for the scratch buffer to be bound
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jan 2020 14:26:10 +0000 (14:26 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jan 2020 15:10:02 +0000 (15:10 +0000)
commitbd46aa22a86a1d500c429c2f2e28d5b2d4db0777
tree5f31cdb20b9539710ef26df5a4bdbeca555a34cd
parenta34f61d2c0144c425306a4b6270ac7ce104ec8a0
drm/i915/selftests: Also wait for the scratch buffer to be bound

Since PIN_GLOBAL is no longer guaranteed to be synchronous, we must not
forget to include a wait-for-vma prior to execution.

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/20200131142610.3100998-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_workarounds.c
drivers/gpu/drm/i915/gt/selftest_lrc.c
drivers/gpu/drm/i915/gt/selftest_workarounds.c