Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2443247rdh; Wed, 27 Sep 2023 02:51:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1Hy0yne8pC68flt6dLT9q7SO8Qr0j0D+FXnmGy5RkSqQKAzeSmYwvnAW06gIh20uf8uJ5 X-Received: by 2002:a05:6358:904c:b0:141:162:b0cd with SMTP id f12-20020a056358904c00b001410162b0cdmr2100373rwf.19.1695808279502; Wed, 27 Sep 2023 02:51:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695808279; cv=pass; d=google.com; s=arc-20160816; b=xlCzfcYuh3h8fCo38h8TjSPgsn0pHm5Jne7LWaUy9JSleD1is9rHfcjxzdDQPpABgN 78AipHql0OCoq4mZ+kWrPBsuBZItOz6qVLHcb0+zQr9+GP9ays36Vx+5UTk1Mu1Ke496 GsKOgzYbHatHit5cSOVl9lEqMkBXyHf9LgC0rAn7QVWjhZuOML4fHSEQDQTCUxHeTnL/ 8guvk09JNYm7KbBXzZkf0/f2+B8p6qgHH2DlLZ8frgEZkfXgpldYiK02U7oLzRRHll8R n0qV5ID8oV4/56XcSREyXuM/oI3dNSjNDJr8BOqRPsQEo3oFmkbYSScRiTZsoyQtlOwo lRXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=wvS6Y11FeKDiIdyQeN6c+7+4yKd0kC/i+IUP0COeCss=; fh=bOy+6CyQkSibIqb7Dj7wTXAPwgwT8m3Viux66+I5bg8=; b=ddmhFJW3S3XmdHp6ezX4eFW9QT57JEoBRbzzbWznR3LlHT4Mb3Vcad4808jacNYKny Tp5fzvIliky3fif1oyxX+dy5KopxJEqRj8dtRnt0iGcOCE7FkJmpzySNxZygFldatY+q MITo2FPRNEr36W5jrndgDOmglUjIzKffYeE3KfPTF4WAygVEYAgJOVRSD1Z4B+fm0PXo vxvIJRtAnK+wKbxFFjer0hV0MXrlhxA4syIrkqrO4U3+8lbR/bPHhNZKLyBU+umcKoJT x54csHAs+P28yyHgstcqBcGNzWoOPRWN6CcsPuJAisjxSBz+PRTR91h/TmI+/7CW5Jjo FmNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=knQXfY+o; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id t22-20020a056a0021d600b0068bf645ac9bsi15974267pfj.238.2023.09.27.02.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:51:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=knQXfY+o; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id E3A678060019; Tue, 26 Sep 2023 20:44:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjI0DoX (ORCPT + 99 others); Tue, 26 Sep 2023 23:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230015AbjI0DmV (ORCPT ); Tue, 26 Sep 2023 23:42:21 -0400 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2041.outbound.protection.outlook.com [40.107.14.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CDB44C23; Tue, 26 Sep 2023 20:07:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nbwPwEm/nxJ8pWeDedthb7VXoSYdFI1KjX669wJ4zZq/zga2ZRBBvTr09hYtjQHjCUTiaaF8UJdZzFuUJ8Bm/2Ufi20oCv2Da+DqGXT9rnx7Jswr/itb+jDKggud8firH1qsx0jjdq4vilb0K1GTuYNnbtSFBIDkY4GiaYDQ+uYSGvGUqlWuF0EmdWyyyCUJxoZiyCvfejc7rcpF/zF6O6nHMDLtB6ap/M/fBHWxPc8qTRJcSawWpy2zb7s6NlVdB9C1dPf9hkC5neXkWr5PtsoUbadLh2rIKMT2VjdDXgzn26qol/7h4EokghzGO9YbGrIC6OehqwCgAU8fyezRPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wvS6Y11FeKDiIdyQeN6c+7+4yKd0kC/i+IUP0COeCss=; b=EUFfets9iv4e6h3tFw+s9BkWPyxkqEz3R5JitmZL9zKu01CMLc3Maf2roTaELtxtr1zfx6qsiGZLLT/qTA8wUEBsyD2jx85pxlKafqNPdMogmJz9C+MW56tps3gWp5jLIQkFt8u+JP9u2NUoD1QEiDDXXYt1L/VqXuQ3OZIjEIheO0JGHWGkhMxfOT4fTsKP8KeU6+tO+uRhsGSv4Tvc7j5xLqAiNYmATSjEaECjJ3zihGiuuS6EzKulLyO1wWj43dh+h8dsPAbsLm4v9IDpyodrMNqZ1p6KmR864Pg3XmdFrfKOxMHqMl/K0k6DCmqjnM/U3xBCjIqKKss+vcuW4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wvS6Y11FeKDiIdyQeN6c+7+4yKd0kC/i+IUP0COeCss=; b=knQXfY+oodCYGG8cRXaC8IdZJ3B/jE6C+zHiDl2lguCchOHmObFMn8unPM4v4R2SuVBcUs6YPhVCF6ztFkiOq8plyc9K+TYkorLX90HPCxTazi2k28hIsDrLDPNCJJXcXWnfmmKwQxoNbtD2fOIwsd0HFK6C1RtJaTsIttRAb30= Received: from DB9PR04MB9498.eurprd04.prod.outlook.com (2603:10a6:10:360::21) by DB9PR04MB10033.eurprd04.prod.outlook.com (2603:10a6:10:4ee::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.26; Wed, 27 Sep 2023 03:07:50 +0000 Received: from DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::51f9:b8d2:7ddd:c74f]) by DB9PR04MB9498.eurprd04.prod.outlook.com ([fe80::51f9:b8d2:7ddd:c74f%6]) with mapi id 15.20.6813.027; Wed, 27 Sep 2023 03:07:50 +0000 From: Chancel Liu To: Mark Brown CC: "lgirdwood@gmail.com" , "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" Subject: RE: Re: [PATCH v2 1/2] ASoC: dt-bindings: fsl_rpmsg: List DAPM endpoints ignoring system suspend Thread-Topic: Re: [PATCH v2 1/2] ASoC: dt-bindings: fsl_rpmsg: List DAPM endpoints ignoring system suspend Thread-Index: AQHZ8O/MzWXts0FyqkyLsnXLlx8p+w== Date: Wed, 27 Sep 2023 03:07:49 +0000 Message-ID: References: <20230925110946.3156100-1-chancel.liu@nxp.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DB9PR04MB9498:EE_|DB9PR04MB10033:EE_ x-ms-office365-filtering-correlation-id: acab4fa1-9e3e-407e-b29c-08dbbf06eea4 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 4BSghqefRO2lAHo45BTwO7xv/m1f21KdXZn4VnM/etR2WoE9Gef5TYIv6zW+WaDdqrM4D4y2+7ruI7TdBxR1GBMGmZSMSMvcCkh1LOo6+VbTZnA6i0pa0NJW/yG8LLxBZQvF86AFEyLsbMwomDkeCTn9P15kaD+TU7/r+v9U3+NnIpiD3CzaYXOHlZMqnWk0rV84K+OhMevRKehYauU3eStEcxkgh1Y97lmwI75avqEqAzPL9CoZgAIhi+P08xvZPfl+Tb00ozgiPRWMWcNE8XVLlI1YZCNRwu7R+2e4c3IRSAEPi8XPaRUW4jPC5whk4FXcA2/YXOn7Im/5WTSboPXUikV+r3xltxuX8F9NGCyWN8ugmupAV3X/u9OsCn/wVfHRmxetqrxnJwmQR+qxxiFkzFGkcMuEZZBRiu7MQtuSQWXIhsqRqQhP/jTdC692+M6jr44/t9iKY21ix78jPhsy8auU+CqV1NKEi49bkyHvWzZ6nFifpCxcRQPluCaZRaPPfEgPC7E6H2xZfpgoY8a5SG+3sYwp4gBShWXCU/vj37K/HV9yOjsTduCiIjSU79JLbxaDRfq+6M3S+XuTYSQq7W0swkuOOltHRitrF7F/nZunzOJ30E7He9FfnbU1 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR04MB9498.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(39860400002)(346002)(396003)(366004)(376002)(230922051799003)(186009)(451199024)(1800799009)(66946007)(7696005)(26005)(6506007)(9686003)(122000001)(86362001)(38100700002)(38070700005)(33656002)(55016003)(8936002)(83380400001)(316002)(6916009)(8676002)(41300700001)(4326008)(66446008)(66476007)(5660300002)(54906003)(66556008)(52536014)(76116006)(15650500001)(7416002)(2906002)(44832011)(71200400001)(64756008)(478600001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?1C0bhttnTRgcJK4Yw+96NZTFxOi8T2zN8aRB0c3VKWtC3yeyxwgSwDkopmB3?= =?us-ascii?Q?mUWBu7RiuhDo4v7z805gI5QuJD8CoP82ZKFYn3hFORJFMUHd3gt6wQLpwK71?= =?us-ascii?Q?JL/5iljaSibxgpPFZJAV+LZJym/n8iQhoK4LADvv+UCGmAD7V3oO1cM75/Cc?= =?us-ascii?Q?CIOKnF8sAP5D5aXuVODU/kZ+pwe2nTXYp2Xsu00oK3giOJAPYHQrbxJxsBk2?= =?us-ascii?Q?c/zEI0147Hv1JwYS/BFl9NQ16+nTUEHibrgcFqaHYxL4YkZ4j373QdULpqiJ?= =?us-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XDVnLwdzrJpasok?= =?us-ascii?Q?lderqxgijebn6fHQch44+r9wlM+6sHyZ96n+k2UapgceHv3KnVNbt2fDzgmL?= =?us-ascii?Q?gKlHRcfpkS/K6BBBfANIR/3wG2YDb7wZpfL/sFAzOLPLbWTSkOGn/oV+m3Mg?= =?us-ascii?Q?3YbfDrU7a+aBmbWoMZRlWDpHpPElKYksn+qs4TGMjwn5KXa0rcoUqlyHO5r/?= =?us-ascii?Q?wmNVfT1ZBF8LbnhGPWL1k0pcd/InJgGVWsK85nNZjgU6/NWEUNfGlmk5Vufq?= =?us-ascii?Q?Zmu6/h+lIwXlzxm4D2K6d+ska30kEYUBBZm0sXooV/N4hhqx6e22JclFDCR6?= =?us-ascii?Q?1Xp/tnjcpqWCY5jm28i0xO6klEywAQFMbarYHqm4v4hZbDxChgZTlxbvC68y?= =?us-ascii?Q?U+5lVRQFtn0baSepdLFuKghtOsFgY92Hirn7btfC?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR04MB9498.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: acab4fa1-9e3e-407e-b29c-08dbbf06eea4 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Sep 2023 03:07:49.6976 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: S2M5oNtfCtM5n5M5CjOk4JC+XMBc4Cj2YI2dNznbwMs6gVpl6rEpxHkYb8G4nmLePnLrFEle0DpYwtj0cn1X4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB10033 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 agentk.vger.email 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 (agentk.vger.email [0.0.0.0]); Tue, 26 Sep 2023 20:44:30 -0700 (PDT) > > + fsl,lpa-widgets: > > + $ref: /schemas/types.yaml#/definitions/non-unique-string-array > > + description: | > > + A list of DAPM endpoints which mark paths between these > endpoints should > > + not be disabled when system enters in suspend state. LPA means l= ow power > > + audio case. On asymmetric multiprocessor, there are Cortex-A cor= e > 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 can be explained as a mechanism that Cortex-A > allocates a > > + large buffer and fill audio data, then Cortex-A can enter into s= uspend > > + 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. LPA > requires > > + some audio paths still enabled when Cortex-A enters into suspend= . >=20 > This is a fairly standard DSP playback case as far as I can see so it > should work with DAPM without needing this obviously use case specific > stuff peering into the Linux implementation. Generally this is done by > tagging endpoint widgets and DAIs as ignore_suspend, DAPM will then > figure out the rest of the widgets in the path. Yes, indeed I meant to let driver get DAPM endpoints from the "fsl,lpa-widg= ets" property and then set these endpoints as ignore_suspend if the sound card i= s running in this use case. Do you think the description for the use case can= be simplified since it's a common use case? Regards,=20 Chancel Liu