]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Don't tag kernel batches as user batches
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:43:38 +0000 (17:43 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:07 +0000 (14:02 +0200)
commit41bf2ec51fa23e77d77f2e0e8bea5a4ead7ce199
tree9a51819b9f2f0308262b1c3c4480fc4c7906c769
parent8aaedfd99b6fbd5ea3ec212397635172935d91ca
drm/i915: Don't tag kernel batches as user batches

The render state initialisation code does an explicit i915_add_request() call to
commit the init commands. It was passing in the initialisation batch buffer to
add_request() as the batch object parameter. However, the batch object entry in
the request structure (which is all that parameter is used for) is meant for
keeping track of user generated batch buffers for blame tagging during GPU
hangs.

This patch clears the batch object parameter so that kernel generated batch
buffers are not tagged as being user generated.

For: VIZ-5115
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_render_state.c
drivers/gpu/drm/i915/intel_lrc.c