drm/i915/gvt: not to touch undefined MOCS registers
authorXinyun Liu <xinyun.liu@intel.com>
Mon, 29 Oct 2018 06:18:25 +0000 (14:18 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 12 Nov 2018 09:05:39 +0000 (17:05 +0800)
commitdef40774f63ad446aaf5c12e2185045979c06c75
treecbe8b7f6cec5023f90d376e9035a8d49a5dd6176
parent5e7154ff5e8e21dc9acac4f8dba7533552365374
drm/i915/gvt: not to touch undefined MOCS registers

Some engines are not available for all Gens. eg, Gen11 introduced
VCS3/VCS4/VECS2, and VCS2 is not supported on some Gen9 machines. So need to
add check before access them.

Signed-off-by: Xinyun Liu <xinyun.liu@intel.com>
Signed-off-by: Yakui Zhao <Yakui.Zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/mmio_context.c