Bug#277298: Kernel 2.6.x real time clock hang on Dell

2014-06-22 Thread Andreas Henriksson
Control: tags -1 - moreinfo

On Sun, Feb 09, 2014 at 10:34:51PM -0500, Phillip Susi wrote:
[...]
 I'm not sure why this was reassigned from the kernel.  Is this still
 an issue today with a modern kernel?

This bug report sure has alot of posts in it so I think it's a good
idea to post a summary (shining some light on the uncertanty about
why this bug was reassigned).

The reason this was reassigned from the kernel to util-linux
is found in:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=277298#219

Basically, people where starting to give up on finding a
solution in the kernel and where discussing a userspace workaround
for broken rtc drivers.

The bug should have been cloned and the clone reassigned
(or a brand new bug report opened) instead, because the kernel bug
was not solved (and who knows if it still is).

At the same time, the bug should probably have been retitled
to something like Please implement workaround/timeout for broken rtc
and the severity lowered to wishlist.

I'd argue that a good enough workaround already exists today,
with the possibility of adding the --directisa switch in
/etc/default/hwclock.

I think this strikes a good balance between not hiding
the bug while at the same time allowing a convenient way
to work around the problem for users (who don't need to hack
the init script).

If it was up to me, I'd close this bug with the above explanation
about /etc/default/hwclock.

Regards,
Andreas Henriksson


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#277298: Kernel 2.6.x real time clock hang on Dell

2008-12-19 Thread zlinuxman
I have a similar problem on a Dell Optiplex GX280.  I have been doing some
extensive research on this problem, and I'd like to share what I've found.

The problem is definitely the HPET (High Precision Event Timer).
See http://en.wikipedia.org/wiki/High_Precision_Event_Timer for more
information on the HPET.

Check your boot log with dmesg|less.  If you see a message that starts with

ACPI: HPET ...

Then your machine has an HPET and you will have this problem.  Booting
with the kernel boot parameter

acpi=off

causes the HPET to not be recognized, and therefore the RTC module can
grab IRQ 8.  But booting with acpi=off causes a lot of other devices to
not be recognized and/or configured too.  And that's usually not good.

The problem is that both the HPET and the legacy RTC want to use IRQ 8.
And with Etch (2.6.18 kernel) and earlier releases, the kernel does not
allow IRQ 8 to be shared between the HPET and the RTC.  I haven't tried
Lenny, with it's 2.6.26 kernel, and for reasons I don't want to get into,
I'm not going to.  But the long term solution is for the kernel to allow
IRQ 8 to be shared between the HPET and the legacy RTC.  Of course, the
hardware itself has to allow interrupt sharing too, or there's not much the
kernel can do about it.

If the hardware doesn't allow interrupt sharing, perhaps the kernel people can
write a replacement for the RTC driver that emulates a legacy RTC using the
HPET.  But with Etch at least, here are the alternatives that I have found:

1. Configure a custom kernel that has all support for the HPET disabled.
When you're all done, look through the .config file and make sure that all
configuration options containing the character string HPET are commented out.
If not, you missed something.  Go back and try again.  Unlike the RTC
driver, which can be made a module, support for the HPET is built into the
kernel.  This will allow full use of the legacy RTC driver, whether it is
built in to the kernel or whether it is a module.  Of course, the HPET
cannot be used at all.  This was my solution.

2. In some cases, you may be able to use the genrtc driver rather than the
rtc driver.  The genrtc driver emulates interrupts in software.  To do this,
add genrtc to /etc/initramfs-tools/modules and run update-initramfs -uv.
Then shutdown and reboot.  genrtc cannot emulate all the functions of the
legacy rtc driver.

3. Another option (with Etch anyway) is using the CONFIG_HPET_RTC_IRQ=y
option when you build a custom kernel.  This tells the legacy rtc driver
to assume that the HPET has stolen IRQ 8 and to not use interrupts.
This allows the kernel to use the HPET.  However, the legacy RTC driver
has reduced function this way.

4. As mentioned earlier, forcing the use of the --directisa option in
hwclock, either through a wrapper or by editing the hwclock.sh script, may be
sufficient.

5. Finally, there's acpi=off as a last resort.

Again, the long term solution is interrupt sharing.  If this cannot be done,
then perhaps Debian should consider changing their stock kernel to not
include HPET support.  Users who need HPET support would then have to
build their own custom kernel and deal with the RTC issue somehow.






-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#277298: Kernel 2.6.x real time clock hang on Dell

2008-04-29 Thread Ross Burton
I'm seeing this on a Lenovo ThinkPad X60, adding --directisa fixed it
for me too.

Ross
-- 
Ross Burton mail: [EMAIL PROTECTED]
  jabber: [EMAIL PROTECTED]
 www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF



signature.asc
Description: This is a digitally signed message part


Bug#277298: Kernel 2.6.x real time clock hang on Dell

2005-02-12 Thread Frans Pop
According to #294938 this problem is fixed in 2.6.10 kernels.

I don't know if it would be possible to identify the fix and backport it 
to 2.6.8 (I understand this is generally quite hard for ACPI problems).

Cheers,
FJP


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]