Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp453810pxb; Wed, 3 Feb 2021 09:13:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwNWZCyNtRV5jHSlXSUIYtGGpCOnCWjobUfaA8YBk7v7XuGlVaAxbea/TESjGdPenvVHmG2 X-Received: by 2002:a17:906:af41:: with SMTP id ly1mr4024283ejb.525.1612372399656; Wed, 03 Feb 2021 09:13:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612372399; cv=none; d=google.com; s=arc-20160816; b=fdR3h1yCdDTjVg5aw9fGy2Xf5xsDR7yKyvyMvzrr7ZrKSvx+xTQdrkOXHNd16N27I2 nwacggHnLToHpwlz003o5FWgAFMUnQahiiDEUi2cfDGpOhnL7f4vcZ0LUlRHavyKUMwN VfboSgz+J5XTkpw/dFYiB5JiTHxTNjg2Q17sPxDUpbmjdeKr0CLNhEHjUfBOS6X+BezX Aj3gwyDyymrj4pZSqgd3dIxKprrFOovQRwp59p6XhvD4pmAAFdnu+r6kf0yF5KcjrS6b swGs4h6bIFKfnpSIWKJmOePml6GzkR7akfkvisGJ18x7tMvQ+GCfsN/y6p/0F/garIDS I4lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Xk2EwKQ1eHpmkOxJJbFec7Fsbi451sNnu9yFO3pOpow=; b=edzyV+VRLS8oQVVzla4Jk0pu5pbI7pYJqv2A5qJBsbn6fd5KJKdbZDuwRIMaUDRPak WPz6cmIJhR94t4pb7Jpm9eqZY0/baxMSHCLMltjxd56BiMPUz5g7YxaNhgx/Q4Sev9el kjPPvp51gTnge5Q+Iq8iy1vZtyGptTFBndRFy0Dxxqdpnw5N8HgP5Xr7LKsiB6bzYQqD hjYe1ktQOXIBXx9MB+0NyexLazwD2425fPTKkYAtNQqz0WoGzpr1R8A+hgITURtk0iJy ExPrKfdF0YNe5B08FAZ76YvJdF/+TEdgrv6qLHtWRrNiWoEProQk+UpGin6riWom+b8C HWbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o6FkmBZZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m15si1720357eje.225.2021.02.03.09.12.53; Wed, 03 Feb 2021 09:13:19 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=o6FkmBZZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231445AbhBCRJu (ORCPT + 99 others); Wed, 3 Feb 2021 12:09:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbhBCRJp (ORCPT ); Wed, 3 Feb 2021 12:09:45 -0500 Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83844C061573; Wed, 3 Feb 2021 09:09:05 -0800 (PST) Received: by mail-pj1-x1034.google.com with SMTP id l18so52956pji.3; Wed, 03 Feb 2021 09:09:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Xk2EwKQ1eHpmkOxJJbFec7Fsbi451sNnu9yFO3pOpow=; b=o6FkmBZZ55VlbVJtzpjqacQSCpePFCRO4MUyRhKyGBWHN4gN/+yiC63+b4UY4oeBmC jbLycpyLm8RRrv1SfzhIypcbuzNEmxjnGs6w9CblYztV7roGW/0Ax5tevK1oShkqB8ti uEmXP0+HUzIePali5/RjP+vHcoDDqaCSfQQTaODxZeES6wGQFRB8J4vlG3oSODpm2/hC 7jWRbJGFLRcnCxaM5VsXVvSog+7ohfLPVIwdem7rG+n6Ip/ThbQ6EutxhhGb7kx8fnEq QXqcPOnp2hPNzuW81yYaRkZpLjR/sTKyLKkDaVhPSrG/kCaLXIPWzcRk+ceu9kIzkZXE PkEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Xk2EwKQ1eHpmkOxJJbFec7Fsbi451sNnu9yFO3pOpow=; b=f5Lv/YA3Ux99bcwR1bS3vVsPbMAMygu9ZUnhvIirGL2twvzCBQduoICsck3OvUnAdq YArRwbGV90lIRYeRmmKtXWbKlyWEa7xS0Lx1e4QALo971aEjOEa8E/2XXLwZfBa4w9FK vbFjOEAWjH62lfiyjHL3V0dK9ntPB5uMWV0qfULcJufqHQGphD3NyZwriIvi7ejXRNgv qYcHjFgrrTdUZnzi/2ueRMEbvxYXRh6AtTGSl5/8l+jG2o7b/olkB6mdfldhWkCctswT JXPHGn2Jgi2xtyW4Bcdwx1lwKUDvsuM0cVV/pT9KF6IdV/xcJlRY8gM9GzdPVZQlUXTK 3OBg== X-Gm-Message-State: AOAM531FZTahUpeGyNV8y5IJsAFHtPwdHa6Xa3l13r1EjkVQh5bMJLbi KmP8aX01T0eLFZwXxi+3WACyyL+S41N/nFClGA7Ygnqz2KBqlA== X-Received: by 2002:a17:90a:c84:: with SMTP id v4mr4061074pja.228.1612372145098; Wed, 03 Feb 2021 09:09:05 -0800 (PST) MIME-Version: 1.0 References: <20210203155100.15034-1-cezary.rojewski@intel.com> In-Reply-To: From: Andy Shevchenko Date: Wed, 3 Feb 2021 19:08:49 +0200 Message-ID: Subject: Re: [PATCH] Revert "dmaengine: dw: Enable runtime PM" To: Cezary Rojewski Cc: dmaengine , Linux Kernel Mailing List , Dan Williams , Andy Shevchenko , viresh kumar , Vinod Koul Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). -- With Best Regards, Andy Shevchenko