Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1496527

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Rajendra Nayak <rnayak@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require multiple domains
Date Thu, 06 Oct 2016 11:50:02 +0200
Message-ID <spdto-6Li-11@gated-at.bofh.it> (permalink)
References <sjqtk-1J4-11@gated-at.bofh.it> <spa2t-4Bm-7@gated-at.bofh.it> <spcdX-60e-19@gated-at.bofh.it>
X-Original-To Jon Hunter <jonathanh@nvidia.com>, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Kevin Hilman <khilman@kernel.org>, Ulf Hansson <ulf.hansson@linaro.org>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1475743428; bh=0FDCMAxdS8w4tTDb4PRMJP5h+N9KeF2b10p++Gzdg9A=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=dxN09SGs+ineHBMkvy7Yq87je9Pl2MHHR6BcJsYEqR+htUcJwZAc0z568N/4RCr4j AwJQj5DEdBRkeGUAhdEM2qTt9NBpvGn8POoJxLRg8sWFzzIPYRJwWATYDoI8CI0Ne2 gHCGJF6Iq1BJ6KmsKZqluafy3enFwolwvHopd/iI=
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1475743428; bh=0FDCMAxdS8w4tTDb4PRMJP5h+N9KeF2b10p++Gzdg9A=; h=Date:From:To:CC:Subject:References:In-Reply-To:From; b=dxN09SGs+ineHBMkvy7Yq87je9Pl2MHHR6BcJsYEqR+htUcJwZAc0z568N/4RCr4j AwJQj5DEdBRkeGUAhdEM2qTt9NBpvGn8POoJxLRg8sWFzzIPYRJwWATYDoI8CI0Ne2 gHCGJF6Iq1BJ6KmsKZqluafy3enFwolwvHopd/iI=
Dmarc-Filter OpenDMARC Filter v1.3.1 smtp.codeaurora.org CD6E3616DD
Authentication-Results pdx-caf-mail.web.codeaurora.org; dmarc=none header.from=codeaurora.org
Authentication-Results pdx-caf-mail.web.codeaurora.org; spf=pass smtp.mailfrom=rnayak@codeaurora.org
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 54
Organization linux.* mail to news gateway
X-Original-Cc linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org
X-Original-Date Thu, 06 Oct 2016 14:13:42 +0530
X-Original-Message-ID <57F60EBE.8010509@codeaurora.org>
X-Original-References <1474367287-10402-1-git-send-email-jonathanh@nvidia.com> <57F5E986.40704@codeaurora.org> <8ba7aa10-0c2f-98ca-c7bd-00e1724e5972@nvidia.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1496527

Show key headers only | View raw


On 10/06/2016 01:55 PM, Jon Hunter wrote:
> Hi Rajendra,
> 
> On 06/10/16 07:04, Rajendra Nayak wrote:
>>
>> On 09/20/2016 03:58 PM, Jon Hunter wrote:
>>> The Tegra124/210 XUSB subsystem (that consists of both host and device
>>> controllers) is partitioned across 3 PM domains which are:
>>> - XUSBA: Superspeed logic (for USB 3.0)
>>> - XUSBB: Device controller
>>> - XUSBC: Host controller
>>>
>>> These power domains are not nested and can be powered-up and down
>>> independently of one another. In practice different scenarios require
>>> different combinations of the power domains, for example:
>>> - Superspeed host: XUSBA and XUSBC
>>> - Superspeed device: XUSBA and XUSBB
>>>
>>> Although it could be possible to logically nest both the XUSBB and XUSBC
>>> domains under the XUSBA, superspeed may not always be used/required and
>>> so this would keep it on unnecessarily.
>>
>> Hey Jon, so does this RFC provide a way to just specify multiple Powerdomains
>> for a device (which then will *all* be powered on/off together) or does
>> it also provide for more granular control of these powerdomains?
> 
> Only to specify multiple power-domains for a device and not the later.
> 
>> The above statement seems to suggest you would need more granular control
>> of these powerdomains (like keeping XUSBA off in case superspeed it not
>> needed) but I can't seem to figure out how you achieve it with this series.
> 
> It is an interesting point but today we have always kept the superspeed
> partition on if the device is configured for superspeed regardless of
> what is actually connected. I will check to see if the h/w would allow
> us to turn it off if a non-superspeed device is in use but I did not
> think so.
> 
> Do you have any interesting use-cases that would make use of this or
> require other such enhancements?

We do have atleast a few devices which need to control multiple power domains,
I will need to look more to see if any of them can be controlled individually.
The downstream code we have models these (powerdomains) as regulators and
the drivers hence have individual control on each (specifying multiple -supply's
in DT)
Regardless, the idea of being able to specify more than one powerdomain
associated to a device seems quite useful, though providing a way for the
driver to control them individually seems tricky.

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require  multiple domains Rajendra Nayak <rnayak@codeaurora.org> - 2016-10-06 08:10 +0200
  Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2016-10-06 10:30 +0200
    Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require  multiple domains Rajendra Nayak <rnayak@codeaurora.org> - 2016-10-06 11:50 +0200

csiph-web