linux/drivers/staging/vc04_services
Phil Elwell a50c4c9a65 staging: vchiq: Fix local event signalling
Prior to the recent event reworking (see Fixes), thread synchronisation
was implemented using completions, the worker thread being woken with
a call to complete(). The replacement uses waitqueues, which are more
like condition variables in that the waiting thread is only woken if
the condition is true.

When the VPU signals the ARM, it first sets the event's fired flag to
indicate which event is being signalled, but the places in the
ARM-side code where the worker thread is being woken -
remote_event_signal_local via request_poll - did not do so as it
wasn't previously necessary, and since the armed flag was being
cleared this lead to a deadlock.

Fixes: 852b2876a8 ("staging: vchiq: rework remove_event handling")
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-15 16:31:09 +01:00
..
bcm2835-audio staging: vc04_services: Remove SERVICE_CREATION_T typedef 2018-12-17 14:31:47 +01:00
bcm2835-camera staging: vc04_services: Remove VCHI_HELD_MSG_T typedef 2018-12-17 14:31:47 +01:00
interface staging: vchiq: Fix local event signalling 2019-01-15 16:31:09 +01:00
Kconfig staging: vc04_services: Remove depends on HAS_DMA in case of platform dependency 2018-04-23 15:51:34 +02:00
Makefile staging: vc04_services: Remove defines from Makefile 2018-05-06 19:04:43 -07:00