Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp551067pxb; Wed, 3 Feb 2021 11:25:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyzoFEKyRw22A+UtkwsA72YQv3GLPA0qQd03Bzh4Cm98G7nILBT5LOhzwKFKXBvfz0omTuq X-Received: by 2002:aa7:d64b:: with SMTP id v11mr4537536edr.16.1612380335232; Wed, 03 Feb 2021 11:25:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612380335; cv=none; d=google.com; s=arc-20160816; b=CYTfRAHNu2FkJyEQopNB6P0klu/C/JtZ674Oxh60Lp+tVaXWMLxleHR5Nt+iM7aQCh bGiJBZ/rDA4cWmyFLz8zPMM2qI6a0riMfNUHLkUo45Gs0WcIwE0pTEohcsXq3dPBPwYL Cp3xQT1tObw28lmDDNgCOJN6PKihG/IrBU8IGGujzPpWw/kz7+4il3f3FBcS28GFyxRO X4MaIY1HMdEAAi8hQ9dzWeDjVHY02ATzX1hBWF4HiOr836TbABEcZ3wnQN+ddnRVF3/6 0TwehYsk5X457iBJPSrPKBQ2SyFEtlrDH8rl9Ym0iHQ8KouV2V9vgUv751qfIIAaWmZ2 7NBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=H4ZV4tpaG9Ml8KR8Mvr0gezl8UIgsncC+iA3LPaOOk4=; b=DgnGLITi/pn7fi8qUlHhGw2ylGZPLueWohetKP/xrTmuoVbVCP1URC38VHnmBJAcBQ 9PZpL+KcX+uSHw++2SKO3zOf01pbhjIaxXpIzNQTasp+CvmzN5r0sJh41ycd3SnlHMX0 t5lwJns39Qyrdv+FhvgWilCi2ipQwWJhOOVKhWzj94kQrEQOoD+6hIXaNJahBVS5b1Jo N95O22cXeeaynEQHW9VkhHI/a7asGdlAO8s6ofOnhMNZeoL/QgVD0ntKntqC3bLm7Ccn KiWdXZue96XjfhAAY4ZFA0OL9Zr208W3Utavhz/A7hgim+PXjN3ygP2dSc9iAO3sBxMh APxA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp17si1640106ejc.439.2021.02.03.11.25.09; Wed, 03 Feb 2021 11:25:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232856AbhBCTYA (ORCPT + 99 others); Wed, 3 Feb 2021 14:24:00 -0500 Received: from mga11.intel.com ([192.55.52.93]:16278 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231801AbhBCTXz (ORCPT ); Wed, 3 Feb 2021 14:23:55 -0500 IronPort-SDR: t9DISk4ZhQwchBxTUw8hc1RQ8G3cFgLxzXVAmUPoMtvfpwCRu8IY+3WDxRoGj2Qa0I13Wd/Maq WzbCAqscub7Q== X-IronPort-AV: E=McAfee;i="6000,8403,9884"; a="177595332" X-IronPort-AV: E=Sophos;i="5.79,399,1602572400"; d="scan'208";a="177595332" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 11:23:05 -0800 IronPort-SDR: PvH66FiX93h9r8ZDZFKobESepSQLYgc7x5WQNLPfBQY+jueYgPBgmh/1bI+VIlmJzSN5fGzLNf 4oQPsZadU+Tw== X-IronPort-AV: E=Sophos;i="5.79,399,1602572400"; d="scan'208";a="433580596" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.213.2.151]) ([10.213.2.151]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Feb 2021 11:23:03 -0800 Subject: Re: [PATCH] Revert "dmaengine: dw: Enable runtime PM" To: Andy Shevchenko Cc: dmaengine , Linux Kernel Mailing List , Dan Williams , Andy Shevchenko , viresh kumar , Vinod Koul References: <20210203155100.15034-1-cezary.rojewski@intel.com> From: Cezary Rojewski Message-ID: <5dd21b4c-2159-5a79-f33f-f199cf352db4@intel.com> Date: Wed, 3 Feb 2021 20:23:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-02-03 6:08 PM, Andy Shevchenko wrote: > On Wed, Feb 3, 2021 at 7:06 PM Andy Shevchenko > wrote: >> >> On Wed, Feb 3, 2021 at 5:53 PM Cezary Rojewski >> wrote: >>> >>> This reverts commit 842067940a3e3fc008a60fee388e000219b32632. >>> For some solutions e.g. sound/soc/intel/catpt, DW DMA is part of a >>> compound device (in that very example, domains: ADSP, SSP0, SSP1, DMA0 >>> and DMA1 are part of a single entity) rather than being a standalone >>> one. Driver for said device may enlist DMA to transfer data during >>> suspend or resume sequences. >>> >>> Manipulating RPM explicitly in dw's DMA request and release channel >>> functions causes suspend() to also invoke resume() for the exact same >>> device. Similar situation occurs for resume() sequence. Effectively >>> renders device dysfunctional after first suspend() attempt. Revert the >>> change to address the problem. >> >> I kinda had the mixed feelings about this, thanks for the report. > > Side note: the better solution in general seems to have a specific > power domain for the ASoC multi-function devices (if ever you move to > use auxiliary bus, it may be done easier I think). This is an area I haven't touched yet. Will definitely check it out. Thanks for the recommendations, Andy. Much appreciated. Regards, Czarek