drm/i915/gvt: properly check per_ctx bb valid state
authorZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 19 Oct 2017 05:54:06 +0000 (13:54 +0800)
committerZhi Wang <zhi.a.wang@intel.com>
Thu, 26 Oct 2017 17:37:13 +0000 (01:37 +0800)
commit8f63fc2bc64716c16e269ab951130eeda78fe37a
tree00e99c32ef565e405c22d01d53b25201a9eed18f
parent7277f755048da562eb2489becacd38d0d05e1e06
drm/i915/gvt: properly check per_ctx bb valid state

Need to check valid state for per_ctx bb and bypass batch buffer
combine for scan if necessary. Otherwise adding invalid MI batch
buffer start cmd for per_ctx bb will cause scan failure, which is
taken as -EFAULT now so vGPU would be put in failsafe. This trys
to fix that by checking per_ctx bb valid state. Also remove old
invalid WARNING that indirect ctx bb shouldn't depend on valid
per_ctx bb.

Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/execlist.c
drivers/gpu/drm/i915/gvt/scheduler.h