From: sudeep.holla@arm.com (Sudeep Holla)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 1/1] misc: sram: add dev_pm_ops to support module power gate
Date: Wed, 26 Aug 2015 10:26:54 +0100 [thread overview]
Message-ID: <55DD865E.4050603@arm.com> (raw)
In-Reply-To: <CY1PR0301MB0843AB9C6330D29EBD5F47DA83610@CY1PR0301MB0843.namprd03.prod.outlook.com>
On 25/08/15 20:35, Shenwei Wang wrote:
>
>
>> -----Original Message-----
>> From: Sudeep Holla [mailto:sudeep.holla at arm.com]
>> Sent: 2015?8?25? 11:03
>> To: Wang Shenwei-B38339
>> Cc: Sudeep Holla; gregkh at linuxfoundation.org; arnd at arndb.de; Huang
>> Yongcai-B20788; linux-arm-kernel at lists.infradead.org
>> Subject: Re: [PATCH v3 1/1] misc: sram: add dev_pm_ops to support module
>> power gate
>>>> I don't like that solution as it's not scalable with SRAM size and
>>>> saving all the content of SRAM just because of few active regions
>>>> makes no sense to me at-least. I prefer leaving it to the users to
>>>> handle that rather than SRAM driver.
>>>
>>> I don't think it is not scalable. The choice should be made by the
>>> application. From the driver side, it should be able to provide the
>>> way to retain its contents during power gate.
>>>
>>
>> OK that was just my opinion. I just wanted to avoid unnecessary save/restore, e.g.
>> if say just few kilobytes are active in say 32MB SRAM, you will save/restore entire
>> SRAM ?
>
> Although in theory a SoC can integrate such a big SRAM like 32MB inside, but I don't
> think anyone will practice it because the cost is too high. So far, the most popular size
> of a SRAM in a SoC is hundreds of KB.
>
I have seen 32MB SRAM and people are thinking of doubling it. So I
disagree, especially if that's your main argument.
On Android targets, I have seen suspend-to-ram used quite aggressively
and this save/restore might add significant delay and might be
unnecessary most of the time.
>> Anyways, the driver is saving/restoring the memory unconditionally whenever DT
>> sets that boolean right ? at-least as the patch stands.
>
> The saving/restoring feature is not enabled by default in this patch. To enable it you
> need to add the can-power-gate string in the relating DT node.
Yes I understood and that's what I mentioned above, but once it's
present in DT, it's unconditional for the entire SRAM which might not be
used actively. So I still don't like this approach.
Regards,
Sudeep
prev parent reply other threads:[~2015-08-26 9:26 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-30 16:11 [PATCH v3 1/1] misc: sram: add dev_pm_ops to support module power gate Shenwei Wang
2015-08-05 21:11 ` Shenwei Wang
2015-08-12 15:47 ` Shenwei Wang
2015-08-20 14:48 ` Shenwei Wang
2015-08-24 20:26 ` Shenwei Wang
2015-08-25 13:02 ` Sudeep Holla
2015-08-25 13:47 ` Shenwei Wang
2015-08-25 13:59 ` Sudeep Holla
2015-08-25 14:20 ` Shenwei Wang
2015-08-25 14:40 ` Sudeep Holla
2015-08-25 15:05 ` Shenwei Wang
2015-08-25 16:03 ` Sudeep Holla
2015-08-25 19:35 ` Shenwei Wang
2015-08-26 9:26 ` Sudeep Holla [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DD865E.4050603@arm.com \
--to=sudeep.holla@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).