]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/i915: fix i915 running as dom0 under Xen
authorJuergen Gross <jgross@suse.com>
Thu, 2 Feb 2017 09:47:11 +0000 (10:47 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Feb 2017 12:25:40 +0000 (12:25 +0000)
commit5584f1b1d73e9cc95092734c316e467c6c4468f9
treee8af6613569a8b30a7934fa6e4f34edfc1948253
parent37255d8d3f4d0c88fc9f60f50bb4c3c30e6688cc
drm/i915: fix i915 running as dom0 under Xen

Commit 920cf4194954ec ("drm/i915: Introduce an internal allocator for
disposable private objects") introduced a regression for the kernel
running as Xen dom0: when switching to graphics mode a GPU HANG
occurred.

Reason seems to be a missing adaption similar to that done in
commit 7453c549f5f648 ("swiotlb: Export swiotlb_max_segment to users")
to i915_gem_object_get_pages_internal().

So limit the maximum page order to be used according to the maximum
swiotlb segment size instead to the complete swiotlb size.

Fixes: 920cf4194954 ("drm/i915: Introduce an internal allocator for disposable private objects")
Signed-off-by: Juergen Gross <jgross@suse.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170202094711.939-1-jgross@suse.com
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Cc: <drm-intel-fixes@lists.freedesktop.org> # v4.10-rc1+
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_internal.c