OSDN Git Service

drm/i915: Move find_active_request() to the engine
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Mar 2019 18:03:32 +0000 (18:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Mar 2019 18:20:06 +0000 (18:20 +0000)
commitcf4331dd3975f89fe4d20c6113620c9139b1c147
treef107483f0713d6d96417b07d4fd344bea7a1e6f9
parentfb251a72d630950fb1a6f4cccff99bffe5aece8b
drm/i915: Move find_active_request() to the engine

To find the active request, we need only search along the individual
engine for the right request. This does not require touching any global
GEM state, so move it into the engine compartment.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190305180332.30900-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gpu_error.c
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/intel_ringbuffer.h