linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: Zhang Rui <rui.zhang@intel.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	lenb@kernel.org, "linux-acpi@vger" <linux-acpi@vger.kernel.org>,
	linux-pm@lists.osdl.org
Subject: Re: [linux-pm] [PATCH 3/6] [-mm]: ACPI: duplicate ACPI sleep "alarm" attribute in	sysfs
Date: Mon, 8 Jan 2007 12:46:47 -0800	[thread overview]
Message-ID: <200701081246.47811.david-b@pacbell.net> (raw)
In-Reply-To: <1168251234.5754.38.camel@localhost.localdomain>

On Monday 08 January 2007 2:13 am, Zhang Rui wrote:
> 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?

Yes.

> Could you provide me more details about this multiple RTCs please?

An example would be one board I have, with one highly functional RTC
integrated into a system-on-chip processor ... but without battery
backup, since the SOC doesn't have a separate power domain for that.

Systems that want to use that SOC with an RTC may accordingly need
a battery backed RTC, probably connected with I2C or SPI.  On this
board, that's a simple one that's used mostly when starting from a
power-off state, to initialize system clock and then the SOC's RTC.
The more functional integrated RTC (rtc0) is used for normal operation,
but the battery backed one (rtc1) sets the system clock at boot.


> > 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.

That doesn't disagree with what I said.  "Not consuming a GPE bit"
is clearly not requiring a GPE (bit).

I suspect what you mean to say is that the OS needs some hook into
ACPI so it behaves in both cases.  I'm not disagreeing with that.
It would be nice if that were {enable,disable}_irq_wake(RTC_IRQ),
which is what bare metal (non-ACPI) systems would normally use.

- Dave

  reply	other threads:[~2007-01-08 20:46 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-06 11:35 [PATCH 3/6] [-mm]: ACPI: duplicate ACPI sleep "alarm" attribute in sysfs Zhang Rui
2007-01-06 22:42 ` David Brownell
2007-01-07  5:57   ` [linux-pm] " Matthew Garrett
2007-01-08  2:31     ` David Brownell
2007-01-08 10:10       ` Matthew Garrett
2007-01-08 20:39         ` David Brownell
2007-01-08 20:43           ` Matthew Garrett
2007-01-08 21:15             ` David Brownell
2007-01-08 10:13       ` Zhang Rui
2007-01-08 20:46         ` David Brownell [this message]
2007-01-07 11:19 ` Pavel Machek
2007-01-08  3:44   ` David Brownell
2007-01-08 11:36     ` Pavel Machek
2007-01-08 20:35       ` David Brownell
2007-01-25  4:21     ` Len Brown
2007-01-25  9:39       ` [linux-pm] " David Brownell
2007-01-25 19:47       ` Pavel Machek
2007-01-25 23:12         ` Len Brown
2007-01-25 23:28           ` Nigel Cunningham
2007-01-26  0:33           ` David Brownell
2007-01-26 17:07           ` Pavel Machek

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=200701081246.47811.david-b@pacbell.net \
    --to=david-b@pacbell.net \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@lists.osdl.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=rui.zhang@intel.com \
    /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).