drm/i915/gvt: Refine the intel_vgpu_reset_gtt reset function
authorChuanxiao Dong <chuanxiao.dong@intel.com>
Fri, 4 Aug 2017 05:08:59 +0000 (13:08 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 10 Aug 2017 02:26:10 +0000 (10:26 +0800)
commit4d3e67bb6fa26e50eb087799d98ec232acfb630d
tree65487359f32dec651bdd1877d20db86c8c28796a
parent4b2dbbc22541e44e10e22836149050ab6dbd879e
drm/i915/gvt: Refine the intel_vgpu_reset_gtt reset function

When doing the VGPU reset, we don't need to do the gtt/ppgtt reset.
This will make the GVT to do the ppgtt shadow every time for
a workload and caused really bad performance after a VGPU reset.
This patch will make sure ppgtt clean only happen at device module
level reset to fix this.

Signed-off-by: Chuanxiao Dong <chuanxiao.dong@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gtt.c
drivers/gpu/drm/i915/gvt/gtt.h
drivers/gpu/drm/i915/gvt/vgpu.c