]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Retire an active batch pool object rather than allocate new
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 16 Mar 2017 13:19:53 +0000 (13:19 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Mar 2017 17:57:20 +0000 (17:57 +0000)
commit468bd8a0a3bf15d3fd0f2df072f679f2b3840c16
tree6576b0f8f8abbf00f63983b678264709183dee3e
parent5827dc9f373104f833ef95414cce3319224ecda7
drm/i915: Retire an active batch pool object rather than allocate new

Since obj->active_count is only updated upon retirement, if we see an
active object in the batch pool, double check that is still active
before deciding to allocate a new object.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170316132006.7976-3-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_batch_pool.c