]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: check ppgtt validity when init reg state
authorZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 9 Jan 2017 13:14:53 +0000 (21:14 +0800)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 12 Jan 2017 08:39:41 +0000 (08:39 +0000)
commita7d914da58ff2f8a6e74a858e90bc8d8772074b4
tree65d436703b83ccac43cc123f0912c73038266307
parente454bf299129729f39bcefafdf586395bed7eab1
drm/i915: check ppgtt validity when init reg state

Check if ppgtt is valid for context when init reg state. For gvt
context which has no i915 allocated ppgtt, failed to check that
would cause kernel null ptr reference error.

v2: remove !48bit ppgtt case as we'll always update before submit (Chris)

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170109131453.3943-1-zhenyuw@linux.intel.com
drivers/gpu/drm/i915/intel_lrc.c