]> 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)
commitbe65edb0c8109a9ed110484e3aea09f89d491a7a
tree581465d8cb3aed92f2cdca5deb56b0643ec86e43
parent35655cb11e80171600a20a60c27319076f986d1e
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