OSDN Git Service

drm/i915/error: Fixup inactive/active counting
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 16:06:23 +0000 (17:06 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 18:23:33 +0000 (19:23 +0100)
commitcd68e04cf56a38029940a33cbc834b4ab15b2bdb
treee9255daee805cba8d9c3394492c3abe539a16f9e
parent70be8b3dab43497718a2260f1daf47d378815d90
drm/i915/error: Fixup inactive/active counting

The inactive counter was over the active list, and vice versa.
Fortuitously this should not cause a problem in practice as they shared
the same array and clamped the number of entries they would write.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180605160623.30163-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gpu_error.c