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 4C7BFC433F5 for ; Mon, 18 Oct 2021 16:58:18 +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 2FC0F60F94 for ; Mon, 18 Oct 2021 16:58:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 2FC0F60F94 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 5A211183A; Mon, 18 Oct 2021 18:57:25 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 5A211183A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634576295; bh=dxF2FdH6bSALDGa53yP8Z8h/P+LbivPEhybLtD8+lDE=; h=Subject:To:References:From:Date:In-Reply-To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=dfsXtyu5eQCpT3kyHaE03UgMvxSakmL2p7tNGTYQBPWGfRVfvmC3G2L08nOEp40ss OtfrioyTKQ78jMsVcyDST6BpMeigIxVkeWtsKERrL2AokFCdonqhvreQoHfYA+tZ3c zp0t0xkWF7M0zUUS89licROYZAaXYGWpRT9wLFeQ= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id C8245F80217; Mon, 18 Oct 2021 18:57:24 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id D0849F80224; Mon, 18 Oct 2021 18:57:23 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (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 31D25F80159 for ; Mon, 18 Oct 2021 18:57:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 31D25F80159 X-IronPort-AV: E=McAfee;i="6200,9189,10141"; a="215222675" X-IronPort-AV: E=Sophos;i="5.85,382,1624345200"; d="scan'208";a="215222675" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2021 09:57:15 -0700 X-IronPort-AV: E=Sophos;i="5.85,382,1624345200"; d="scan'208";a="489518249" Received: from dsardana-mobl.amr.corp.intel.com (HELO [10.209.189.174]) ([10.209.189.174]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2021 09:57:15 -0700 Subject: Re: [PATCH v3 4/4] ASoC: SOF: Intel: add .ack support for HDaudio platforms To: Takashi Iwai References: <20211015195932.224925-1-pierre-louis.bossart@linux.intel.com> <20211015195932.224925-5-pierre-louis.bossart@linux.intel.com> <97cd3a79-bf2a-bb1a-7da1-89bc8bac2c13@linux.intel.com> From: Pierre-Louis Bossart Message-ID: Date: Mon, 18 Oct 2021 11:57:12 -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, broonie@kernel.org, P9ter Ujfalusi , Ranjani Sridharan , Kai Vehmanen 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" > I mean only about the use EXPLICIT_SYNC flag. There has been already > an info flag SYNC_APPLPTR, and this should suffice for your purpose. > In a nutshell: > > EXPLICIT_SYNC = disable both control and status mmaps > SYNC_APPLPTR = disable only control mmap Humm, are you sure Takashi? it's been a long time since we discussed this and your initial direction was to disable both? To quote your own words from https://lore.kernel.org/alsa-devel/s5hfug51g0x.wl-tiwai@suse.de/ "In mmap mode, we transfer data on the mmap buffer, and update appl_ptr via mmap control. Both are done without notification to the driver (which is intentional for avoiding the context switching). So we want to disable this optimization and always notify to the driver. Disabling mmap status/control is the straight hack as it falls back to ioctl and then the driver can know the change." I really don't mind changing, I don't have enough background on this, just wanted to make sure that disabling the control mmap is sufficient on paper before we re-run tests. Thanks!