From: Mark Lord <lkml@rtr.ca>
To: Mark Lord <lkml@rtr.ca>, Len Brown <lenb@kernel.org>,
Alessandro Zummo <a.zummo@towertech.it>,
David Brownell <david-b@pacbell.net>,
lkml <linux-kernel@vger.kernel.org>,
rtc-linux@googlegroups.com, linux-acpi@vger.kernel.org
Subject: Re: PATCH: /proc/acpi/alarm: handle day-of-month wraparound on readback
Date: Tue, 02 Dec 2008 13:54:52 -0500 [thread overview]
Message-ID: <4935847C.6090203@rtr.ca> (raw)
In-Reply-To: <20081202102925.GA3194@dose.home.local>
Tino Keitel wrote:
> On Mon, Dec 01, 2008 at 12:02:06 -0500, Mark Lord wrote:
>> Mark Lord wrote:
>>> Fix month wrap issue with readback from /proc/acpi/alarm
>>> This bug has been around *forever*.
>>>
>>> $ echo '2008-12-01 10:36:20' > /proc/acpi/alarm
>>> $ cat /proc/acpi/alarm
>>> 2008-11-01 10:36:20
>>>
>>> Note how the readback above shows the month incorrectly.
>>> But with this patch applied, it shows the correct month (12).
>> ..
>>
>> I should add, that the above test requires that the alarm
>> be set for any day of the *next* month from the current month.
>> My MythTV box does a readback test any time it programs a wakeup,
>> and noticed the bug over this past weekend (2008-11-30).
>
> Why not just use the new RTC drivers and /sys/class/rtc/rtc0/wakealarm?
..
That question has nothing to do with fixing the bug in
the /proc/acpi/alarm code. The bug is still there whether
I personally use a different mechanism or not! :)
But in answer to your question, the new RTC drivers *also* fail
for some other reason. They did work up until the HPET integration
(back in 2.6.26 ?), but have not worked since.
My MythTV box always tries the new ones, and if the readback test
fails to agree with what was attempted, it then falls back to
the old yet more reliable /proc/acpi/alarm.
I haven't really had time to find the exact breakage point and patch it
in the new RTC code yet (I put about 10 hours into it back then,
with no useful result), but the old code does have a useful fix.
Thus this thread.
Cheers
next prev parent reply other threads:[~2008-12-02 18:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-23 3:42 [patch 2.6.26-rc7] rtc_read_alarm() handles wraparound David Brownell
2008-06-25 8:59 ` [rtc-linux] " Alessandro Zummo
2008-12-01 16:57 ` PATCH: /proc/acpi/alarm: handle day-of-month wraparound on readback Mark Lord
2008-12-01 17:02 ` Mark Lord
2008-12-02 10:29 ` Tino Keitel
2008-12-02 18:54 ` Mark Lord [this message]
2008-12-01 18:18 ` Len Brown
2008-12-01 22:13 ` Mark Lord
2008-12-09 15:46 ` [PATCH] " Mark Lord
2008-12-10 5:35 ` Len Brown
2008-12-01 22:15 ` PATCH: " Mark Lord
2008-12-01 22:32 ` [rtc-linux] " Alessandro Zummo
2008-12-02 18:57 ` Mark Lord
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=4935847C.6090203@rtr.ca \
--to=lkml@rtr.ca \
--cc=a.zummo@towertech.it \
--cc=david-b@pacbell.net \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rtc-linux@googlegroups.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