]> 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)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 12 Dec 2019 18:35:32 +0000 (18:35 +0000)
commit8a26c406696b124cb2d3a43f747d21b0b2ce82d2
tree31dfb13837ac15dbdc6cd976f456ffb82725241b
parent3c8437cfe9cff2c8355299d582a358a86920cddb
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: 5e691e2ab6a7 ("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
drivers/gpu/drm/i915/i915_sw_fence_work.c