]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Set fence_work.ops before dma_fence_init
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Dec 2019 15:42:24 +0000 (15:42 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 16 Dec 2019 09:38:07 +0000 (11:38 +0200)
commit052a5a425cb54a7cae5c72d59692a6654ad8f731
tree5c88e88dd2cbabf97988d9d8daf257a8921e4316
parentbefd55588687a5786557ce1413ff4398031da282
drm/i915: Set fence_work.ops before dma_fence_init

Since dma_fence_init may call ops (because of a meaningless
trace_dma_fence), we need to set the worker ops prior to that call.

Reported-by: Vince Weaver <vincent.weaver@maine.edu>
Fixes: f2d1fb2fca6b ("drm/i915: Generalise the clflush dma-worker")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191212154224.1631531-1-chris@chris-wilson.co.uk
(cherry picked from commit 1bc9865d8df3e1c6857a27c4b2b8a9ce8f027349)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_sw_fence_work.c