drm/i915/gt: Only delay the context barrier pm
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Mar 2020 19:20:29 +0000 (19:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Mar 2020 20:38:56 +0000 (20:38 +0000)
commitaf7a272ef650832b2cb3b20103f1b5254696ae9f
treef4f7948396ee48b9b82c6dda7109ddaa83baa881
parent8493e110a637c273b4d38e79f7ce3c3ad1812931
drm/i915/gt: Only delay the context barrier pm

It is strictly sufficient to only delay the intel_engine_pm_put from the
context barrier (and not from the context exit) in order to prevent the
gem_exec_nop contention. Adding the delay to the context exit incurs
noticably extra penalty for soft-rc6.

Fixes: edee52c927ef ("drm/i915/gt: Delay release of engine-pm after last retirement")
Testcase: igt/i915_pm_rc6_residency/rc6-idle
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200323192029.20723-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_context.c