]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd0bd0f532304a8feaf216ec35c9aa661356db9f5
tree581465d8cb3aed92f2cdca5deb56b0643ec86e43
parent2423a4eeea313c30a39edf3c01bd106b72639595
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