From: Michael Ellerman <michael@ellerman•id.au>
To: Sachin Sant <sachinp@in•ibm.com>
Cc: Geert.Uytterhoeven@sonycom•com, linuxppc-dev@ozlabs•org,
cbe-oss-dev@ozlabs•org
Subject: Re: 2.6.31-rc7 : kernel BUG at drivers/rtc/rtc-ps3.c:36!
Date: Mon, 24 Aug 2009 17:39:12 +1000 [thread overview]
Message-ID: <1251099552.19818.4.camel@concordia> (raw)
In-Reply-To: <4A923AD3.1020507@in.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1180 bytes --]
On Mon, 2009-08-24 at 12:31 +0530, Sachin Sant wrote:
> While trying to boot 2.6.31-rc7 on a power6 machine came
> across the following Bug.
>
> Starting udev: ------------[ cut here ]------------
> kernel BUG at drivers/rtc/rtc-ps3.c:36!
> cpu 0x0: Vector: 700 (Program Check) at [c0000000f70f3570]
> pc: c00000000059a020: .ps3_get_time+0x3c/0x84
> lr: c00000000059a018: .ps3_get_time+0x34/0x84
> sp: c0000000f70f37f0
> msr: 8000000000029032
> current = 0xc0000000f8d14ee0
> paca = 0xc0000000012cc300
> pid = 159, comm = hwclock
> kernel BUG at drivers/rtc/rtc-ps3.c:36!
> static u64 read_rtc(void)
> {
> ....
> result = lv1_get_rtc(&rtc_val, &tb_val);
> BUG_ON(result);
>
> I had never tried enabling CONFIG_RTC_DRV_PS3 option before
> so not sure if this is a new problem or an old one.
Looks like an old one, or at least as long as the driver has existed.
The code needs to cope with being called on something other than a PS3.
Either the platform driver is only registered if the machine is a PS3,
or ps3_rtc_probe() actually does something to check it's on a PS3 before
registering the rtc_device.
cheers
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-08-24 7:39 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-24 7:01 2.6.31-rc7 : kernel BUG at drivers/rtc/rtc-ps3.c:36! Sachin Sant
2009-08-24 7:39 ` Michael Ellerman [this message]
2009-08-24 8:53 ` Geert Uytterhoeven
2009-08-24 8:54 ` [PATCH for 2.6.31] powerpc/ps3: Add missing check for PS3 to rtc-ps3 platform device registration Geert Uytterhoeven
2009-08-24 9:07 ` Sachin Sant
2009-08-24 9:29 ` Geert Uytterhoeven
2009-08-24 18:41 ` Geoff Levand
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=1251099552.19818.4.camel@concordia \
--to=michael@ellerman$(echo .)id.au \
--cc=Geert.Uytterhoeven@sonycom$(echo .)com \
--cc=cbe-oss-dev@ozlabs$(echo .)org \
--cc=linuxppc-dev@ozlabs$(echo .)org \
--cc=sachinp@in$(echo .)ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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