drm/i915: Check for matching ringbuffer in logical_ring_wait_request()
authorDave Gordon <david.s.gordon@intel.com>
Tue, 18 Nov 2014 20:07:20 +0000 (20:07 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 3 Dec 2014 08:35:10 +0000 (09:35 +0100)
commit57e215135f8ad7519fb079a0234e91a94bddd2f9
treef85ed2e6bc2368788554e1ac683e732cb928cc48
parentb32c6f482dc56c52169cad7c9d35908c020dd22d
drm/i915: Check for matching ringbuffer in logical_ring_wait_request()

The request queue is per-engine, and may therefore contain requests
from several different contexts/ringbuffers. In determining which
request to wait for, this function should only consider requests
from the ringbuffer that it's checking for space, and ignore any
that it finds that belong to other contexts.

Signed-off-by: Dave Gordon <david.s.gordon@intel.com>
Reviewed-by: Deepak S <deepak.s@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lrc.c