> El miércoles, 21 de agosto de 2019, 15:58:07 (UTC+2), Chen-Yu Tsai 
escribió:
>
> On Wed, Aug 21, 2019 at 7:54 PM Alejandro González 
> <[email protected] <javascript:>> wrote: 
> > > 
> > > This change exposes the needed interfaces to configure wake alarms to 
> > > userspace, but it doesn't let a SoC resume from a wakealarm by itself 
> > > (that depends on how interrupts are handled). However, it is still 
> > > useful for generating interrupts, it allows users to test the 
> wakealarm 
> > > setting codepath of the sun6i RTC driver, and it will allow developers 
> > > to test wakeup from suspend more easily. 
> > 
> > > I've tested this on a Pine H64 model B, which contains an Allwinner H6 
> > > SoC, with the help of the test_suspend kernel parameter. I got these 
> > > results: 
> > > 
> > > [    1.092823] PM: test RTC wakeup from 'freeze' suspend 
> > > [    1.098391] PM: suspend entry (s2idle) 
> > > [    1.102543] Filesystems sync: 0.000 seconds 
> > > [    1.107333] Freezing user space processes ... (elapsed 0.000 
> seconds) done. 
> > > [    1.115061] OOM killer disabled. 
> > > [    1.118621] Freezing remaining freezable tasks ... (elapsed 0.002 
> seconds) done. 
> > > [    1.204986] PM: suspend devices took 0.076 seconds 
> > > ** The kernel doesn't resume from freeze until reset. ** 
> > > 
> > > [    1.092812] PM: test RTC wakeup from 'mem' suspend 
> > > [    1.098089] PM: suspend entry (deep) 
> > > [    1.102033] PM: suspend exit 
> > > [    1.105205] PM: suspend test failed, error -22 
> > > 
> > > $ echo +5 > /sys/class/rtc/rtc0/wakealarm && sleep 5 && grep rtc 
> /proc/interrupts 
> > >  29:          1          0          0          0     GICv2 133 Level   
>   7000000.rtc 
> > > 
> > > Signed-off-by: Alejandro González <[email protected] 
> <javascript:>> 
> > 
> > You need to send to this to the actual maintainers and mailing lists, 
> not linux-sunxi. 
> > 
> > Use scripts/get_maintainers.pl to get a list of relevant parties. 
>
 Thank you very much for the heads-up. I'll review the patch and submit it 
to the corresponding places.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/linux-sunxi/6780caf4-d01c-4625-b106-c1c51ebfb213%40googlegroups.com.

Reply via email to