]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bdw: Help out the ctx switch interrupt handler
authorOscar Mateo <oscar.mateo@intel.com>
Thu, 24 Jul 2014 16:04:41 +0000 (17:04 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 14 Aug 2014 20:44:04 +0000 (22:44 +0200)
commitca3281a6f561f25205c79a6c55a981a198689cdd
treee2adc3826c1d539acb569535937947253f8cc07d
parentb2583c63d08c730b1f66323b17c3bbda880680a0
drm/i915/bdw: Help out the ctx switch interrupt handler

If we receive a storm of requests for the same context (see gem_storedw_loop_*)
we might end up iterating over too many elements in interrupt time, looking for
contexts to squash together. Instead, share the burden by giving more
intelligence to the queue function. At most, the interrupt will iterate over
three elements.

Signed-off-by: Oscar Mateo <oscar.mateo@intel.com>
Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
[danvet: Checkpatch.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c