Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp389366imm; Thu, 31 May 2018 02:15:34 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJD4nXiIU2ZRoX/zvi4+YhOHXXGwxrv7Eciaeek6XzsMOyjaz7vhV4iEp/93my2KLDAajAv X-Received: by 2002:a63:77c6:: with SMTP id s189-v6mr5021229pgc.450.1527758134742; Thu, 31 May 2018 02:15:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527758134; cv=none; d=google.com; s=arc-20160816; b=cAQMy+KRg8Wfhq9+BT7zhmp3in8wJKoICXyTomdLPhUDd9zPz8wL7Csd8540ZPkGTt YV1hJmmKD1fi9POTWQEZlDFyrmaHHDtGgiXXE60nLbjtXLWdlFhYXl7swpKUM10dXAXR R9gftM2lzbaBGInvSuHvCfUEOTySvtGsLSctWuma9b9n80WrrWUJNzJ5pg2sbeJWZLds xI1MCRzHLKLFR1dUW5IoXXyKF1jyiSdkjXSWx6rmu43aDNlNdoJdWJ4jSrZ7Oy6yqC1l WK6LP8/h1a920sgIoPfXE/86dh/AI1FOOqWrG48Sm1obUmXIc9VqYTBNjCGv512I2IhQ BbOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=7tFsOlDJqWbYWCEXU2zgVZ2ioSK9FZawF/l6RIvROQM=; b=lkZlnhYktjTIn46V202nJB53ZuPueFVM3HD7jS52zCGy5HRMBsTsYXU0KRjxdPczmU 1SeAWebj5P1rUtFVh0Zn/dsVU22vABuxQvrZ2/RaDJ75eHEsSzVk6Pvkl1u77nXwvu0k dyK5l3B5RhCvc/KU4rxb+sv7fJ2BnRhRZSmIuQq3U892GHxJVUGnFP5kButVZu58AnAn 5UMwI/d2HByISUwQzbY3RO309FerR3uw0V7edzmr7vZDMzQOJnFGJpzCLsp9a6CokCwm 2Z94J3gj/9SRkodgT69aN49cZxkYWogBrKR7KiacgNYYzYzejDRHbf+qNKuH18wWLtFD /5ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NuuOXgna; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si36103473plb.312.2018.05.31.02.15.20; Thu, 31 May 2018 02:15:34 -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; dkim=pass header.i=@linaro.org header.s=google header.b=NuuOXgna; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754192AbeEaJOQ (ORCPT + 99 others); Thu, 31 May 2018 05:14:16 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:42910 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754104AbeEaJON (ORCPT ); Thu, 31 May 2018 05:14:13 -0400 Received: by mail-pl0-f65.google.com with SMTP id u6-v6so12868309pls.9 for ; Thu, 31 May 2018 02:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=7tFsOlDJqWbYWCEXU2zgVZ2ioSK9FZawF/l6RIvROQM=; b=NuuOXgnaLDG1Rfcy4DDUFhrR01GEV2Sko03bnTkaN7v2T1wrUrmljeH++ZXY5gqpjo xgot2NQY8dnymf/4eypEDQENbPdd8hWNnqIMg4YV2KGnAYDWgZF2u0Wm9yGvuhT9iZY9 Zt3WhXPaV+sDjx9r5DseRrIRkEobY19G85ii4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=7tFsOlDJqWbYWCEXU2zgVZ2ioSK9FZawF/l6RIvROQM=; b=rDeFWVvDGcETP7X6eo0a0lSFb52tt/sH3wHCdepAk5c13Jtdb9cWJFeKhVsRAYzzTv CRzqyLfRdS2kQEMPw0k3a/USsXvlKBH33S8Zb4XtFbHJH5kvDt+ZJCMd50CPFkCFnddU AjJH37y+YobbWdoK9X/tMi53QkKp3OZYMPzmeIfxuFJpcxZiyDZ8SyOV05Xu8/QvQEgf CnPwEzzxhc/cgjy/Whr7hG3Wn+Tdyb0Qkf+IKceVBfVtAxEua1qlQXZCeXkoq49eyNBh Of18cQRrlWqbux1DdsHktxaqKDNKKR4AJlK5b0QeB5QDSGYmfl9HmMx01a4urcwiZX8u 9BdQ== X-Gm-Message-State: ALKqPwcQg92QehVCrpjkvO9qBvxG7PK5Ucr/vcaIBzUQUcbDYfULw+jg z3dZSovG2dZJGoif5kTVSSpSgQ== X-Received: by 2002:a17:902:b588:: with SMTP id a8-v6mr6077484pls.308.1527758052790; Thu, 31 May 2018 02:14:12 -0700 (PDT) Received: from localhost ([122.172.63.23]) by smtp.gmail.com with ESMTPSA id k84-v6sm33820942pfh.110.2018.05.31.02.14.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 02:14:12 -0700 (PDT) Date: Thu, 31 May 2018 14:44:10 +0530 From: Viresh Kumar To: Ulf Hansson Cc: "Rafael J . Wysocki" , linux-pm@vger.kernel.org, Greg Kroah-Hartman , Jon Hunter , Geert Uytterhoeven , Todor Tomov , Rajendra Nayak , Vincent Guittot , Kevin Hilman , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org Subject: Re: [PATCH v2 0/9] PM / Domains: Add support for multi PM domains per device Message-ID: <20180531091410.fl5f42zmyqi6zj5a@vireshk-i7> References: <20180529100421.31022-1-ulf.hansson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180529100421.31022-1-ulf.hansson@linaro.org> User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29-05-18, 12:04, Ulf Hansson wrote: > 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. > > The interesting parts happens from patch 5 an onwards, including a minor DT > update to the existing power-domain bindings, the 4 earlier are just trivial > clean-ups of some related code in genpd, which I happened to stumble over. > > Some additional background: > > 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. > > It should be noted that this series has been tested on HW, however only by using > a home-cooked test PM domain driver for genpd and together with a test driver. > This allowed me to play with PM domain (genpd), runtime PM and device links. > > Any further deployment for real use cases are greatly appreciated. I am happy to > to help, if needed! Reviewed-by: Viresh Kumar -- viresh