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


Groups > linux.kernel > #1590033

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

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 2017-03-01 07:40 +0100
Message-ID <tg65A-7nF-5@gated-at.bofh.it> (permalink)
References <sjqtk-1J4-11@gated-at.bofh.it> <tfRSW-6gQ-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 02/28/2017 08:48 PM, Jon Hunter wrote:
> Hi all,
> 
> On 20/09/16 11:28, 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.
>>
>> Given that Tegra uses device-tree for describing the hardware, it would
>> be ideal that the device-tree 'power-domains' property for generic PM
>> domains could be extended to allow more than one PM domain to be
>> specified. For example, define the following the Tegra210 xHCI device ...
>>
>> 	usb@70090000 {
>> 		compatible = "nvidia,tegra210-xusb";
>> 		...
>> 		power-domains = <&pd_xusbhost>, <&pd_xusbss>;
>> 	};
>>
>> This RFC extends the generic PM domain framework to allow a device to
>> define more than one PM domain in the device-tree 'power-domains'
>> property.
> 
> I wanted to kick this thread again now in the new year and see if there
> is still some interest in pursuing this?

Thanks Jon for reviving this thread. I ran into the issue of having to
support multiple powerdomains for a single device again while working with
Viresh's 'domain performance state' patches [1], to add support for corners
on qualcomm platforms.
We do have devices which have logic and memory powered via separate rails,
and the drivers would want to set 'performance states' on both, which an
external core then translates into actual uV and programs the PMIC.

[1] http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1340018.html

> 
> There is still very much a need from a Tegra perspective. I have put all
> those who responded on TO.
> 
> I know that a lot of time has passed since we discuss this and so if you
> are scratching your head wondering what I am harping on about,
> essentially with this RFC I was looking for a way to support devices
> that require multiple power domains where the domains do not have a
> parent-child relationship and so not are nested in anyway.
> 
> If you need me to elaborate on the need for this, I am happy to do this.
> My take away from when we discussed this last year, was that there was a
> need for this.
> 
> Cheers
> Jon
> 

-- 
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 Jon Hunter <jonathanh@nvidia.com> - 2017-02-28 16:30 +0100
  Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Geert Uytterhoeven <geert@linux-m68k.org> - 2017-02-28 16:40 +0100
    Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 10:40 +0100
      Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Ulf Hansson <ulf.hansson@linaro.org> - 2017-03-13 12:50 +0100
        Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 15:20 +0100
          Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Geert Uytterhoeven <geert@linux-m68k.org> - 2017-03-13 15:30 +0100
            Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 15:40 +0100
              Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Geert Uytterhoeven <geert@linux-m68k.org> - 2017-03-13 15:40 +0100
                Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Jon Hunter <jonathanh@nvidia.com> - 2017-03-13 16:00 +0100
          Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that  require multiple domains Ulf Hansson <ulf.hansson@linaro.org> - 2017-03-13 15:50 +0100
  Re: [RFC PATCH 0/3] PM / Domains: Add support for devices that require  multiple domains Rajendra Nayak <rnayak@codeaurora.org> - 2017-03-01 07:40 +0100

csiph-web