[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1446663988.387644.1547252051945@email.ionos.de>
Date: Sat, 12 Jan 2019 01:14:11 +0100 (CET)
From: Stefan Wahren <stefan.wahren@...e.com>
To: Phil Elwell <phil@...pberrypi.org>, Eric Anholt <eric@...olt.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dominic Braun <inf.braun@....de>,
Nicolas Saenz Julienne <nsaenzjulienne@...e.de>,
Arnd Bergmann <arnd@...db.de>,
linux-rpi-kernel@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: vchiq: Fix local event signalling
> Phil Elwell <phil@...pberrypi.org> hat am 11. Januar 2019 um 12:34 geschrieben:
>
>
> 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: 852b2876a8a8 ("staging: vchiq: rework remove_event handling")
> Signed-off-by: Phil Elwell <phil@...pberrypi.org>
Tested-by: Stefan Wahren <stefan.wahren@...e.com>
Thanks
Powered by blists - more mailing lists