drm/i915/lrc: Prevent preemption when lite-restore is disabled
authorMichel Thierry <michel.thierry@intel.com>
Fri, 4 Sep 2015 11:59:15 +0000 (12:59 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 14 Sep 2015 08:25:01 +0000 (10:25 +0200)
commit5af05fefb5be51d42effc4f802b6d806fbda34eb
tree581465d8cb3aed92f2cdca5deb56b0643ec86e43
parentec72d5884c6a3cf4f27b52da51654a472b919545
drm/i915/lrc: Prevent preemption when lite-restore is disabled

When WaEnableForceRestoreInCtxtDescForVCS is required, it is only
safe to send new contexts if the last reported event is "active to
idle". Otherwise the same context can fully preempt itself because
lite-restore is disabled.

Testcase: igt/gem_concurrent_blit
Reported-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Michel Thierry <michel.thierry@intel.com>
Reviewed-by: Arun Siluvery <arun.siluvery@linux.intel.com>
Tested-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c