OSDN Git Service

drm/i915/gt: Free request pool from virtual engines
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 20:33:03 +0000 (21:33 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Apr 2020 20:50:24 +0000 (21:50 +0100)
commit848862e672883232f5f7f07a2d6628ed3f25444f
tree71cb1eb685ed3f5af0baf54ac89b9af517d2a8f7
parent53f5da74c7a2ac355527ae20c09a4064a02815e7
drm/i915/gt: Free request pool from virtual engines

While extremely unlikely to be populated, we could capture a request on
the virtual engine which we should free along with the virtual engine.

Fixes: 43acd6516ca9 ("drm/i915: Keep a per-engine request pool")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Janusz Krzysztofik <janusz.krzysztofik@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200403203303.10903-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine.h
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_lrc.c