[PATCH] drm/i195/gvt: Use debugobjects to track dmabuf_obj life time

Zhenyu Wang zhenyuw at linux.intel.com
Thu Nov 30 02:43:23 UTC 2017


On 2017.11.29 14:18:07 +0800, Tina Zhang wrote:
> This patch uses debugobjects to track dmabuf_obj life time.
> 
> Signed-off-by: Tina Zhang <tina.zhang at intel.com>
> ---
>  drivers/gpu/drm/i915/gvt/dmabuf.c | 120 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 120 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/gvt/dmabuf.c b/drivers/gpu/drm/i915/gvt/dmabuf.c
> index 9c40a67..459499f 100644
> --- a/drivers/gpu/drm/i915/gvt/dmabuf.c
> +++ b/drivers/gpu/drm/i915/gvt/dmabuf.c
> @@ -37,6 +37,114 @@
>  
>  #define GEN8_DECODE_PTE(pte) (pte & GENMASK_ULL(63, 12))
>  
> +#define DEBUG_DMABUF_OBJ
> +
> +#ifdef DEBUG_DMABUF_OBJ
> +

Pls add new debug config, otherwise not helpful for develop or validation. 

-- 
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/20171130/b9bc59bd/attachment.sig>


More information about the intel-gvt-dev mailing list