cuda: add adb_autopoll_block() and adb_autopoll_unblock() functions
commit45c9d721ef9ea4e50dbede53bc97922767db70b8
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tue, 23 Jun 2020 20:49:30 +0000 (23 21:49 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 26 Jun 2020 09:13:52 +0000 (26 10:13 +0100)
treea7a2631b95ed15609be9df6e77a3bacf2d8cbeb8
parent4e5df0369fb5a49ed26518dccffeb03a252352db
cuda: add adb_autopoll_block() and adb_autopoll_unblock() functions

Ensure that the CUDA buffer is protected from autopoll requests overwriting
its contents whilst existing CUDA requests are in progress.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Tested-by: Finn Thain <fthain@telegraphics.com.au>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20200623204936.24064-17-mark.cave-ayland@ilande.co.uk>
hw/misc/macio/cuda.c