[PATCH] host1x: cdma: use completion instead of semaphore

Thierry Reding thierry.reding at gmail.com
Tue Dec 11 10:08:32 UTC 2018


On Mon, Dec 10, 2018 at 10:51:04PM +0100, Arnd Bergmann wrote:
> In this usage, the two are completely equivalent, but the
> completion documents better what is going on, and we generally
> try to avoid semaphores these days.
> 
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> ---
>  drivers/gpu/host1x/cdma.c | 6 +++---
>  drivers/gpu/host1x/cdma.h | 4 ++--
>  2 files changed, 5 insertions(+), 5 deletions(-)

My understanding is that potentially many userspace processes could be
blocking on this, which I think is the reason for it being a semaphore.
Is the completion going to work for those cases as well?

Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20181211/73a8ea7a/attachment-0001.sig>


More information about the dri-devel mailing list