mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 05:17:10 +09:00
drm/i95: Initialize active ring->pid to -1
commit eee73b4626 upstream.
Otherwise we print out spurious processes on unused rings in the error
state.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
510655b978
commit
598b7efff6
@@ -894,6 +894,8 @@ static void i915_gem_record_rings(struct drm_device *dev,
|
||||
for (i = 0; i < I915_NUM_RINGS; i++) {
|
||||
struct intel_ring_buffer *ring = &dev_priv->ring[i];
|
||||
|
||||
error->ring[i].pid = -1;
|
||||
|
||||
if (ring->dev == NULL)
|
||||
continue;
|
||||
|
||||
@@ -901,7 +903,6 @@ static void i915_gem_record_rings(struct drm_device *dev,
|
||||
|
||||
i915_record_ring_state(dev, ring, &error->ring[i]);
|
||||
|
||||
error->ring[i].pid = -1;
|
||||
request = i915_gem_find_active_request(ring);
|
||||
if (request) {
|
||||
/* We need to copy these to an anonymous buffer
|
||||
|
||||
Reference in New Issue
Block a user