linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
       [not found]           ` <Pine.GSO.4.58.0312171112040.24864@waterleaf.sonytel.be>
@ 2004-01-13 15:12             ` Sven Luther
  2004-01-13 17:09               ` Geert Uytterhoeven
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Luther @ 2004-01-13 15:12 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Sven Luther, Debian PowerPC List, linuxppc-dev


On Wed, Dec 17, 2003 at 11:13:58AM +0100, Geert Uytterhoeven wrote:
> On Wed, 17 Dec 2003, Sven Luther wrote:
> > On Wed, Dec 17, 2003 at 10:57:07AM +0100, Geert Uytterhoeven wrote:
> > > On Wed, 17 Dec 2003, Sven Luther wrote:
> > > > On Wed, Dec 17, 2003 at 10:43:24AM +0100, Geert Uytterhoeven wrote:
> > > > > On Wed, 17 Dec 2003, Sven Luther wrote:
> > > > > > On Sun, Aug 24, 2003 at 03:18:46AM +1000, J. Javier Maestro wrote:
> > > > > > > I just recompiled the 2.4.21-ben2 kernel several times, trying to get it
> > > > > > > running. I finally fixed the FB problem I was having at compilation, and
> > > > > > > when booting, the kernel froze in the middle of the boot, when trying to
> > > > > > > set the System time. I can track this to the RTC support, since the
> > > > > > > kernel booted nicely when I unset CONFIG_RTC.
> > > > > >
> > > > > > Strange, i am experiencing exactly the opposite behavior, but then i
> > > > > > have a Pegasos, which is of CHRP lineage, and uses a via southbridge.
> > > > >
> > > > > And the VIA SouthBridge has a builtin PC-style RTC, right?
> > > >
> > > > Yep, it does. What about your longtrail, what does it use for RTC ?
> > >
> > > | callisto$ grep rtc .config
> > > | CONFIG_GEN_RTC=m
> > > | CONFIG_RTC=y
> > > | callisto$
> > >
> > > It uses the PC-style RTC driver (genrtc.o is not loaded).
> >
> > Mmm, what was your box again ? a chrp no ?
>
> Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.

Could you tell me the content of your rtc OF node ? In particular i am
interested in the reg value (probably 70/71 in isa space or so), and of
the compatible stuff (i have ds1385-rtc).

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
  2004-01-13 15:12             ` 2.4.21-ben2 issues: RTC, Thermal and RTAS Sven Luther
@ 2004-01-13 17:09               ` Geert Uytterhoeven
  2004-01-13 17:16                 ` Sven Luther
  0 siblings, 1 reply; 7+ messages in thread
From: Geert Uytterhoeven @ 2004-01-13 17:09 UTC (permalink / raw)
  To: Sven Luther; +Cc: Debian PowerPC List, Linux/PPC Development


On Tue, 13 Jan 2004, Sven Luther wrote:
> On Wed, Dec 17, 2003 at 11:13:58AM +0100, Geert Uytterhoeven wrote:
> > On Wed, 17 Dec 2003, Sven Luther wrote:
> > > On Wed, Dec 17, 2003 at 10:57:07AM +0100, Geert Uytterhoeven wrote:
> > > > It uses the PC-style RTC driver (genrtc.o is not loaded).
> > >
> > > Mmm, what was your box again ? a chrp no ?
> >
> > Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.
>
> Could you tell me the content of your rtc OF node ? In particular i am
> interested in the reg value (probably 70/71 in isa space or so), and of
> the compatible stuff (i have ds1385-rtc).

/proc/device-tree/pci/isa@1/rtc/ has:

total 0
-r--r--r--    1 root     root           11 Jan 13 18:06 compatible
-r--r--r--    1 root     root            4 Jan 13 18:06 device_type
-r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
-r--r--r--    1 root     root            4 Jan 13 18:06 name
-r--r--r--    1 root     root           12 Jan 13 18:06 reg

