[PATCH] drm/ttm:fix missing inc bo_count

Liu, Monk Monk.Liu at amd.com
Thu Aug 24 02:25:11 UTC 2017


Thanks,that one is somehow missed !
Just pushed



-----Original Message-----
From: Deucher, Alexander 
Sent: Wednesday, August 23, 2017 9:34 PM
To: Liu, Monk <Monk.Liu at amd.com>; amd-gfx at lists.freedesktop.org
Cc: Liu, Monk <Monk.Liu at amd.com>
Subject: RE: [PATCH] drm/ttm:fix missing inc bo_count

> -----Original Message-----
> From: amd-gfx [mailto:amd-gfx-bounces at lists.freedesktop.org] On Behalf 
> Of Monk Liu
> Sent: Sunday, August 13, 2017 11:44 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Liu, Monk
> Subject: [PATCH] drm/ttm:fix missing inc bo_count
> 
> From: Monk Liu <monk.liu at amd.com>
> 
> Change-Id: I32ed928e59db5478e429189ac8b010e336e45a94
> Signe-off-by: Jack Xiao <jack.xiao at amd.com>

Did these ever land?  I don't remember seeing them in the 4.12 branch.

Alex


> ---
>  drivers/gpu/drm/ttm/ttm_bo_util.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c
> b/drivers/gpu/drm/ttm/ttm_bo_util.c
> index d0459b3..c934ad5 100644
> --- a/drivers/gpu/drm/ttm/ttm_bo_util.c
> +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
> @@ -469,6 +469,7 @@ static int ttm_buffer_object_transfer(struct 
> ttm_buffer_object *bo,
>  	 * TODO: Explicit member copy would probably be better here.
>  	 */
> 
> +	atomic_inc(&bo->glob->bo_count);
>  	INIT_LIST_HEAD(&fbo->ddestroy);
>  	INIT_LIST_HEAD(&fbo->lru);
>  	INIT_LIST_HEAD(&fbo->swap);
> --
> 2.7.4
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list