From: David Brownell <david-b@pacbell.net>
To: rol@as2917.net
Cc: "'Adrian Bunk'" <bunk@stusta.de>,
linux-kernel@vger.kernel.org, a.zummo@towertech.it,
rtc-linux@googlegroups.com
Subject: Re: 2.6.21-rc2 : Oops in rtc_cmos...
Date: Tue, 6 Mar 2007 11:32:28 -0800 [thread overview]
Message-ID: <200703061132.29331.david-b@pacbell.net> (raw)
In-Reply-To: <01b901c75fc1$2295d4c0$4b00a8c0@donald>
On Monday 05 March 2007 11:29 pm, Paul Rolland wrote:
> Hello Adrian,
>
> > does the patch in http://lkml.org/lkml/2007/2/23/184 fix your problem?
>
> Yes, it does, so it's a Good One (tm),
And points out that $SUBJECT is misleading; the root cause of
the oops isn't rtc_cmos. Workaround, don't enable the legacy
driver for this hardware.
> but I don't understand what's going
> on then... My dmesg says, related to rtc :
>
> ...
> rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
I think the RTC core shouldn't emit this message; I'll send
a patch. It's just confusing on error paths; and on success
paths it's less informative than a message from the driver
itself could be.
One of the good things about getting rtc-cmos merged: it
exposes this new RTC framework to new mistakes, which helps
fix some of the remaining rough spots.
> pnp: Device 00:03 does not support disabling.
Blame the PNP stack for that particular useless message.
I'l send a fix for that one too.
> rtc_cmos: probe of 00:03 failed with error -16
That's the first message that makes any sense to emit!
In this case, "-16" ("-EBUSY") means that a resource
was in use by the legacy RTC driver.
> ...
> and then later :
> ...
> drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Because probing 00:03 failed, was never fully usable.
So then rtc0 couldn't be found. You'd get the same
message if, say, the RTC was loaded as a module.
> ...
>
> What does this all mean ? I thought an RTC Cmos was always there on a
> standard PC motherboard... (that's why I had activated the option in the
> first time).
You enabled CONFIG_RTC (under char drivers, "Enhanced Real Time Clock Support")
so that driver has claimed the CMOS RTC instead of "rtc-cmos.c". Disable it.
Then you'll be able to use this driver with no little surprises.
It's odd the way that code registered the RTC before grabbing the resources
it would use. Normally I wouldn't code it like that. I think that probably
had to do with wanting to make sure resources got associated with "rtc0"
(or whatever) rather than some generic name. Obviously that can only happen
if the RTC was registered (and thus named) before claiming resources.
- Dave
next prev parent reply other threads:[~2007-03-06 20:02 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-04 18:43 2.6.21-rc2 : Oops in rtc_cmos Paul Rolland
2007-03-04 23:48 ` Adrian Bunk
2007-03-06 7:29 ` Paul Rolland
2007-03-06 19:32 ` David Brownell [this message]
2007-03-06 20:50 ` [rtc-linux] " Alessandro Zummo
2007-03-06 22:23 ` David Brownell
2007-03-07 4:42 ` Paul Rolland
2007-03-07 5:26 ` David Brownell
2007-03-07 8:16 ` Alessandro Zummo
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=200703061132.29331.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=a.zummo@towertech.it \
--cc=bunk@stusta.de \
--cc=linux-kernel@vger.kernel.org \
--cc=rol@as2917.net \
--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