From: Mika Kuoppala Date: Tue, 28 Apr 2015 14:56:17 +0000 (+0300) Subject: drm/i915/gtt: Allocate va range only if vma is not bound X-Git-Tag: omap-for-v4.2/fixes-rc1^2~17^2~58^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75d04a3773ecee617847de963ae4195d6aa74c28;p=pandora-kernel.git drm/i915/gtt: Allocate va range only if vma is not bound When we have bound vma into an address space, the layout of page table structures is immutable. So we can be absolutely certain that if vma is already bound, there is no need to (re)allocate a virtual address range for it. v2: - add sanity checks and remove superfluous GLOBAL_BIND set - we might do update for an unbound vma (Chris) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90224 Testcase: igt/gem_exec_big #bdw Reported-by: Chris Wilson Cc: Chris Wilson Cc: Michel Thierry Cc: Daniel Vetter Signed-off-by: Mika Kuoppala Reviewed-by: Chris Wilson Signed-off-by: Jani Nikula --- Reading git-diff-tree failed