compatible:	pnpPNP,b00			(ASCII)
device_type:	rtc				(ASCII)
linux,phandle:	ff86 2aa4			(hexdump)
name:		rtc				(ASCII)
reg:		0000 0001 0000 0070 0000 0002	(hexdump)

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
  2004-01-13 17:09               ` Geert Uytterhoeven
@ 2004-01-13 17:16                 ` Sven Luther
  2004-01-18 12:14                   ` Geert Uytterhoeven
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Luther @ 2004-01-13 17:16 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Sven Luther, Debian PowerPC List, Linux/PPC Development


On Tue, Jan 13, 2004 at 06:09:38PM +0100, Geert Uytterhoeven wrote:
>
> On Tue, 13 Jan 2004, Sven Luther wrote:
> > On Wed, Dec 17, 2003 at 11:13:58AM +0100, Geert Uytterhoeven wrote:
> > > On Wed, 17 Dec 2003, Sven Luther wrote:
> > > > On Wed, Dec 17, 2003 at 10:57:07AM +0100, Geert Uytterhoeven wrote:
> > > > > It uses the PC-style RTC driver (genrtc.o is not loaded).
> > > >
> > > > Mmm, what was your box again ? a chrp no ?
> > >
> > > Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.
> >
> > Could you tell me the content of your rtc OF node ? In particular i am
> > interested in the reg value (probably 70/71 in isa space or so), and of
> > the compatible stuff (i have ds1385-rtc).
>
> /proc/device-tree/pci/isa@1/rtc/ has:
>
> total 0
> -r--r--r--    1 root     root           11 Jan 13 18:06 compatible
> -r--r--r--    1 root     root            4 Jan 13 18:06 device_type
> -r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
> -r--r--r--    1 root     root            4 Jan 13 18:06 name
> -r--r--r--    1 root     root           12 Jan 13 18:06 reg
>
> compatible:	pnpPNP,b00			(ASCII)
> device_type:	rtc				(ASCII)
> linux,phandle:	ff86 2aa4			(hexdump)
> name:		rtc				(ASCII)
> reg:		0000 0001 0000 0070 0000 0002	(hexdump)

Ok. So, this is almost the same as me, except i have a ds1385-rtc
compatible version, and some interrupt stuff.

Can you confirm that the GEN_RTC driver works for you ?

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
  2004-01-13 17:16                 ` Sven Luther
@ 2004-01-18 12:14                   ` Geert Uytterhoeven
  2004-01-18 12:17                     ` Sven Luther
  2004-01-18 23:25                     ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2004-01-18 12:14 UTC (permalink / raw)
  To: Sven Luther; +Cc: Debian PowerPC List, Linux/PPC Development


On Tue, 13 Jan 2004, Sven Luther wrote:
> On Tue, Jan 13, 2004 at 06:09:38PM +0100, Geert Uytterhoeven wrote:
> > On Tue, 13 Jan 2004, Sven Luther wrote:
> > > On Wed, Dec 17, 2003 at 11:13:58AM +0100, Geert Uytterhoeven wrote:
> > > > On Wed, 17 Dec 2003, Sven Luther wrote:
> > > > > On Wed, Dec 17, 2003 at 10:57:07AM +0100, Geert Uytterhoeven wrote:
> > > > > > It uses the PC-style RTC driver (genrtc.o is not loaded).
> > > > >
> > > > > Mmm, what was your box again ? a chrp no ?
> > > >
> > > > Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.
> > >
> > > Could you tell me the content of your rtc OF node ? In particular i am
> > > interested in the reg value (probably 70/71 in isa space or so), and of
> > > the compatible stuff (i have ds1385-rtc).
> >
> > /proc/device-tree/pci/isa@1/rtc/ has:
> >
> > total 0
> > -r--r--r--    1 root     root           11 Jan 13 18:06 compatible
> > -r--r--r--    1 root     root            4 Jan 13 18:06 device_type
> > -r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
> > -r--r--r--    1 root     root            4 Jan 13 18:06 name
> > -r--r--r--    1 root     root           12 Jan 13 18:06 reg
> >
> > compatible:	pnpPNP,b00			(ASCII)
> > device_type:	rtc				(ASCII)
> > linux,phandle:	ff86 2aa4			(hexdump)
> > name:		rtc				(ASCII)
> > reg:		0000 0001 0000 0070 0000 0002	(hexdump)
>
> Ok. So, this is almost the same as me, except i have a ds1385-rtc
> compatible version, and some interrupt stuff.
>
> Can you confirm that the GEN_RTC driver works for you ?

To my surprise, genrtc in 2.4.23 does not work on my LongTrail!
The kernel crashes in init/do_mounts.c:mount_block_root() right after the call
to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't
really look genrtc-related, although the same source tree works fine if I
disable genrtc and build in rtc.

I also tried 2.6.0, and there it works fine, both in the builtin and modular
case: the kernel got the correct time, and hwclock works.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
  2004-01-18 12:14                   ` Geert Uytterhoeven
@ 2004-01-18 12:17                     ` Sven Luther
  2004-01-18 12:31                       ` Geert Uytterhoeven
  2004-01-18 23:25                     ` Benjamin Herrenschmidt
  1 sibling, 1 reply; 7+ messages in thread
From: Sven Luther @ 2004-01-18 12:17 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Sven Luther, Debian PowerPC List, Linux/PPC Development


