]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Mark PIN_USER binding as GLOBAL_BIND without the aliasing ppgtt
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 29 Jul 2015 19:02:48 +0000 (20:02 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 30 Jul 2015 14:45:30 +0000 (16:45 +0200)
commit8bdf6e49e1a8ec748aef7746c8702cfcaee8a7b7
tree304554d3bfd3acd9af0fec6acf8968b0242bd499
parente9f26b07006a46e88b804610a6435d77a2aca7e5
drm/i915: Mark PIN_USER binding as GLOBAL_BIND without the aliasing ppgtt

If the device does not support the aliasing ppgtt, we must translate
user bind requests (PIN_USER) from LOCAL_BIND to a GLOBAL_BIND. However,
since this is device specific we cannot do this conveniently in the
upper layers and so must manage the vma->bound flags in the backend.

Partial revert of commit 447f967be99cf7a5494f837bec01d0455161da00 [4.2-rc1]
Author: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Date:   Tue Apr 28 17:56:17 2015 +0300

    drm/i915/gtt: Allocate va range only if vma is not bound

Note this was spotted by Daniel originally, but we dropped the ball in
getting the fix in before the bug going wild. Sorry all.

Reported-by: Vincent Legoll vincent.legoll@gmail.com
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91133
References: https://bugs.freedesktop.org/show_bug.cgi?id=90224
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c