drm/i915: Fix the kernel panic when using aliasing ppgtt
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 7 Jul 2017 09:50:59 +0000 (17:50 +0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 7 Jul 2017 10:05:53 +0000 (11:05 +0100)
commit17369ba08c065967b7b8c48253f20b73acc0b9f5
tree5e173a23ab9bd5770b740208d17f6e2f978b5ce9
parent6602be0e2c6163bd747d490d8875ef0812c11560
drm/i915: Fix the kernel panic when using aliasing ppgtt

The ppgtt should be get directly from i915_address_space *vm instead of
vma->vm.

v2:
- add one more fix for bxt. (Chris)

Fixes: 4a234c5fae16 ("drm/i915: pass the vma to insert_entries")
Bugzilla:https://bugs.freedesktop.org/show_bug.cgi?id=101713
Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com> v1
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1499421059-18262-1-git-send-email-chuanxiao.dong@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem_gtt.c