Switch reference counting to GEM instead of TTM
Thomas Hellström
thomas.hellstrom at linux.intel.com
Fri Aug 16 10:01:28 UTC 2024
On Tue, 2024-07-16 at 14:35 +0200, Christian König wrote:
> Hello everyone,
>
> to make use of drm_exec it is necessary to have TTM drivers actually
> use
> the GEM reference count instead of the TTM one.
>
> This patch set is a start to do that. It switches all uses of
> ttm_bo_get/put to the GEM counterpart and then makes ttm_bo_get
> private
> to TTM.
For xe
Acked-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
>
> Netx step is to completely remove the TTM refcounting.
This is probably going to be a bit complicated, and in particular IMO
we must ensure that the refcount resurrection doesn't leak to the gem
refcount and annotate the driver callbacks that might get called with
deleted (gem refcount 0) objects.
/Thomas
>
> Please review and/or comment.
>
> Cheers,
> Christian.
>
>
More information about the dri-devel
mailing list