drm/i915: Only defer freeing of fence callback when also using the timer
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Jan 2018 09:06:42 +0000 (09:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Jan 2018 10:29:17 +0000 (10:29 +0000)
commitc32164b1f6a2eafa0658bbf33d02b2da41c72e5a
treee9f02f4e64baa9bdde45c982ffdba9308017783d
parentc9ef291a7e79ebc9fb1723090c12fae626e74c46
drm/i915: Only defer freeing of fence callback when also using the timer

Without an accompanying timer (for internal fences), we can free the
fence callback immediately as we do not need to employ the RCU barrier
to serialise with the timer. By avoiding the RCU delay, we can avoid the
extra mempressure under heavy inter-engine request utilisation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180115090643.26696-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_sw_fence.c