[Intel-gfx] [PATCH 1/2] drm/i915/gvt: s/drm_gem_object_unreference/i915_gem_object_put/

Zhenyu Wang zhenyuw at linux.intel.com
Wed Oct 19 07:43:21 UTC 2016


On 2016.10.19 08:42:49 +0100, Chris Wilson wrote:
> Deprecated functions; it is also not clear whether these are called from
> the right context.
> 
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

Thanks, Chris.

Already did a same fix on https://github.com/01org/gvt-linux/commit/abd8dc57b13cccfa493553b4e64ba175070bbb0c

> ---
>  drivers/gpu/drm/i915/gvt/execlist.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/execlist.c b/drivers/gpu/drm/i915/gvt/execlist.c
> index c50a3d1a5131..a9d04c378755 100644
> --- a/drivers/gpu/drm/i915/gvt/execlist.c
> +++ b/drivers/gpu/drm/i915/gvt/execlist.c
> @@ -498,7 +498,7 @@ static void release_shadow_batch_buffer(struct intel_vgpu_workload *workload)
>  
>  		list_for_each_entry_safe(entry_obj, temp, &workload->shadow_bb,
>  					 list) {
> -			drm_gem_object_unreference(&(entry_obj->obj->base));
> +			i915_gem_object_put(entry_obj->obj);
>  			kvfree(entry_obj->va);
>  			list_del(&entry_obj->list);
>  			kfree(entry_obj);
> @@ -511,7 +511,7 @@ static void release_shadow_wa_ctx(struct intel_shadow_wa_ctx *wa_ctx)
>  	if (wa_ctx->indirect_ctx.size == 0)
>  		return;
>  
> -	drm_gem_object_unreference(&(wa_ctx->indirect_ctx.obj->base));
> +	i915_gem_object_put(wa_ctx->indirect_ctx.obj);
>  	kvfree(wa_ctx->indirect_ctx.shadow_va);
>  }
>  
> -- 
> 2.9.3
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx

-- 
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: 163 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20161019/9497c77f/attachment.sig>


More information about the Intel-gfx mailing list