Re: 2.4.0-test1-ac15, 2.2.14: hwclock hangs on /dev/rtc

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Sun Jun 18 2000 - 09:06:56 EST


Frank van Maarseveen wrote:
>
> I didn't bother to report it earlier but when issuing the hwclock command
> it always hangs trying to read from /dev/rtc. Excerpt from strace output:
>
> gettimeofday({961335142, 924275}, NULL) = 0
> getuid() = 0
> open("/dev/rtc", O_RDONLY) = 3
> close(3) = 0
> open("/dev/rtc", O_RDONLY) = 3
> ioctl(3, 0x7003, 0) = 0
> read(3, <unfinished ...>
> [have to ^C]
>
> I have a IWILL DBL100 mobo + 2xPIII 450 MHz.
>
> Simply removing /dev/rtc is a workaround: hwclock will go directly to the
> hardware. However, manipulating the hardware clock that way is unclean
> for SMP.

That's interesting considering 2.4.0-test1 contains a reworking of the
rtc locking with SMP in mind. Can you sprinkle printk's all over the
drivers/char/rtc.c code, and see what's going on?

        Jeff

-- 
Jeff Garzik              |
Building 1024            | Free beer tomorrow.
MandrakeSoft, Inc.       |

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jun 23 2000 - 21:00:15 EST