[PATCH v8 0/2] Adds PMU and S2R support for exynos5420
Vikas Sajjan
vikas.sajjan at samsung.com
Thu Oct 2 07:24:03 PDT 2014
Hi Javier,
On Wed, Oct 1, 2014 at 7:20 PM, Javier Martinez Canillas
<javier at dowhile0.org> wrote:
> Hello Vikas,
>
> On Wed, Oct 1, 2014 at 12:23 PM, Vikas Sajjan <vikas.sajjan at samsung.com> wrote:
>>
>> My git log looks like below on top of Kukjin's for-next branch,
>>
>> d861ddd clk: exynos: Add CLK_IGNORE_UNUSED to aclk200_disp1 and aclk300_disp1
>> adc14dc POSTED: ARM: EXYNOS: Use MCPM call-backs to support S2R on Exynos5420
>> d61fc43 ARM: exynos5: Add Suspend-to-RAM support for 5420
>> 3d1d7bd ARM: exynos5: Add PMU support for 5420
>> a8887b3 mfd: syscon: Decouple syscon interface from platform devices
>> 072e2bc ARM: EXYNOS: Move PMU specific definitions from common.h
>> ec2f950 ARM: EXYNOS: Add platform driver support for Exynos PMU
>>
>
> I tested Kukjin's for-next branch (HEAD in commit a84aaa7) + the
> patches you mentioned and the system enters in suspend mode but the
> RTC alarm IRQ does not make it resume. Is the branch you are using to
> test public so I can give it a try?
>
Not yet, but as I mentioned, I have only above mentioned 7 patches
atop kukjin's for-next.
only difference is the patch " ARM: EXYNOS: Use MCPM call-backs to
support S2R on Exynos5420"
which I had rebased myself.
I am out of office till 7th October, once I am back, I can send you
all those 7 patches, config file and S2R log.
>> recently I noticed that, without the CLK_IGNORE_UNUSED flag for
>> aclk200_disp1 and aclk300_disp1 CLK, the system is NOT suspending,
>> which was NOT the case when i had posted my previous revisions.
>>
>
> I tried both with and without your patch that adds the
> CLK_IGNORE_UNUSED to aclk200_disp1 and aclk300_disp1 and in both cases
> it behaves the same, the system seems to go into suspend mode but
> never resumes:
Can you confirm that the system has really suspended, I mean can you
measure VDD_EGL or VDD_KFC and check or by any other method you know
of.
>
> # echo +20 > /sys/class/rtc/rtc0/wakealarm && echo mem > /sys/power/state
> [ 105.376596] PM: Syncing filesystems ... done.
> [ 105.383207] Freezing user space processes ... (elapsed 0.001 seconds) done.
> [ 105.388681] Freezing remaining freezable tasks ... (elapsed 0.001
> seconds) done.
> [ 105.488589] wake enabled for irq 281
> [ 105.491609] wake enabled for irq 280
> [ 105.498102] wake enabled for irq 284
> [ 105.554736] PM: suspend of devices complete after 155.406 msecs
> [ 105.562572] PM: late suspend of devices complete after 3.361 msecs
> [ 105.570389] PM: noirq suspend of devices complete after 3.102 msecs
> [ 105.575185] Disabling non-boot CPUs ...
> [ 105.579706] IRQ153 no longer affine to CPU1
> [ 105.580008] CPU1: shutdown
> [ 105.587230] IRQ154 no longer affine to CPU2
> [ 105.587472] CPU2: shutdown
> [ 105.594953] IRQ155 no longer affine to CPU3
> [ 105.595190] CPU3: shutdown
> [ 105.602464] IRQ160 no longer affine to CPU4
> [ 105.602979] CPU4: shutdown
> [ 105.609996] IRQ161 no longer affine to CPU5
> [ 105.610424] CPU5: shutdown
> [ 105.617116] IRQ162 no longer affine to CPU6
> [ 105.617557] CPU6: shutdown
> [ 105.625163] IRQ163 no longer affine to CPU7
> [ 105.625596] CPU7: shutdown
>
> I'm testing on a Exynos5420 Peach Pit using exynos_defconfig and
> disabling CONFIG_BL_SWITCHER as you suggested. My bootargs is:
>
I too tested on 5420 based peach-pit board with exynos_defconfig +
disabled CONFIG_BL_SWITCHER.
It did suspend and resume gracefully.
> console=ttySAC3,115200 debug earlyprintk root=/dev/mmcblk1p2 rootwait
> rw no_console_suspend
>
looks fine.
> And I'm booting using a chained nv-uboot with built version:
>
> U-Boot 2013.04-gb98ed09 (Mar 07 2014 - 12:25:37) for Peach
>
I shall update my U-Boot build version, once I am back at office.
> I checked that the s3c2410-rtc alarm IRQ is fired correctly by looking
> at /sys/class/rtc/rtc0/wakealarm and also /proc/interrupts.
>
> Any ideas before I dig into this?
>
> Thanks a lot and best regards,
> Javier
> --
> To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the linux-arm-kernel
mailing list