]> asedeno.scripts.mit.edu Git - linux.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)
commitc8185520aed6faab58b310f573790badfca27981
tree2cc9288580098d22ae8ec5aa10c1b33943b733f5
parent0b8d6273db0635acd0dae983a39600b1b96fe77d
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