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 2026DC433F5 for ; Fri, 15 Oct 2021 12:04:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EA9526101D for ; Fri, 15 Oct 2021 12:04:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238629AbhJOMG4 (ORCPT ); Fri, 15 Oct 2021 08:06:56 -0400 Received: from mga03.intel.com ([134.134.136.65]:2968 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235378AbhJOMGy (ORCPT ); Fri, 15 Oct 2021 08:06:54 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10137"; a="227856212" X-IronPort-AV: E=Sophos;i="5.85,375,1624345200"; d="scan'208";a="227856212" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Oct 2021 05:04:45 -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 Cc: alsa-devel@alsa-project.org, Kuninori Morimoto , Takashi Iwai , Liam Girdwood , open list , vkoul@kernel.org, broonie@kernel.org, Gyeongtaek Lee , Peter Ujfalusi 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.