]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: release shadow batch buffer and wa_ctx before destroy one workload
authorWeinan Li <weinan.z.li@intel.com>
Tue, 22 Jan 2019 05:46:27 +0000 (13:46 +0800)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Wed, 23 Jan 2019 05:58:46 +0000 (13:58 +0800)
commitd1c73a10eb36cfa4f896c690f8c21b3d520d818b
tree5396a32f35e6245ef04fb424adafba0619d14bf2
parent3bfd25825b04969cdbfc53a384bcd4abca6f5ef3
drm/i915/gvt: release shadow batch buffer and wa_ctx before destroy one workload

GVT-g will shadow the privilege batch buffer and the indirect context
during command scan, move the release process into
intel_vgpu_destroy_workload() to ensure the resources are recycled
properly.

Fixes: 9aab0651f01d ("drm/i915/gvt/kvmgt:Refine error handling for prepare_execlist_workload")
Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Weinan Li <weinan.z.li@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c