drm/i915/gvt: Only assign ppgtt root at dispatch time
authorZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 1 Mar 2019 07:04:12 +0000 (15:04 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 4 Mar 2019 06:44:36 +0000 (14:44 +0800)
commit1e18d5e6731d674fee0bb4b66f5ea61e504452a3
tree53690d5ea360205458bf0df0401ed4f89af427b6
parentf552e7bd028f93157b206bd1c7e3e195e919e8c2
drm/i915/gvt: Only assign ppgtt root at dispatch time

This moves ppgtt root hook out of scan and shadow function,
as it's only required at dispatch time. Also make sure this
checks against shadow mm to be ready, otherwise bail to fail
earlier.

Reviewed-by: Xiong Zhang <xiong.y.zhang@intel.com>
Cc: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c