From: David Brownell <david-b@pacbell.net>
To: rtc-linux@googlegroups.com
Cc: Luca Tettamanti <kronos.it@gmail.com>,
Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: Does the kernel HPET support has problems or the hwclock from util-linux?
Date: Tue, 3 Jul 2007 23:02:52 -0700 [thread overview]
Message-ID: <200707032302.52612.david-b@pacbell.net> (raw)
Not that I think it matters, but I understand that util-linux-ng
now has a 2.13-rc1 release out, so you're not using the latest
version of "hwclock". That shouldn't affect HPET though.
That said, this situation is likely going to be a mess until
some new HPET support gets merged. Issues include:
- There are two drivers for the "cmos rtc" ... the legacy
version (/dev/rtc), and the one using the new RTC framework
("rtc-cmos" driver, likely /dev/rtc0 on your system).
To use the new one, you'll probably want the latest hwclock,
which understands that not ever RTC uses /dev/rtc0. (Or you
can symlink /dev/rtc to /dev/rtc0 ...)
- HPET itself has two modes. I think of them as "break things
mode" and "sane mode"; but I think they have official names
that make the first one sound like it might be reasonable to
use. (Yet it isn't; and I suspect that's a big reason why
HPET isn't enabled by default on most systems.)
The difference is that the "break things" mode overrides
the RTC interrupt line so the RTC can't use it, where the
"sane" mode just routes HPET irqs like other IRQs.
- Until the new HPET stuff gets merged (and I don't know what
schedule that's on), Linux uses the "break things" mode.
Which means that it breaks rtc-cmos ... but the legacy RTC
driver has some fairly ugly hacks to cope with it.
The new HPET stuff will among other things let HPET be used
to provide per-CPU clockevent sources (assuming there are as
many HPET instances as there are CPUs). That's on top of
other advantages, like "not breaking things".
So for the short term, I think there might be some set of config
options using the legacy (drivers/char/rtc.c) driver that will
let you enable HPET, with minimal breakage. I don't know what
those options are, or what hwclock would need to do (or not do).
And longer term, the rtc framework version (rtc-cmos) will work
just fine with new HPET code, since Linux will be able to use
HPET in "sane mode" not "break things" mode.
- Dave
next reply other threads:[~2007-07-04 6:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 6:02 David Brownell [this message]
2007-07-06 2:06 ` Does the kernel HPET support has problems or the hwclock from util-linux? rae l
-- strict thread matches above, loose matches on Subject: below --
2007-07-02 10:15 rae l
2007-07-02 10:21 ` Ismail Dönmez
2007-07-02 20:13 ` Luca Tettamanti
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=200707032302.52612.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=kronos.it@gmail.com \
--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