drm/i915/gvt: introudce intel_vgpu_reset_resource() to reset vgpu resource state
authorChangbin Du <changbin.du@intel.com>
Fri, 13 Jan 2017 03:15:56 +0000 (11:15 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Fri, 13 Jan 2017 07:05:38 +0000 (15:05 +0800)
commitd22a48bf7302ef064295749fa79cd47093c5a000
tree80c042727b1dac3f0758df1e5ca5adce08f8d35d
parent9631739f8196ec80b5d9bf955f79b711490c0205
drm/i915/gvt: introudce intel_vgpu_reset_resource() to reset vgpu resource state

This patch introudces a new function intel_vgpu_reset_resource() to
reset allocated vgpu resources by intel_vgpu_alloc_resource(). So far
we only need clear the fence registers. The function _clear_vgpu_fence()
will reset both virtual and physical fence registers to 0.

Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/aperture_gm.c
drivers/gpu/drm/i915/gvt/gvt.h