All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: Deepa Raj <draj187@hotmail.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: Questions about enabling dps(dynamic power switching) and SLM
Date: Thu, 14 Aug 2014 07:09:43 -0700	[thread overview]
Message-ID: <20140814140943.GB9239@atomide.com> (raw)
In-Reply-To: <BLU185-W2233E35F6629F6D4F137D6ECEB0@phx.gbl>

* Deepa Raj <draj187@hotmail.com> [140813 06:16]:
> Hi,
> 
> I am working on OMAP3 and OMaP4. I know we can do AVS by smartreflex. The Questions are as follows:
> 
> 1) I have gone through TRM but could not find how can we enable/disable dps and slm. Can you please point out how can we do that? 

With the mainline tree we currently have omap3 working for DPS.
For omap4 and later, features are not working at least not yet.
To play with omap3 dps with mainline kernel, you need to consider
the following:

1. Start with a board that's known to work, like beagleboard xm

2. Start with omap2plus_defconfig, keep EHCI disabled, and OTG cable
   disconnected

3. Enable UART timeouts and off-idle on the device with something like

#!/bin/bash

uarts=$(find /sys/class/tty/ttyO*/device/power/ -type d)
for uart in $uarts; do
	echo 3000 > $uart/autosuspend_delay_ms
done

uarts=$(find /sys/class/tty/ttyO*/power/ -type d)
for uart in $uarts; do
	echo enabled > $uart/wakeup
	echo auto > $uart/control
done

echo 1 > /sys/kernel/debug/pm_debug/enable_off_mode

Also the screen needs to be blanked if you have one. Once
the system starts hitting deeper idle states, you can see
that set off values in /sys/kernel/debug/pm_debug/count.
 
> 2) Does DPS and SLM only applies to MPU,IVA and core domains or it applies to all devices?

We are now cutting off all voltages during idle if the twl4030
configuration is enabled with ti,twl4030-power-idle-osc-off
in the board specific .dts file.
 
> 3) According to OMAP ppt, DPS (similar like run time power management and having wakeup latency in micro seconds). If we enable DPS, does hardware take care of switching on/off power domains means there is no need of powering on/off devices through software?

Right, the devices will idle and save and restore their
state using runtime PM. Once all the blocking devices are
idle, the system will automatically start entering deeper
idle states.
 
> 4) Will DPS only triggers to retention state only or off state also?

Both work, depending on if /sys/kernel/debug/pm_debug/enable_off_mode
is enabled or not.
 
> 5) If we enable SLM (according to omap ppt, suspend to ram) but wakeup latencies in milliseconds, if we enable this feature, does the hardware be able to power off all the devices when system is idle or it only applies to VDD1 (MPU-IVA) or VDD2 (Core domain)?

What is automatically powered down depends on the twl4030 script
configuration, see for example omap3_idle_rconfig. For omap4,
and later the twl6040 control is only over I2C4 AFAIK.
 
> Hope to see answers from experts.

Hopefully that will get you started :)

Regards,

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2014-08-14 14:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-13 13:08 Questions about enabling dps(dynamic power switching) and SLM Deepa Raj
2014-08-14 14:09 ` Tony Lindgren [this message]
     [not found]   ` <BLU185-W41F1B3F381C31F1C3B8266ECD40@phx.gbl>
2014-08-18 17:30     ` Deepa Raj
2014-08-19 15:01       ` Tony Lindgren
     [not found]         ` <BLU185-W41D02CD4B210AFAA8F36ECECC50@phx.gbl>
2014-09-18 17:06           ` Tony Lindgren

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=20140814140943.GB9239@atomide.com \
    --to=tony@atomide.com \
    --cc=draj187@hotmail.com \
    --cc=linux-omap@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.