]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Add *_ring_begin() to request allocation
authorJohn Harrison <John.C.Harrison@Intel.com>
Fri, 29 May 2015 16:44:09 +0000 (17:44 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 23 Jun 2015 12:02:30 +0000 (14:02 +0200)
commit145817ab05f4a00840f9fdd0944453a1f4451acb
tree77855ea48506c5873ed6bf7d21f74e790c74c6ab
parentde7398715af487bd6e0ee5135fb09a94d5a08fd5
drm/i915: Add *_ring_begin() to request allocation

Now that the *_ring_begin() functions no longer call the request allocation
code, it is finally safe for the request allocation code to call *_ring_begin().
This is important to guarantee that the space reserved for the subsequent
i915_add_request() call does actually get reserved.

v2: Renamed functions according to review feedback (Tomas Elf).

For: VIZ-5115
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h