]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Make sure the gen6 ppgtt is bound before first use
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 13 Sep 2019 06:42:00 +0000 (07:42 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 13 Sep 2019 07:25:04 +0000 (08:25 +0100)
commit0e1b610df11fe15dea235e21a17e2e4a969869a1
tree2cc9288580098d22ae8ec5aa10c1b33943b733f5
parent913361a483f805beeeb6d7c4afba5d7eeaf5a50f
drm/i915/gtt: Make sure the gen6 ppgtt is bound before first use

As we remove the struct_mutex protection from around the vma pinning,
counters need to be atomic and aware that there may be multiple threads
simultaneously active.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190913064200.24297-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h