]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0522a3b34b5dc2ebe9f663f03738bf647d4e52ac
treecbe8b7f6cec5023f90d376e9035a8d49a5dd6176
parent9119f1b00961022c238e45bb18cc858ad0827bfa
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