Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1146934imu; Fri, 11 Jan 2019 16:16:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN6utOhmeIdAI5N4VUuTdI2Flzn+o3ZNSi8NdT0t9aCirljtN2egSi/HKPBKWB4p/VeUnTHs X-Received: by 2002:a17:902:f01:: with SMTP id 1mr16165851ply.143.1547252178092; Fri, 11 Jan 2019 16:16:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547252178; cv=none; d=google.com; s=arc-20160816; b=KgGbVaq7NEbMz3jnkm/wUUp1JzbVsYHujkhbgmtqniWs3QvNvPEWySfC1im8mUzV+C N64zmKjqawWfOloiN4YT8iuL8i8SPSzLAWUluC9HBtIgvgXAcoD6156sKqput8rAhXh1 kU2Q5yAokt7jLvjfhVfXUs2Y2O8SEqnz5fXpcuTQBBkmlMDfipx1r+ciOtU3AXUhCj+b APWndUv+qQ5aO/tTo8PZejUCW3vdtRqvkUWUxE3x+CxDvFbkFCEvehhnijhnuhjvcyDd SQ5W7JM6oQSfbMjiZ12MvRh+i2cC1fTeSzOB632Dbjqn807C4G/iYuRl8qi+CY1i3bp7 o5OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:importance:content-transfer-encoding :mime-version:subject:references:in-reply-to:message-id:to:from:date; bh=Dk5gb5Eb4964kz5PEZ1UZLfvKA9/wq8WiNvn/pbr13M=; b=BNcQOF+pEXmwsYVtsyErp95nmaPe6Cfpy/1bUGdxeowoIrq4wnmKkejzLlLEBLQBd8 qAngM2FwQuKLsRF9hfW30pA0msjp+Szh8+0EzzOiYzp2vlJn+RFA1/KytsaM91jnotRT wznlG3Lganolq3Hb3AtgOluJpANEO2Hw0mAQ22YVKboBVSQU0DCBYFTwF+7AAR0QOyP9 ifT2Q8weG/iBbE8njcD6nGUxShgBDLVl59geaGdr60JUk4jD3NwGVUHUlnP8Lw9rD+E3 7qhanecQ0RPDH66aX1FMceZknDIxvwjoj/NcXWlzCkU+6DQ/OYYIHYIBdIl5s7jCECLp hWew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s62si19746457pgc.113.2019.01.11.16.16.02; Fri, 11 Jan 2019 16:16:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726491AbfALAOh (ORCPT + 99 others); Fri, 11 Jan 2019 19:14:37 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:41653 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726282AbfALAOh (ORCPT ); Fri, 11 Jan 2019 19:14:37 -0500 Received: from oxbsltgw58.schlund.de ([212.227.220.196]) by mrelayeu.kundenserver.de (mreue009 [213.165.67.97]) with ESMTPSA (Nemesis) id 1MjSHa-1h6yRY0RDO-00kzJT; Sat, 12 Jan 2019 01:14:14 +0100 Date: Sat, 12 Jan 2019 01:14:11 +0100 (CET) From: Stefan Wahren To: Phil Elwell , Eric Anholt , Greg Kroah-Hartman , Dominic Braun , Nicolas Saenz Julienne , Arnd Bergmann , linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Message-ID: <1446663988.387644.1547252051945@email.ionos.de> In-Reply-To: <1547206493-105303-1-git-send-email-phil@raspberrypi.org> References: <1547206493-105303-1-git-send-email-phil@raspberrypi.org> Subject: Re: [PATCH] staging: vchiq: Fix local event signalling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev47 X-Originating-Client: open-xchange-appsuite X-Provags-ID: V03:K1:rcZjS4Eorbl+bMlqUoCbNR3+99SToxrAR/V03n9zD1P11ZAj2+u jQyPqzHR3lspWHD6bgPkge17I0Wr0Znd6vgMv/cAgyAcsyPzY+C8BvYetFKCVeZn2E/cOOI wLjJqjI7toM4bP47Q2LbHxY2GAP56+E4sod8q6jy3exGUqYYHemSMlLqX7wFe4MYXGlkDpy xOiQozCLUikLiyIP1XK2Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:yDzikWdrk/o=:a3J6pRNUrsprvOukEPGxhV V8BqUt2iTCfF2T1ugY7yH4OimkPbGJ4JdbD2TCp2i6ANQvRSD6v75n7A0Z995GnL38dOAOLV+ UO14ed6JaSIq/oKlEyAf4fGtvyEOvf18SR0YlCdHhCla/LgjwlkcF5bTLeNho4hPIqaaCujY0 H4I15I1zeGgof2kCKXpoK/4OC4oHjCIT5CbdeUM+7t7+6RcFSxLFAkg0glIcJ3qmrYSTdN+vc QtPzD9ucVijv4th56fGBgM/KA752mrdyVOta1NQIyYTp0t45ev/XWHr+smn1HeDGf+IjA8ht8 dMBdMpPeWxoELFhOT5xCKFQOjj0GsEP7raQNoZU37LsY2ipDPvZ5Qg7ybXneun8i0uvDpcVy4 Ke7ueQ1flrGJnwWWgD0K/s1lyyQ8d/MsXHZOdf0svcVRDBpDRJbznolr719A/2R9nsq2mLSbJ w+nu25BNcrHEEeiMhgA7Z6CJIPpWPoKDGfTiwCuDYXzOOUE/A7Nha9IOJnLyyo180n185kpvS I4JFGKug5MR4FxEvogCoIQAorjdkhwXwPU5KsqqDVKpxFZB72Gd/nxisYDYzvecclDYKHTDT5 SbFa/jVTvAKwjXRKJi/CCEbY/sRPbeNqrzdy7q72HZyEmOLFKREWR+sl31P0QMhbVWRNSyWJw FQgwD3cDNbqQuKCvJEJoYcZmhjxdnae00rFTv6+yEBztQVIRn30ZsnzN0p2xqt3IavSz+hiC5 p2eRn8x0hRFc16U50sRNzfGskJgMtpT6+t9FG/Bd6PhanIXQ9agesAKocNQ= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Phil Elwell 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 Tested-by: Stefan Wahren Thanks