Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5937569imu; Sun, 20 Jan 2019 23:51:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN53BpjB0hIx7itwpVu1ME1Mcgy9PtB+p0fNoVZI2nqVWbybZWaM4IDuT1mB+rkYM3xJYvY0 X-Received: by 2002:a63:e80e:: with SMTP id s14mr27206052pgh.30.1548057114890; Sun, 20 Jan 2019 23:51:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548057114; cv=none; d=google.com; s=arc-20160816; b=iu99ujJPjhvWprbrjdIyplpsXSw9GOdergbVQjzNvMz6Tyrimhk/D357muhBV3KALP gZcPwRo90YUDbCyrXDwwGM2b0IsGD7FI8EgSHcZRQNDDp4ZKrcWop4ri5qYTFZyMrh0/ Fxtq6GAeeFm2xXOclowXNzdXgLZiJstdW8RtJ+o84n/DV+42GJ3cWwjF+8Ce7A3U8tyV jDbCHfXKyDfE4eIVd7cL5Bggfxl1DfQC0eKp1v2UIFhjg477yCKwHejEtVbRy9HU2OSx Ih6OlAmbToyuAgNj/SZHl2Yb95JJfAFHyC8CQri7zXJewLKp7VyoETk4OTpO8qpTs5Fr iwSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ND1NftFWyS/tgyoYicMUwFG6MNxVNmzE2sPX5uNe/6Q=; b=QzVlY+URCP2owLFmC16AYWqpcaGmc4hVqU5sJAKaPGJ5LGfaP+RDVY/uOtSGEqHZNu aPUb6oyVtDSmHiYXnLfXDJBLHC9oUWoNZzDjFMQgoSQtP/WxcmyDgpvsBSK0vYxybHsk GXzzmXVIYHlRaWUpPEiIv94R6fWuQXkiU+ub5Elg6whJih9qZGYA+aMwqm/hkbrs/CQ0 meJ5/EPM1YDgqEFA6Wnc62t9tu66MpmFjMZA1ztkes8TZgE2qia7ffX0xOjK0FIxNg5R ScEDqiOS/VQsris2MTSpQnmyueTpBgsieDRYNH2iwAHawmKKm2RZtGHv6Ah2enZ+a3NO ZoIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@astier-eu.20150623.gappssmtp.com header.s=20150623 header.b=C2ThJSJ8; 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 c30si11830994pgn.52.2019.01.20.23.51.39; Sun, 20 Jan 2019 23:51:54 -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; dkim=pass header.i=@astier-eu.20150623.gappssmtp.com header.s=20150623 header.b=C2ThJSJ8; 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 S1728610AbfAUHua (ORCPT + 99 others); Mon, 21 Jan 2019 02:50:30 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:35072 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728274AbfAUHu3 (ORCPT ); Mon, 21 Jan 2019 02:50:29 -0500 Received: by mail-wr1-f68.google.com with SMTP id 96so22101900wrb.2 for ; Sun, 20 Jan 2019 23:50:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=astier-eu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=ND1NftFWyS/tgyoYicMUwFG6MNxVNmzE2sPX5uNe/6Q=; b=C2ThJSJ81dbZfpDfsNByFI99nf552Hp5LXkf8DF9hhMOcTGz3PCvYvUtg0IS/RcT2u J4gp24ehtOe3X6WWR65v3fbkroWNa+c8vT9+odNTJ2JX0ahmly3cvvgJzHqwk39+tPnR r2QXypJCd0//T1QPPBpCZJhnLCIQoVMg7L7G+RD9cGhZzJN61u93L+BYZOVxM56ZvANE o2rx/ulwFyjQCv3U1n+aKysaTdBzsYnLe8B13RGF797YS7MWs6oJBXiADeCxi0Mucngy YpLlovOIGwO9wYXKG+g54kz3SmM9KzWKJ+NHVeM7ibrlM1FnFriwc+eYsMkoHb9a7riU nVIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ND1NftFWyS/tgyoYicMUwFG6MNxVNmzE2sPX5uNe/6Q=; b=K+vKFIqI2nkzGlt5jxI4EwQFtkg03LSZ55wWA7YbH9VSB4FkS5uJ1t1RvUWyf47SS0 1dJ2xubd9jXT+mhL7xubQmFoHaWCUGFg46MgF6YGRAHAhtLLuCkLmINOHPf+EWno6bEm TWCy2oce2Kfy/4auya6Tnu2h4/XZiQ3vqQGaZWjt2YSJUumWZLouNev3BHUcgujWkIAn 7HT9hoWXWO5DJi2CMNn8V/aSG0upa5AupSNI2Hnw1YI2pEarmXDd22rgW9/ohF+mkV1q d3ogwAo9Xhqe5JCRK/hv3H1jETCL6GJM+F1KKlZKZWgLtgdlFkYNeSecCsSCnsAH2Fwm qbVA== X-Gm-Message-State: AJcUukeGJZmvCEYBFthwWCH/wCSd1J3KOQ2SoOhPEOv6SY1Ettijgo7z YBoQfhZGvgDqH8TMxDm2KlQJLUgdSdrmkg== X-Received: by 2002:adf:e3d0:: with SMTP id k16mr26481275wrm.223.1548022902884; Sun, 20 Jan 2019 14:21:42 -0800 (PST) Received: from jaya.lan ([2a01:e34:ef92:b70:7ee9:d3ff:fef0:777c]) by smtp.gmail.com with ESMTPSA id y13sm51950902wme.2.2019.01.20.14.21.41 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 20 Jan 2019 14:21:42 -0800 (PST) Date: Sun, 20 Jan 2019 23:21:40 +0100 From: Anisse Astier To: Phil Elwell Cc: Eric Anholt , Stefan Wahren , 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 Subject: Re: [PATCH] staging: vchiq: Fix local event signalling Message-ID: <20190120222140.GA6626@jaya.lan> References: <1547206493-105303-1-git-send-email-phil@raspberrypi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1547206493-105303-1-git-send-email-phil@raspberrypi.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Phil, On Fri, Jan 11, 2019 at 11:34:53AM +0000, Phil Elwell wrote: > 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. This fixes an issue I've had on linux 5.0-pre to 5.0-rc2+: the bcm2835-audio driver would block on close, and then nothing would work until the process was killed. Sample log: bcm2835_audio bcm2835_audio: failed to close VCHI service connection (status=1) > > Fixes: 852b2876a8a8 ("staging: vchiq: rework remove_event handling") > Signed-off-by: Phil Elwell Tested-by: Anisse Astier Regards, Anisse