Re: Refcounting in drm_exec

2023-08-31 Thread Thomas Hellström
On 8/31/23 17:19, Christian König wrote: Hi Thomas, Am 31.08.23 um 17:12 schrieb Thomas Hellström: Hi, Christian, Danilo Looking at the drm_exec code it seems we refcount *all* locked objects until drm_exec_fini(). Are callers supposed to be able to *rely* on this? Yes, that's one of the

Re: Refcounting in drm_exec

2023-08-31 Thread Christian König
Hi Thomas, Am 31.08.23 um 17:12 schrieb Thomas Hellström: Hi, Christian, Danilo Looking at the drm_exec code it seems we refcount *all* locked objects until drm_exec_fini(). Are callers supposed to be able to *rely* on this? Yes, that's one of the motivations for this component. I'm asking

Refcounting in drm_exec

2023-08-31 Thread Thomas Hellström
Hi, Christian, Danilo Looking at the drm_exec code it seems we refcount *all* locked objects until drm_exec_fini(). Are callers supposed to be able to *rely* on this? I'm asking because refcounting appears only strictly necessary for contended- and prelocked objects, and callers would otherwis