[RFC v3 3/3] drm/ttm/tests: Add tests for ttm_pool

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Tue Jul 4 06:50:35 UTC 2023


On Mon, 3 Jul 2023 13:21:43 +0200
Christian König <christian.koenig at amd.com> wrote:

> > +	/* We don't need this BO later, release it */
> > +	ttm_bo_put(bo);  
> 
> That won't work. A BO must always outlive the TT object allocated for it.
> 
> Otherwise you can get crashes during TT release.

Just my two cents: shouldn't the TT object be increasing Kobj refcount then,
in order to properly manage the BO object lifetime?

Regards,
Mauro


More information about the dri-devel mailing list