]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: use cmd to restore in-context mmios to hw for gen9 platform
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 8 May 2019 02:14:04 +0000 (22:14 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 21 May 2019 02:57:30 +0000 (10:57 +0800)
commite1e844d93a4a084ae5f628e651d9a90e247d8182
tree823eb8f4e3a8e0b586203ed9552e49843872a962
parentabf9c43f1d0bfd6db5a2ee2709a1497c2c5b8ad4
drm/i915/gvt: use cmd to restore in-context mmios to hw for gen9 platform

for restore-inhibit context, hardware will not load in-context mmios
(engine context part) to hardware, but hardware will save the mmio
values in hardware back to context image. So, in order to save correct
values of vGPU back to context image, values of vGPU mmios have to be
loaded into hardware first for restore-inhibit context.

In this patch, the mechanism is applied to all gen9 platform.

The reason excluding gen8 platforms is only because of lacking of testing
on those platforms.

v3: for mocs registers, goto in-context mmios save-restore path for skl
platform as well (weinan li)
v2: update vreg when scanning indirect context for inhibit context for
gen9

Cc: Weinan Li <weinan.z.li@intel.com>
Acked-by: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/cmd_parser.c
drivers/gpu/drm/i915/gvt/mmio_context.c
drivers/gpu/drm/i915/gvt/scheduler.c