]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: free workload in vgpu release
authorHang Yuan <hang.yuan@linux.intel.com>
Tue, 7 Aug 2018 10:29:21 +0000 (18:29 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Mon, 13 Aug 2018 04:32:57 +0000 (12:32 +0800)
commit96f591ff75cfaa6fe931c86b89abe97f9dcd5486
tree0e7ef5a3ce317f5ab81d48d9ef929320f2d22666
parent31ed3ec0c282555482dbedced88f727081bf2d81
drm/i915/gvt: free workload in vgpu release

Some workloads may be prepared in vgpu's queue but not be scheduled
to run yet. If vgpu is released at this time, they will not be freed
in workload complete callback and so need to be freed in vgpu release
operation.

Add new vgpu_release operation in gvt_ops to stop vgpu and release
runtime resources. gvt_ops vgpu_deactivate operation will only stop
vgpu.

v2: add new gvt ops to clean vgpu running status (Xiong Zhang)

Signed-off-by: Hang Yuan <hang.yuan@linux.intel.com>
Reviewed-by: Xiong Zhang <xiong.y.zhang@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/gvt.c
drivers/gpu/drm/i915/gvt/gvt.h
drivers/gpu/drm/i915/gvt/kvmgt.c
drivers/gpu/drm/i915/gvt/scheduler.c
drivers/gpu/drm/i915/gvt/scheduler.h
drivers/gpu/drm/i915/gvt/vgpu.c