[PATCH] drm/i915/gvt: destroy dmabuf mutex in intel_gvt_destroy_vgpu
Zhenyu Wang
zhenyuw at linux.intel.com
Tue Aug 7 02:48:45 UTC 2018
On 2018.08.03 18:29:24 +0800, intel-gvt-dev-bounces at lists.freedesktop.org wrote:
> From: Hang Yuan <hang.yuan at linux.intel.com>
>
> dmabuf mutex is initialized when vgpu is created. Destroy it when vgpu
> is removed.
>
> Fixes: 6046f8b91e87("drm/i915/gvt: initialize dmabuf mutex in vgpu_create")
> Signed-off-by: Hang Yuan <hang.yuan at linux.intel.com>
> ---
> drivers/gpu/drm/i915/gvt/vgpu.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt/vgpu.c
> index 1c8609d..d6ffee3 100644
> --- a/drivers/gpu/drm/i915/gvt/vgpu.c
> +++ b/drivers/gpu/drm/i915/gvt/vgpu.c
> @@ -268,6 +268,7 @@ void intel_gvt_destroy_vgpu(struct intel_vgpu *vgpu)
> intel_vgpu_free_resource(vgpu);
> intel_vgpu_clean_mmio(vgpu);
> intel_vgpu_dmabuf_cleanup(vgpu);
> + mutex_destroy(&vgpu->dmabuf_lock);
> mutex_unlock(&vgpu->vgpu_lock);
>
We normally ignore to call destroy to mutex, is this helping you for debugging or else?
> mutex_lock(&gvt->lock);
> --
> 2.7.4
>
> _______________________________________________
> intel-gvt-dev mailing list
> intel-gvt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gvt-dev
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20180807/d337c83f/attachment.sig>
More information about the intel-gvt-dev
mailing list