]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Terminate the context image with BB_END
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Jul 2018 16:43:25 +0000 (17:43 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 1 Aug 2018 16:03:31 +0000 (17:03 +0100)
commit0f63b7ad4279cb9be27bd25d6cbd8235afc53d51
treeefc7571adc10dfe150b71b2798534cdca6fb67d3
parent4145038b8617c83e5e3adeb37ddabd35e9fdc770
drm/i915/execlists: Terminate the context image with BB_END

In the aub trace utility, the context images are terminated with a
MI_BATCH_BUFFER_END; the simulator is reported as complaining otherwise.
Do the same for our protocontext image for completeness, and in passing
apply the magic bit for gen10 to mark the end of the context image.

Reported-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180730164325.12770-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc_reg.h