]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix secure dispatch with full ppgtt
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 10:08:58 +0000 (12:08 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 11:49:57 +0000 (13:49 +0200)
commit665d7d4e11286ea80696e56a50367ebb842f6180
tree267ec8a1cd8f677458df6f795ed7bbeb6d6a0523
parenta850e0241b6f49b421ff938065462c1ec9637cae
drm/i915: Fix secure dispatch with full ppgtt

Based upon a hunk from a patch from Chris Wilson, but augmented to:
- Process the batch in the full ppgtt vm so that self-relocations
  match again with userspace's expectations..
- Add a comment why plain pin for the global gtt binding is safe at
  that point.

v2: Drop local bind_vm variable (Chris).

v3: Explain why this works despite the lack of proper active tracking
for the ggtt batch vma.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ben Widawsky <benjamin.widawsky@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c