Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp5447531imm; Tue, 12 Jun 2018 08:01:11 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLX0CdLqchvfTEn9uylZ4/BZhuJBhct0nXIWtCF6FsaZbwFqXzMN/wonvrd4X/7KP8LtNmW X-Received: by 2002:a62:5d48:: with SMTP id r69-v6mr785256pfb.84.1528815671611; Tue, 12 Jun 2018 08:01:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528815671; cv=none; d=google.com; s=arc-20160816; b=Q9I0Vd78TgYDl5GmQ+ORWMKCUtFf7psq1dYRLxpqx1MuuRyXb/7e9+VJKfrjIYF+dl 61jfV5tYBzdSBaaRu6xhqH1m/l4AyOIB1EyUb4Q3g7z3pIl05ZgVQgfRjOqDIpOcT5pd Euo55f7a++cRIG8Ds3dVgn92xKMVXA2RmeepvT+DlfYdDrlJqbC+kDOiiRDQoQxsvF7b n6sYLs552z7GJg70vyFwxPariTYPK6l9Rd6dHoarPRw9bKAB5rwn/0ccNetgkQv2cQhi RaYzuUGlWNMiO15CESP7ejo9Tsd8Z64uFXmvW+OAMYHA83cGKoGMP/6P4AeoWSY0UkAE ym/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Gd5nLlpWC9c7m0k6OpF1TYz1jA+sxWGIL/83ldPG0Fg=; b=upsPMFtwB/hhljVbXxhmmA1cdPcg7I0CCCnDkH5SUudyo+CJ1IpSGZo2ocEFlCsQRZ g3dCPFBJPSmZNVEE6BGhBAzvxr2luh+qo4+ooESyQnRt/vp0lZuA+dAPjnADG2U5i/tj b0/H+1wvz6WRnQ9qSx+sBiIiPKjdOeqXh8mDr7cD2kvJsEkx3IOaRLJXU7/qarS2pmax 5TwZXarhH/jeGnYBaLsEYIuWg9Eb86INKRgsAF1gzRZoPornwmb8vDavG6Um9y/MH98o OZeeA0gV0vLQJbeylmUZvEHF9L7gPOfHpkbfgiCqzvo8bJcVaRmXrfZp7OtVP4uOUw5B 6gcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7-v6si286364plt.149.2018.06.12.08.00.54; Tue, 12 Jun 2018 08:01:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754319AbeFLPAC (ORCPT + 99 others); Tue, 12 Jun 2018 11:00:02 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:60429 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932750AbeFLPAA (ORCPT ); Tue, 12 Jun 2018 11:00:00 -0400 Received: from 79.184.255.56.ipv4.supernova.orange.pl (79.184.255.56) (HELO aspire.rjw.lan) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83) id af3db44557138fd8; Tue, 12 Jun 2018 16:59:58 +0200 From: "Rafael J. Wysocki" To: Ulf Hansson Cc: linux-pm@vger.kernel.org, Greg Kroah-Hartman , Jon Hunter , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Viresh Kumar , Vincent Guittot , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v3 0/5] PM / Domains: Add support for multi PM domains per device Date: Tue, 12 Jun 2018 16:58:57 +0200 Message-ID: <3721375.shleKqokg2@aspire.rjw.lan> In-Reply-To: <20180531105959.14843-1-ulf.hansson@linaro.org> References: <20180531105959.14843-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, May 31, 2018 12:59:54 PM CEST Ulf Hansson wrote: > Changes in v3: > - Drop patch 1->4 as they have already been applied. > - Collected tags, for tests and reviews. > - Minor update to function descriptions in patch 4 (earlier 8) and 5 > (earlier9). > - Note, because of the minor changes, no history is provided per patch. > > Changes in v2: > - Addressed comments from Geert around DT doc. > - Addressed comments from Jon around clarification of how to use this > and changes to returned error codes. > - Fixed build error in case CONFIG_PM was unset. > > There are devices that are partitioned across multiple PM domains. Currently > these can't be supported well by the available PM infrastructures we have in > the kernel. This series is an attempt to address this. > > One existing case where devices are partitioned across multiple PM domains, is > the Nvida Tegra 124/210 X-USB subsystem. A while ago Jon Hunter (Nvidia) sent a > series, trying to address these issues, however this is a new approach, while > it re-uses the same concepts from DT point of view. > > The Tegra 124/210 X-USB subsystem contains of a host controller and a device > controller. Each controller have its own independent PM domain, but are being > partitioned across another shared PM domain for the USB super-speed logic. > > Currently to make the drivers work, either the related PM domains needs to stay > powered on always or the PM domain topology needs to be in-correctly modelled > through sub-domains. In both cases PM domains may be powered on while they > don't need to be, so in the end this means - wasting power -. > > As stated above, this series intends to address these problem from a PM > infrastructure point of view. More details are available in each changelog. > > Kind regards > Ulf Hansson > > Ulf Hansson (5): > PM / Domains: dt: Allow power-domain property to be a list of > specifiers > PM / Domains: Don't attach devices in genpd with multi PM domains > PM / Domains: Split genpd_dev_pm_attach() > PM / Domains: Add support for multi PM domains per device to genpd > PM / Domains: Add dev_pm_domain_attach_by_id() to manage multi PM > domains > > .../bindings/power/power_domain.txt | 19 ++- > drivers/base/power/common.c | 43 +++++- > drivers/base/power/domain.c | 134 +++++++++++++++--- > include/linux/pm_domain.h | 15 ++ > 4 files changed, 183 insertions(+), 28 deletions(-) > > Applied, thanks!