]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Call i915_sw_fence_fini on request cleanup
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Apr 2019 12:24:45 +0000 (13:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 11 Apr 2019 19:48:51 +0000 (20:48 +0100)
commitb98391a14fee89245521cb8398025a9f7e9c441b
treeaa86d1bf279a52dfcf217cbe1b4bcc70aed81dac
parentd09960dea662d2b61cfe8f2700d3441b1b1c6543
drm/i915: Call i915_sw_fence_fini on request cleanup

As i915_requests are put into an RCU-freelist, they may get reused
before debugobjects notice them as being freed. On cleanup, explicitly
call i915_sw_fence_fini() so that the debugobject is properly tracked.

Reported-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Fixes: c6b7bcbe100a ("drm/i915: Bump ready tasks ahead of busywaits")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190411122445.20060-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c