]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Dont clear PIN_GLOBAL in the execbuf pinning fallback
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 14 Apr 2015 17:01:54 +0000 (19:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 20 Apr 2015 15:59:50 +0000 (08:59 -0700)
commitbdf2e3493f1a203bff97b7d7df751f5216784914
tree7dba2e33525593c13af7e8b8e3638c3377a8a29b
parentea9f3cb9c28760daf29d5888948bfd5d733524fe
drm/i915: Dont clear PIN_GLOBAL in the execbuf pinning fallback

PIN_GLOBAL is set only when userspace asked for it, and that
is only the case for the gen6 PIPE_CONTROL workaround. We're not
allowed to just clear this.

The important part of the fallback is to drop the restriction to
the mappable range.

This issue has been introduced in

commit 3db26461979b51040a1e28cb629b83f0cadc0083
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Wed Jan 14 11:20:56 2015 +0000

    drm/i915: Fallback to using CPU relocations for large batch buffers

v2: Chris pointed out that we also miss to set PIN_GLOBAL when the
buffer is already bound. Fix this up too.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
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