drm/i915/gvt: do not let TRTTE and 0x4dfc write passthrough to hardware
authorYan Zhao <yan.y.zhao@intel.com>
Wed, 8 May 2019 02:16:44 +0000 (22:16 -0400)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 21 May 2019 02:58:07 +0000 (10:58 +0800)
commite175a2520c7788a323ae93f04013b8fdaa552c69
tree5a5a208da5265469a9bde001d8a223aec7557b69
parentb6241002039118d6bea78f50f8f19195b41ab602
drm/i915/gvt: do not let TRTTE and 0x4dfc write passthrough to hardware

the vGPU write on TRTTE and 0x4dfc is now write to vreg first. their
values all be restored hardware when context switching.

Fixes: e39c5add3221 ("drm/i915/gvt: vGPU MMIO virtualization")
Acked-by: Zhenyu Wang <zhenyuw@linux.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/handlers.c