drm/i915: Poison rings after use
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Feb 2020 20:56:14 +0000 (20:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Feb 2020 10:07:13 +0000 (10:07 +0000)
commit89dd019a8a99e1a08c9c724dc2831c2ec3c050a3
treeafd35d94fddbc577da12ab6378be1eb9d11d220b
parent42fb60de3129ef998bb18266ee06530669021e55
drm/i915: Poison rings after use

On retiring the request, we should not re-use these elements in the ring
(at least not until we fill the ringbuffer and knowingly reuse the space).
Leave behind some poison to (hopefully) trap ourselves if we make a
mistake.

Suggested-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200211205615.1190127-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c