From: Borislav Petkov <bp@suse.de>
To: Adrian Huang <adrianhuang0701@gmail.com>, diego.ercolani@gmail.com
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Alexandre Belloni <alexandre.belloni@free-electrons.com>,
rtc-linux@googlegroups.com, Brecht Machiels <brecht@mos6581.org>,
Thomas Gleixner <tglx@linutronix.de>,
John Stultz <john.stultz@linaro.org>,
Rabin Vincent <rabin.vincent@stericsson.com>,
Nagananda Chumbalkar <nchumbalkar@lenovo.com>,
Adrian Huang <ahuang12@lenovo.com>, Egbert Eich <eich@suse.com>
Subject: [rtc-linux] Re: [RFC PATCH 1/2] Revert "rtc-cmos: Add an alarm disable quirk"
Date: Mon, 18 May 2015 11:47:55 +0200 [thread overview]
Message-ID: <20150518094755.GC23662@pd.tnic> (raw)
In-Reply-To: <1431077665-3493-1-git-send-email-adrianhuang0701@gmail.com>
On Fri, May 08, 2015 at 05:34:25PM +0800, Adrian Huang wrote:
> Commit d5a1c7e3fc38 ("rtc-cmos: Add an alarm disable quirk") that
> added a special quirk is not needed because PATCH [2/2] of this
> patchset makes the kernel more robust:
> rtc: restore the RTC alarm time to the configured alarm time in BIOS
> Setup
>
> Signed-off-by: Adrian Huang <ahuang12@lenovo.com>
> ---
> drivers/rtc/rtc-cmos.c | 52 --------------------------------------------------
> 1 file changed, 52 deletions(-)
>
> diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
> index a82556a..9754564 100644
> --- a/drivers/rtc/rtc-cmos.c
> +++ b/drivers/rtc/rtc-cmos.c
> @@ -29,8 +29,6 @@
> * other drivers and utilities on correctly configured systems.
> */
>
> -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> -
> #include <linux/kernel.h>
> #include <linux/module.h>
> #include <linux/init.h>
> @@ -41,7 +39,6 @@
> #include <linux/pm.h>
> #include <linux/of.h>
> #include <linux/of_platform.h>
> -#include <linux/dmi.h>
>
> /* this is for "generic access to PC-style RTC" using CMOS_READ/CMOS_WRITE */
> #include <asm-generic/rtc.h>
> @@ -380,50 +377,6 @@ static int cmos_set_alarm(struct device *dev, struct rtc_wkalrm *t)
> return 0;
> }
>
> -/*
> - * Do not disable RTC alarm on shutdown - workaround for b0rked BIOSes.
> - */
> -static bool alarm_disable_quirk;
> -
> -static int __init set_alarm_disable_quirk(const struct dmi_system_id *id)
> -{
> - alarm_disable_quirk = true;
> - pr_info("BIOS has alarm-disable quirk - RTC alarms disabled\n");
> - return 0;
> -}
> -
> -static const struct dmi_system_id rtc_quirks[] __initconst = {
> - /* https://bugzilla.novell.com/show_bug.cgi?id=805740 */
> - {
> - .callback = set_alarm_disable_quirk,
> - .ident = "IBM Truman",
> - .matches = {
> - DMI_MATCH(DMI_SYS_VENDOR, "TOSHIBA"),
> - DMI_MATCH(DMI_PRODUCT_NAME, "4852570"),
> - },
So, your series really fix the reboot issue on this already notoriously
buggy box.
I did try to confirm it 5 times just to be sure and in all 5, the box
remained off.
We're testing another box currently which has the same issue.
Now, for the next version of your patches, I'd ask you to put this patch
second. I.e., you want to introduce the new fix first and *then* remove
the quirk as this way we have a window where no quirk will be in place
and possible bisection will be disturbed needlessly even though we can
help it.
> - },
> - /* https://bugzilla.novell.com/show_bug.cgi?id=812592 */
> - {
> - .callback = set_alarm_disable_quirk,
> - .ident = "Gigabyte GA-990XA-UD3",
> - .matches = {
> - DMI_MATCH(DMI_SYS_VENDOR,
> - "Gigabyte Technology Co., Ltd."),
> - DMI_MATCH(DMI_PRODUCT_NAME, "GA-990XA-UD3"),
> - },
Looking at the bugzilla entry above, that should be Diego's box.
Diego, would you be able to test these patches? They're a better fix
than what I did last year.
If you want me to prepare an openSUSE kernel for you, let me know and
I'll do one. I'd only need to know which distro.
Thanks.
--
Regards/Gruss,
Boris.
ECO tip #101: Trim your mails when you reply.
--
--
--
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.
next prev parent reply other threads:[~2015-05-18 9:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-08 9:34 [rtc-linux] [RFC PATCH 1/2] Revert "rtc-cmos: Add an alarm disable quirk" Adrian Huang
2015-05-18 9:47 ` Borislav Petkov [this message]
2015-05-18 10:00 ` [rtc-linux] " Diego Ercolani
2015-05-18 10:12 ` Borislav Petkov
2015-05-18 16:01 ` Borislav Petkov
2015-05-21 8:31 ` Diego Ercolani
2015-05-21 20:25 ` Diego Ercolani
2015-05-21 20:52 ` Borislav Petkov
2015-05-21 22:16 ` Egbert Eich
2015-05-21 23:44 ` Huang Adrian
2015-05-22 6:20 ` Diego Ercolani
2015-05-18 10:17 ` Borislav Petkov
2015-05-18 11:19 ` Brecht Machiels
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=20150518094755.GC23662@pd.tnic \
--to=bp@suse.de \
--cc=a.zummo@towertech.it \
--cc=adrianhuang0701@gmail.com \
--cc=ahuang12@lenovo.com \
--cc=alexandre.belloni@free-electrons.com \
--cc=brecht@mos6581.org \
--cc=diego.ercolani@gmail.com \
--cc=eich@suse.com \
--cc=john.stultz@linaro.org \
--cc=nchumbalkar@lenovo.com \
--cc=rabin.vincent@stericsson.com \
--cc=rtc-linux@googlegroups.com \
--cc=tglx@linutronix.de \
/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