]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3730d206c0abeadd391714fc9821b03768c887d1
treeafd35d94fddbc577da12ab6378be1eb9d11d220b
parentcffd2585555679e0ea2d1ce715c81df9863ea403
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