[PATCH RFC 05/24] Revert "drm: Nerf the preclose callback for modern drivers"

Qiang Yu yuq825 at gmail.com
Fri Jun 1 02:03:09 UTC 2018


On Fri, Jun 1, 2018 at 2:04 AM, Keith Packard <keithp at keithp.com> wrote:
> Eric Anholt <eric at anholt.net> writes:
>
>> Just wait for all tasks to complete when any object is freed?  That's
>> going to be bad for performance.  Or are you saying that you already
>> have the connection between the task and its objects (and, if so, why
>> aren't you just doing refcounting correctly through that path?)
>
> How about wait on close of the DRM device?
Yeah, that's what this patch for: get preclose back and do task wait
in it before free buffers. I still think this is best way in my case (and
may be other drivers).


More information about the dri-devel mailing list