Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1201266rdh; Mon, 25 Sep 2023 06:17:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHp5DO5fH7rwpZE/dTRCA66OVH+WWFU7DzO/DP96bERK47B98WCzRV7ryL0YutrzByMqTRN X-Received: by 2002:a05:6e02:20ef:b0:34c:b981:52d4 with SMTP id q15-20020a056e0220ef00b0034cb98152d4mr8992043ilv.31.1695647824090; Mon, 25 Sep 2023 06:17:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695647824; cv=none; d=google.com; s=arc-20160816; b=czgdS6n5m8F2+MUN5UBHYjK2Ej7LboOBI0iTIx8mUowgASjYonHCBHsHvp73MeGR0P nmGwMfBhX/HwAlSs40mYHeGoJ3wT6Bp7JLc3YIcumAEeHGFmE2qWAyh+H7AiRn2PH42O rEw8svgPul5WP7ORlY+qGYjlLwV+gR4L57p72LXDEx+Y8JSD8tps40reaRDvTOVko5B7 BJxnDNEwf696amA4pRwPfgOZIADYvYmyuouCmzEjezIHGIFEeVKtML8DS0DHh2DvCR1Y UAvXVFVyFNRtKCEVxQ6T5uDYRsts0h7jFFPzM6nDBY07Vzo3vs9qBXurwTOuCs1uPdkY IJAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tWHXGf/28UmGg0QYv/KDMxlG6hTCVFQe8U+b4Xx9ObM=; fh=XOg3vffTw8XLpCLT7CALV8hmtF6j6bdibWSc6LMLpvo=; b=uIzQ/v7Zox9gbgOP5g4iOd807fnXXkVZuMXqnZ1P9cq9C6LKHg+1bxQOFl8lQx9/IF M7vauht8M6Qp2OnrakgRoFsEo6L2T5sHV8vnGIkFBrTZfAur0YKuzLcyIqYvM3HALWqG bZ8lmWIdRIY+oy8Tf7yZhe7pS58Ot8UcdH8D+NcJpYH7Mbmv88YWAd6/pxjOeGBC9FDK dNSS/QyQkFEicKwY0JgKlJXRHk2MmV2Y9ixEYw6Q7zgUBe2l2OvAqLpeKKxeijeZ2J2D d2IYQTXc/kpfHK1RDOufsivfTZu10ll2opgCDC6h2exVBLN/8QNrIn0TDgUftAOsQlo/ bZsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iIYy84Uw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id w71-20020a63824a000000b00574134c9acdsi10084548pgd.647.2023.09.25.06.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 06:17:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iIYy84Uw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id E54688087250; Mon, 25 Sep 2023 01:36:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232844AbjIYIg5 (ORCPT + 99 others); Mon, 25 Sep 2023 04:36:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232827AbjIYIgz (ORCPT ); Mon, 25 Sep 2023 04:36:55 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74A2CAF for ; Mon, 25 Sep 2023 01:36:48 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-404fbfac998so66154675e9.3 for ; Mon, 25 Sep 2023 01:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695631007; x=1696235807; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tWHXGf/28UmGg0QYv/KDMxlG6hTCVFQe8U+b4Xx9ObM=; b=iIYy84UwD3FRZQGdiMoLuSB0u2fae3h74+qhniZYG5q1+b23K9vnHSEqFz3A2eipQG RXlaBZfbYPYxUKLM/OLBFndEB3ayOLRgdHZUAY2v0vys2oFR5FPDWu7D1KTigyUYqJ8Q jIOxLpuYe5b8jyxQ/Xt5RBCq99VcwjIDrOFy3cEhLy2eENwibeEhGxIjvaJrbKKeoAJb b4j64u5XP9y4Y3mi7Myt8Hc95Cc9pOSRrbqnjKNJqu7J+Oh+hNVDplaQQfshpqK5XbRr 22ljO2MWCl4w0mU8PA3eUVLzatQbDCaXoRjvgzsia7xTXVBL1tlPzgMvArY2+r3G2TPX 89nQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695631007; x=1696235807; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tWHXGf/28UmGg0QYv/KDMxlG6hTCVFQe8U+b4Xx9ObM=; b=JvhdGC7xMwWUqbMy0mXFt4zzxee9R/IMNQvbNc2OkJxOjXb2rWI4J+Cd67vc/NzDMH IxcyjSRoGgHBLx5kTJH+oLlfh4ohwofOLw/Hn/t6Bqgs7HhQXTGF4Ad1rpeUV3e6JiuU ME7oFHnPasg9YiEXu/Ww5l4wz9o/lYK7pO3/yRElRi+JPnIplpmyw/yyRy8E2IXmBNLI nGEU3MZyM+9LTLKuhWcU+nRKdVOkEzTZV6NwJhU8ux8q9py8rXJKmeW8J+bYJ9PwCOuw K/izjgMRLcTRQLw4r3tw8Cuh3CPL98lB60gMU23dN486UaqYgSxPfJFmYKTXNFvC8w+y f4Mw== X-Gm-Message-State: AOJu0YyD7faVGXXrYa0Bmtbqlna9n5UN5y1rGH6cCmlbdzOFncgQtAbv EwlpmISn43hzM0EMuSgEmlxveg== X-Received: by 2002:a05:600c:22c7:b0:401:c436:8999 with SMTP id 7-20020a05600c22c700b00401c4368999mr5440828wmg.30.1695631006792; Mon, 25 Sep 2023 01:36:46 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.100]) by smtp.gmail.com with ESMTPSA id r8-20020a5d4e48000000b00315af025098sm11089954wrt.46.2023.09.25.01.36.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Sep 2023 01:36:46 -0700 (PDT) Message-ID: <7f539f82-d904-4c46-ba84-6aedd4fafcbe@linaro.org> Date: Mon, 25 Sep 2023 10:36:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] ASoC: dt-bindings: fsl_rpmsg: List DAPM endpoints ignoring suspend Content-Language: en-US To: Chancel Liu , "lgirdwood@gmail.com" , "broonie@kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "shengjiu.wang@gmail.com" , "Xiubo.Lee@gmail.com" , "festevam@gmail.com" , "nicoleotsuka@gmail.com" , "perex@perex.cz" , "tiwai@suse.com" , "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" References: <20230925024847.2971421-1-chancel.liu@nxp.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwkIBwIGFQoJCAsCBBYCAwEC HgECF4AACgkQG5NDfTtBY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D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 25 Sep 2023 01:36:59 -0700 (PDT) On 25/09/2023 10:20, Chancel Liu wrote: >>> Add a property to list DAPM endpoints which mark paths between these >>> endpoints ignoring suspend. These DAPM paths can still be power on >>> when system enters into suspend. >>> >>> Signed-off-by: Chancel Liu >>> --- >>> Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml | 6 ++++++ >>> 1 file changed, 6 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> index 188f38baddec..ec6e09eab427 100644 >>> --- a/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> +++ b/Documentation/devicetree/bindings/sound/fsl,rpmsg.yaml >>> @@ -91,6 +91,12 @@ properties: >>> - rpmsg-audio-channel >>> - rpmsg-micfil-channel >>> >>> + fsl,lpa-widgets: >> >> What is LPA? It's not explained in property description. >> > > On asymmetric multiprocessor, there are Cortex-A core and Cortex-M core, Linux > is running on Cortex-A core, RTOS or other OS is running on Cortex-M core. The > audio hardware devices can be controlled by Cortex-M. LPA means low power audio > case. The mechanism can be explained that Cortex-A allocates a large buffer and > fill audio data, then Cortex-A can enter into suspend for the purpose of power > saving. Cortex-M continues to play the sound during suspend phase of Cortex-A. > When the data in buffer is consumed, Cortex-M will trigger the Cortex-A to > wakeup to fill data. > > I can add above explanation to LPA in patch v2. > >>> + $ref: /schemas/types.yaml#/definitions/non-unique-string-array >>> + description: | >>> + A list of DAPM endpoints which mark paths between these endpoints >>> + ignoring suspend. >> >> And how does it differ from audio-routing? Also, you need to explain what is >> "suspend" in this context. Bindings are independent of Linux. >> > > Normally audio paths will be disabled by ASoC dynamic audio power management if > Linux enters into suspend. LPA requires some audio paths enabled when Cortex-A > enters into suspend. We can read DAPM endpoints from the "fsl,lpa-widgets" > property and keep the paths between these endpoints enabled during suspend > phase of Cortex-A. Property "audio-routing" just declares the connection > between widgets and doesn't have such feature. > > I will modify the description as following: > "A list of DAPM endpoints which mark paths between these endpoints still enabled > when system enters into suspend." Yes, that's better, but even better would be to say not how the OS should behave, but how the actual entire system works. Basically these widgets remain in use by your co-processor, thus OS should not disable them when entering in system suspend state. Best regards, Krzysztof