From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9944FC433EF for ; Fri, 15 Oct 2021 12:05:46 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FA2E60F48 for ; Fri, 15 Oct 2021 12:05:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4FA2E60F48 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6651916A9; Fri, 15 Oct 2021 14:04:53 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6651916A9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634299543; bh=fYQRKAR/zaxMItTkaLEwouGkpn4gis7CYDli+hijTzM=; h=Subject:From:To:References:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=l5Xqf/yheUSECHv+E1GK2AbCwnpM4QpXYzgNOJzCK5w+AjJxInh8eFvna6NjBH8CZ N5hsWQtEqOlahe8gLEUMIasshWX68bI9vSU92ai6RvvU6MSgWfD7D5l6JTpPf2fS49 YgpA0BzV6O165OgA+/p+S/DswCua1cLx7Eon9YVE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id E2AEEF8025B; Fri, 15 Oct 2021 14:04:52 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 35A79F80269; Fri, 15 Oct 2021 14:04:52 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A1FE8F8016C for ; Fri, 15 Oct 2021 14:04:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A1FE8F8016C X-IronPort-AV: E=McAfee;i="6200,9189,10137"; a="288766389" X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="288766389" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 05:04:44 -0700 X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="492505226" Received: from liminghu-mobl.ccr.corp.intel.com (HELO [10.212.23.213]) ([10.212.23.213]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 05:04:43 -0700 Subject: Re: [RFC PATCH v3 05/13] ASoC: soc-pcm: align BE 'atomicity' with that of the FE From: Pierre-Louis Bossart To: Takashi Iwai , Sameer Pujar References: <20211013143050.244444-1-pierre-louis.bossart@linux.intel.com> <20211013143050.244444-6-pierre-louis.bossart@linux.intel.com> <2847a6d1-d97f-4161-c8b6-03672cf6645c@nvidia.com> Message-ID: <368f7507-cfb9-b64a-d3e4-558307c5e078@linux.intel.com> Date: Fri, 15 Oct 2021 07:04:40 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Cc: alsa-devel@alsa-project.org, Kuninori Morimoto , Liam Girdwood , open list , Takashi Iwai , vkoul@kernel.org, broonie@kernel.org, Gyeongtaek Lee , Peter Ujfalusi X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 10/15/21 6:22 AM, Pierre-Louis Bossart wrote: > If this patch causes issues outside of the trigger phase, then maybe we > could just change the BE nonatomic flag temporarily and restore it after > taking the lock, but IMHO something else is broken in other drivers. Now that I think of it, this wouldn't work, the type of locks for the BEs has to be set before the trigger: the DPCM flow is that we start from the FEs and find which BEs need to be triggered. That would prevent us from modifying a global BE property - each FE is independent.