Linux RTC
 help / color / mirror / Atom feed
* [rtc-linux] [RFC PATCH v2 0/2] rtc: Prevent the automatic reboot after powering off the system
@ 2015-06-09 10:23 Adrian Huang
  2015-06-09 10:23 ` [rtc-linux] [RFC PATCH v2 1/2] rtc-cmos: Clear interrupt flag if alarm time is Adrian Huang
  2015-06-09 10:23 ` [rtc-linux] [RFC PATCH v2 2/2] rtc-cmos: Revert "rtc-cmos: Add an alarm disable quirk" Adrian Huang
  0 siblings, 2 replies; 8+ messages in thread
From: Adrian Huang @ 2015-06-09 10:23 UTC (permalink / raw)
  To: Alexandre Belloni, Alessandro Zummo, rtc-linux
  Cc: Borislav Petkov, Thomas Gleixner, John Stultz, Diego Ercolani,
	Egbert Eich, Max Asbock, Nagananda Chumbalkar, Adrian Huang,
	Adrian Huang

Commit d5a1c7e3fc38 ("rtc-cmos: Add an alarm disable quirk") added the
alarm disable quirk to work around the broken BIOSes. The same symptom
is observed on Lenovo Thinkserver. Instead of adding the impacted
servers to the "alarm disable" quirk, this patchset aims at preventing
the issue so that the commit can be reverted. 

The brief description of the root cause is that: When configuring 
the RTC registers to setup a wake up event in the S5 handler (BIOS),
the handler does not clear the interrupt flag bits by reading 
Register C of CMOS RTC.

Changes from v1:
  * Change the order of [PATCH 1/2] and [PATCH 2/2] (per Borislav)
  * Drop the approach "RTC alarm timer restoration approach". Instead,
    [PATCH 1/2] makes sure that AF is cleared in cmos_do_shutdown()
    before powering off the machine. (Suggested by Alexandre)

Adrian Huang (2):
  rtc-cmos: Clear interrupt flag if alarm time is less equal to now+1
    seconds
  rtc-cmos: Revert "rtc-cmos: Add an alarm disable quirk"

 drivers/rtc/rtc-cmos.c | 113 ++++++++++++++++++++++++++-----------------------
 1 file changed, 59 insertions(+), 54 deletions(-)

-- 
1.9.1

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-06-29  9:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-09 10:23 [rtc-linux] [RFC PATCH v2 0/2] rtc: Prevent the automatic reboot after powering off the system Adrian Huang
2015-06-09 10:23 ` [rtc-linux] [RFC PATCH v2 1/2] rtc-cmos: Clear interrupt flag if alarm time is Adrian Huang
2015-06-10  5:51   ` [rtc-linux] " Huang Adrian
2015-06-10  7:22     ` Diego Ercolani
2015-06-14 22:37   ` Alexandre Belloni
2015-06-26  6:01     ` Huang Adrian
2015-06-29  9:44       ` Alexandre Belloni
2015-06-09 10:23 ` [rtc-linux] [RFC PATCH v2 2/2] rtc-cmos: Revert "rtc-cmos: Add an alarm disable quirk" Adrian Huang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox