]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Emit await(batch) before MI_BB_START
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 May 2020 10:24:29 +0000 (11:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 May 2020 15:50:04 +0000 (16:50 +0100)
commitff259b1a02842eac24247c959c59eebfa53dd978
treea4293b24a20a44bf52fda298a980c99ce2d3e66a
parent3aa9eb227bcae989198c983d5abc97cd2b221b7c
drm/i915: Emit await(batch) before MI_BB_START

Be consistent and ensure that we always emit the asynchronous waits
prior to issuing instructions that use the address. This ensures that if
we do emit GPU commands to do the await, they are before our use!

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