drm/i915/gt: Delay release of engine-pm after last retirement
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Mar 2020 09:28:37 +0000 (09:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Mar 2020 12:51:19 +0000 (12:51 +0000)
commitedee52c927ef30d5b0ae871375567f3484f23cee
tree75360a8c8992fd12b85aa187ce1a7d245570fe78
parente9037e7f9a1681fca32e45e82d7b7f714b49a9e6
drm/i915/gt: Delay release of engine-pm after last retirement

Keep the engine-pm awake until the next jiffie, to avoid immediate
ping-pong under moderate load. (Forcing the idle barrier excerbates the
moderate load, dramatically increasing the driver overhead.) On the
other hand, delaying the idle-barrier slightly incurs longer rc6-off
and so more power consumption.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/848
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/20200323092841.22240-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c
drivers/gpu/drm/i915/i915_active.c