[linux-pm] [PATCH 3/6] [-mm]: ACPI: duplicate ACPI sleep "alarm" attribute in sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for your attention.

On Sun, 2007-01-07 at 18:31 -0800, David Brownell wrote:
> On Saturday 06 January 2007 9:57 pm, Matthew Garrett wrote:
> > On Sat, Jan 06, 2007 at 02:42:22PM -0800, David Brownell wrote:
> > > On Saturday 06 January 2007 3:35 am, Zhang Rui wrote:
> > > > 
> > > > Create /sys/power/alarm.
> > > 
> > > Urg.  This doesn't work with the RTC framework, which accepts the reality
> > > that some systems have multiple RTCs ... /sys/class/rtc/rtcN/alarm is a
> > > much more appropriate location for that RTC's alarm.
> > 
Errr, I never met this multiple RTCs situation before and it's true
that /sys/power/alarm can not handle multiple RTCs.
I don't know why they are needed, maybe for the embedded system?
Could you provide me more details about this multiple RTCs please?
Thanks.
> > Especially since /proc/acpi/alarm is just banging on the RTC registers 
> > - the only ACPI thing about it is that the FADT can expose whether or 
> > not the extended registers exist, and then making sure that the GPE is 
> > enabled.
> 
> The FADT also exposes whether the RTC can wake from S4.  You may have
> noticed that my rtc-cmos patch #3 exported the relevant FADT info
> to the RTC device using platform_data, but the S4 wake capability flag
> isn't useful for anything on today's Linux.
> Not speaking as an ACPI expert, I do see the ACPI spec says (right
> under fig 4-11 in my version) that RTC events don't require GPEs.
> 
Enabling the GPE for RTC is needed. According to the ACPI spec 3.0,
which is the latest version, "If the RTC wake event status and enable
bits are implemented in fixed hardware, the platform are able to
indicate an RTC wake source without consuming a GPE bit, as would be
required if RTC wake was not implemented using the fixed hardware RTC
feature". You can get it in 4.7.2.4.

Thanks,
Rui


[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux