From: john stultz <johnstul@us.ibm.com>
To: Matt Turner <mattst88@gmail.com>
Cc: linux-mips@linux-mips.org
Subject: Re: select() to /dev/rtc0 to wait for clock tick timed out
Date: Fri, 19 Aug 2011 14:21:52 -0700 [thread overview]
Message-ID: <1313788912.2970.152.camel@work-vm> (raw)
In-Reply-To: <CAEdQ38H7tHa3d83SOAbhUWFgwMgxCaP9ibJxNAGHAT2gmdEm=w@mail.gmail.com>
On Fri, 2011-08-19 at 16:56 -0400, Matt Turner wrote:
> With 2.6.37 the original rtctest program gives
>
> RTC Driver Test Example.
>
> RTC_UIE_ON ioctl: Invalid argument
>
> and the modified version hangs in the same way. :(
Ok, so the AIE/alarm irq isn't working (but returns as if it should),
and in the older case, the UIE mode properly returned an error.
So I'm guessing since we now use AIE mode interrupts to emulate UIE, the
UIE code thinks alarms will work and so doesn't return an error,
confusing the hwclock code.
> With 2.6.37, hwclock did work:
>
> bcm91250a-be ~ # date
> Fri Aug 19 16:52:21 EDT 2011
> bcm91250a-be ~ # hwclock --systohc
> bcm91250a-be ~ # date 082016522011
> Sat Aug 20 16:52:00 EDT 2011
> bcm91250a-be ~ # hwclock --hctosys
> bcm91250a-be ~ # date
> Fri Aug 19 16:53:02 EDT 2011
Running strace on the hwclock --hctosys might prove the theory above.
> With 3.1.0-rc2+, it does not
> bcm91250a-be ~ # date
> Fri Aug 19 16:54:32 EDT 2011
> bcm91250a-be ~ # hwclock --systohc
> select() to /dev/rtc0 to wait for clock tick timed out
> bcm91250a-be ~ # date 082016542011
> Sat Aug 20 16:54:00 EDT 2011
> bcm91250a-be ~ # hwclock --hctosys
> select() to /dev/rtc0 to wait for clock tick timed out
> bcm91250a-be ~ # date
> Sat Aug 20 16:54:11 EDT 2011
>
> So, even if the alarm never worked, there is some sort of regression here.
Yea, since we depend on the alarm irq for more functionality now, it not
working in this case is causing more trouble.
I suspect either fixing the driver alarm code so it either works or
provides a proper error code will resolve it.
thanks
-john
next prev parent reply other threads:[~2011-08-19 21:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-19 4:16 select() to /dev/rtc0 to wait for clock tick timed out Matt Turner
2011-08-19 17:23 ` john stultz
2011-08-19 18:07 ` john stultz
2011-08-19 19:41 ` Matt Turner
2011-08-19 19:59 ` john stultz
2011-08-19 20:06 ` Matt Turner
2011-08-19 20:34 ` john stultz
2011-08-19 20:34 ` john stultz
2011-08-19 20:56 ` Matt Turner
2011-08-19 21:21 ` john stultz [this message]
2011-08-19 21:48 ` Matt Turner
2011-08-25 17:30 ` Matt Turner
2011-08-26 16:05 ` Atsushi Nemoto
2011-12-30 8:31 ` Xiangfu Liu
2012-03-16 8:53 ` Xiangfu Liu
2012-03-17 1:10 ` John Stultz
2012-03-18 7:03 ` Xiangfu Liu
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=1313788912.2970.152.camel@work-vm \
--to=johnstul@us.ibm.com \
--cc=linux-mips@linux-mips.org \
--cc=mattst88@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.