On Sun, Jan 18, 2004 at 01:14:07PM +0100, Geert Uytterhoeven wrote:
> On Tue, 13 Jan 2004, Sven Luther wrote:
> > On Tue, Jan 13, 2004 at 06:09:38PM +0100, Geert Uytterhoeven wrote:
> > > On Tue, 13 Jan 2004, Sven Luther wrote:
> > > > On Wed, Dec 17, 2003 at 11:13:58AM +0100, Geert Uytterhoeven wrote:
> > > > > On Wed, 17 Dec 2003, Sven Luther wrote:
> > > > > > On Wed, Dec 17, 2003 at 10:57:07AM +0100, Geert Uytterhoeven wrote:
> > > > > > > It uses the PC-style RTC driver (genrtc.o is not loaded).
> > > > > >
> > > > > > Mmm, what was your box again ? a chrp no ?
> > > > >
> > > > > Yep, CHRP LongTrail. It has a Winbond/Symphony Labs W83C553 SouthBridge.
> > > >
> > > > Could you tell me the content of your rtc OF node ? In particular i am
> > > > interested in the reg value (probably 70/71 in isa space or so), and of
> > > > the compatible stuff (i have ds1385-rtc).
> > >
> > > /proc/device-tree/pci/isa@1/rtc/ has:
> > >
> > > total 0
> > > -r--r--r--    1 root     root           11 Jan 13 18:06 compatible
> > > -r--r--r--    1 root     root            4 Jan 13 18:06 device_type
> > > -r--r--r--    1 root     root            4 Jan 13 18:06 linux,phandle
> > > -r--r--r--    1 root     root            4 Jan 13 18:06 name
> > > -r--r--r--    1 root     root           12 Jan 13 18:06 reg
> > >
> > > compatible:	pnpPNP,b00			(ASCII)
> > > device_type:	rtc				(ASCII)
> > > linux,phandle:	ff86 2aa4			(hexdump)
> > > name:		rtc				(ASCII)
> > > reg:		0000 0001 0000 0070 0000 0002	(hexdump)
> >
> > Ok. So, this is almost the same as me, except i have a ds1385-rtc
> > compatible version, and some interrupt stuff.
> >
> > Can you confirm that the GEN_RTC driver works for you ?
>
> To my surprise, genrtc in 2.4.23 does not work on my LongTrail!
> The kernel crashes in init/do_mounts.c:mount_block_root() right after the call
> to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't
> really look genrtc-related, although the same source tree works fine if I
> disable genrtc and build in rtc.

Weird, it works fine for me, what tree are you using ?

I think i remember some part of patch concerning the rtc clock or
something in the linuxppc diff. Could you try 2.4.24 ?

> I also tried 2.6.0, and there it works fine, both in the builtin and modular
> case: the kernel got the correct time, and hwclock works.

Ok.

Friendly,

Sven Luther

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
  2004-01-18 12:17                     ` Sven Luther
@ 2004-01-18 12:31                       ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2004-01-18 12:31 UTC (permalink / raw)
  To: Sven Luther; +Cc: Debian PowerPC List, Linux/PPC Development


On Sun, 18 Jan 2004, Sven Luther wrote:
> On Sun, Jan 18, 2004 at 01:14:07PM +0100, Geert Uytterhoeven wrote:
> > On Tue, 13 Jan 2004, Sven Luther wrote:
> > > Can you confirm that the GEN_RTC driver works for you ?
> >
> > To my surprise, genrtc in 2.4.23 does not work on my LongTrail!
> > The kernel crashes in init/do_mounts.c:mount_block_root() right after the call
> > to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't
> > really look genrtc-related, although the same source tree works fine if I
> > disable genrtc and build in rtc.
>
> Weird, it works fine for me, what tree are you using ?

linuxppc-2.4, just after 2.4.23 got merged in.

> I think i remember some part of patch concerning the rtc clock or
> something in the linuxppc diff. Could you try 2.4.24 ?

I may give it a try...

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 2.4.21-ben2 issues: RTC, Thermal and RTAS
  2004-01-18 12:14                   ` Geert Uytterhoeven
  2004-01-18 12:17                     ` Sven Luther
@ 2004-01-18 23:25                     ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2004-01-18 23:25 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Sven Luther, Debian PowerPC List, Linux/PPC Development


> To my surprise, genrtc in 2.4.23 does not work on my LongTrail!
> The kernel crashes in init/do_mounts.c:mount_block_root() right after the call
> to sys_chdir(), because current->fs is a NULL pointer. Weird, and it doesn't
> really look genrtc-related, although the same source tree works fine if I
> disable genrtc and build in rtc.
>
> I also tried 2.6.0, and there it works fine, both in the builtin and modular
> case: the kernel got the correct time, and hwclock works.

Debuggin that would be useful... memory corruption caused by genrtc ?

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-01-18 23:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20030823171845.GA1963@dat.etsit.upm.es>
     [not found] ` <20031217011849.GA26643@iliana>
     [not found]   ` <Pine.GSO.4.58.0312171042530.24864@waterleaf.sonytel.be>
     [not found]     ` <20031217095241.GD2283@iliana>
     [not found]       ` <Pine.GSO.4.58.0312171056030.24864@waterleaf.sonytel.be>
     [not found]         ` <20031217100358.GA2655@iliana>
     [not found]           ` <Pine.GSO.4.58.0312171112040.24864@waterleaf.sonytel.be>
2004-01-13 15:12             ` 2.4.21-ben2 issues: RTC, Thermal and RTAS Sven Luther
2004-01-13 17:09               ` Geert Uytterhoeven
2004-01-13 17:16                 ` Sven Luther
2004-01-18 12:14                   ` Geert Uytterhoeven
2004-01-18 12:17                     ` Sven Luther
2004-01-18 12:31                       ` Geert Uytterhoeven
2004-01-18 23:25                     ` Benjamin Herrenschmidt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).